ACT NOW AI Agents 5 min read

Coding-agent token waste: agents re-pay for unused tools; up to 31% saved

TokenEconomizer: experience-driven cost control that learns from past sessions what to trim, instead of lowering reasoning effort (how hard the model thinks).

The 60-second brief

Coding agents re-pay for their instructions, tools and history on every request, and relearn your codebase each session.

The surprise

Unused tools were 62% of the first request: 43,351 tokens fell to 16,295 without them.

The fix

TokenEconomizer, an open-source plugin for Claude Code, Codex, Copilot CLI and Pi, cut average cost 18–31% over 277 tasks.

The catch

The first few sessions in a codebase cost more while it learns.

VerdictAct now
What it takesFree, open source
Evidence277 tasks, three agents
Read5 minutes

The bill that repeats itself

For example, a team runs a coding agent on its codebase every day. Each step, the agent sends the AI model its instructions, a description of every tool it could use and the whole conversation so far, and pays for all of it again, by the token (a small piece of a word). In tests on six large codebases the agent carried 23 tools, yet no codebase called more than 7, and failed tasks were 17% of the work but 32% of the spend.

Two couriers, one codebase, five days

  • Backpack re-sent with every request
  • Coins tokens you pay for
  • Doors ways to run the tests
  • Note a fact kept for next time
Day 1Day 2Day 3Day 4Day 5

Default agent

0 coins

Task pytestrunnerown runner ↻ Done

Your agent

0 coins

Task pytestrunnerown runner ↻ Done

Real tasks from the paper: django-10554 on Claude Code with Sonnet 5; sympy-13615 and sphinx-11445 on Claude Code with Opus 4.8. Totals: Claude Code with Sonnet 5 over 277 tasks (tool trimming alone 13.2% cheaper; TokenEconomizer 23.6% cheaper). The couriers, doors, days and coins are drawn by us.

The surprise is the tool list: dropping 19 never-called tools cut a Django task's first request from 43,351 tokens to 16,295. Over 277 tasks TokenEconomizer cut cost 18–31% and passed more tasks in four of five setups; turning reasoning effort down saved 17–46% but lost up to 10 points.

Our view

Switch off unused tools by hand today. Then install the plugin on your busiest codebase, turn on its learned facts, and compare a week of bills.

Join free to read the rest

Join free to score your team, see what to check before you bet on it, get the first moves step by step, and learn how you'll know it's working.

Copied