An AI coding agent is cheap until it is not. One long session on the most expensive model, one runaway loop re-reading a whole codebase, one fleet of parallel agents each on a flagship model — and the bill is ten times what the work was worth.
The price spread is the whole story. On the Anthropic API, as published in October 2026: Haiku 5.5 costs $0.10 per million input tokens. Fable 5.1 costs $10. That is 100x for the same million tokens — and most routine agent work does not need the expensive model at all.
The skill enforces one more rule: no task gets routed to Fable/Opus without a named reason written down. That one line stops most of the waste.
A budget nobody watches is not a budget. The skill sets a monthly dollar budget with alerts at 50% and 80%, a per-task cap, and a kill switch — a spend limit that stops the run instead of letting it keep going. It also writes a cost record (agent-cost.json or COST.md) with the budget and the routing table, so the next run starts from the same rules.
Most agent spend is not the model — it is context. Re-reading whole files instead of the changed lines, loops that re-fetch what was already fetched, parallel agents each re-doing the same setup. The skill covers prompt caching, batch pricing (50% off), and estimating a task's cost before running it. One worked example in the skill prices the same refactor on all four models: $0.02 on Haiku, $1.11 on Fable.
The skill is free and open source: https://github.com/jeffdrizzy/agent-cost-control-skill It works with Claude Code, Codex, Copilot and other agents, and it includes a check script that verifies a project has a budget, a routing table, and a spend guard.
If you build with AI agents, your bill is a design decision. Make it before the run, not after.
If this helped, you can support my open-source work here: [https://github.com/sponsors/jeffdrizzy](https://github.com/sponsors/jeffdrizzy)