cost-watchdog
БесплатноБез исполняемых скриптовНе проверенWeekly review of evlog's model cost and performance. Load this when the cost-watchdog schedule fires, or when a maintainer asks for a cost check, a model…
от evloghq★ 1 955 звёзд на GitHubОб этом скилле
Cost and model watchdog
A recurring read of how evlog spends its model budget and whether the models in use are still the right ones. Run it weekly, on the last full week. Grounded in the AI Gateway report and the current model landscape, never in your memory of prices.
The core question: for every surface, is the model it runs still a sensible buy? The honest answer is often "yes, no change." A quiet week is a real result.
What the report gives you
ai_gateway__report with groupBy: 'tag' returns one row per tag value scoped to the current environment: the evi:env:* row (the total), one evi:surface:* row per surface, and one evi:agent:* row per agent (evi for the root, the directory name for each subagent). Each row carries total_cost, market_cost, input_tokens, output_tokens, cached_input_tokens, reasoning_tokens and request_count. groupBy: 'model' returns one row per model.
The surface and agent lists are whatever evi:surface:* and evi:agent:* rows the report actually returns. Do not assume either set; read them from the data. The dimensions overlap, so sum within one prefix and never across: the evi:surface:* rows add up to the total, and so do the evi:agent:* rows. Weeks before the agent tag existed have no evi:agent:* rows; say so instead of reporting a drift.
Resources
Open these directly instead of searching; they are the stable home for everything the model-landscape step needs.
- AI Gateway model catalog, as JSON (pricing and capabilities for every model in one fetch):
https://ai-gateway.vercel.sh/v1/models - AI Gateway models browser (human-readable, filter by provider, pricing, latency, throughput):
https://vercel.com/ai-gateway/models - AI Gateway docs, models & providers:
https://vercel.com/docs/ai-gateway/models-and-providers - Model quality leaderboard (ex-LMArena, blind A/B human preference Elo):
https://arena.ai/leaderboard - Independent cost-efficiency and benchmarks (Intelligence Index, cost per task, tokens per task, time per task, per-benchmark scores):
https://artificialanalysis.ai/. Head-to-head pages live athttps://artificialanalysis.ai/models/comparisons/<a>-vs-<b>, using AA slugs (glm-5-3-flash,gpt-6-luna-medium).
Use web_search/web_fetch only for what these do not cover, such as a candidate model's fit for a specific surface. Every figure cited still needs a source and a recency, and a benchmark figure comes from Artificial Analysis or the leaderboard directly, never from a blog or aggregator quoting them.
Steps
1. Define the window
Run Monday morning. Cover the last 7 full days ending yesterday, and pull the 7 days before that as the comparison window, so every drift figure is period-over-period.
2. Pull the numbers
ai_gateway__reportfor both windows,groupBy: 'tag'. That is the spend and token picture per surface and the total.ai_gateway__reportfor both windows,groupBy: 'model'. The per-model mix (today this is usually one model everywhere).- For any surface worth a closer look,
ai_gateway__reportscoped to that surface (tags: ['evi:env:<env>', 'evi:surface:<name>'])withgroupBy: 'model'to see what it runs and at what cost. - The
evi:agent:*rows show which subagent carries a surface's spend. A reviewer whose share keeps growing is a prompt or scope question before it is a model question.
Use the eval environment tag to keep benchmark and eval traffic out of the production read when the report lets you.
3. Build the candidate set
Derive it from the catalog every run; do not pick alternatives from memory. From /v1/models, keep every model tagged both tool-use and reasoning that takes image input (the base model reads images natively, see docs/vision.md), and whose input and output prices are each within 3x of the current model's. Then add the top three of that set by Artificial Analysis cost per task. List the full candidate set in the report, with the reason each one was dropped.
4. Compare candidates
Score the current model and every surviving candidate on the same four axes, in one table:
- Agentic quality. Terminal-Bench, AutomationBench, tau-bench and the hallucination rate, the benchmarks closest to what Evi's surfaces do. The headline Intelligence Index is context, not the verdict.
- Cost per task. Artificial Analysis cost per task and output tokens per task. Two models at the same per-token price can differ tenfold per task, and a model that spends fewer tokens is cheaper even when it is less capable.
- Speed. Time per task and output tokens per second. This matters most on interactive surfaces (slack, photon), where a person is waiting.
- Projected cost on Evi's real traffic. Reprice last week's token mix from the report (uncached input, cached input, output, reasoning) at the candidate's catalog rates, including cache-write pricing when the candidate has one. The advertised price is a floor: `gat
Установить cost-watchdog в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cost-watchdog?
Weekly review of evlog's model cost and performance. Load this when the cost-watchdog schedule fires, or when a maintainer asks for a cost check, a model review, a per-surface model analysis, or a spend/drift report for the gateway.
Как установить скилл cost-watchdog?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cost-watchdog запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic