cd /news/ai-agents/your-ai-coding-agent-is-100x-more-ex… · home › topics › ai-agents › article
[ARTICLE · art-177273] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Your AI coding agent is 100x more expensive than it needs to be — I built a skill to fix that

A developer released a free, open-source skill called agent-cost-control that cuts AI coding agent costs by routing routine tasks to cheaper models, enforcing written justification before any task goes to a flagship model, and setting monthly budgets with alerts and a kill switch. The skill, which works with Claude Code, Codex and Copilot, also addresses context waste through prompt caching and batch pricing; a worked refactor example prices at $0.02 on Haiku versus $1.11 on Fable, against a 100x per-token spread between the two models on the Anthropic API.

recommendation

Set a monthly dollar budget with 50% and 80% alerts, a per-task cap and a kill switch, and require a named written reason before routing any task to a flagship model.

more in playbook: Controlling LLM cost
by read2 min views2 publishedNov 27, 2026

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)
── more in #ai-agents 4 stories · sorted by recency
── more on @anthropic 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/your-ai-coding-agent…] indexed:0 read:2min 2026-11-27 · —