October 30, 2026 · AI news, AI costs
Microsoft released a plugin that cuts what coding agents spend
TokenEconomizer v0.1.0 prunes unused tools and redirects stuck agents in Claude Code, Codex, Copilot CLI and Pi. The authors report 18% to 31% lower cost. How to pilot it.
Every request a coding agent sends repeats its instructions, the definition of every tool it has loaded, and the conversation so far. Teams that run agents on the same codebase every day pay for the same rediscovery again and again. TokenEconomizer, released Oct 26 by researchers at UC Berkeley and Microsoft, learns from finished sessions in a repository and trims that repeat cost in the next ones.
The savings figures are the authors' own measurements, and the gain is smaller where every task is in a new repository. Its model calls run through your own agent and plan, and what it learns stays on your machine. The commands were tested only on specific agent versions, such as Claude Code 2.1.300 to 2.1.310.
What happened
- Oct 26: TokenEconomizer v0.1.0, free and Apache-2.0, for Claude Code, Codex, the GitHub Copilot CLI and Pi.
- It drops tools a repository never uses and redirects an agent stuck repeating the same failure. It learns from past sessions in each repository.
- The authors report 18% to 31% lower cost on 277 SWE-Bench tasks, and 6% to 20% where every task is in a new repository.
What to do: Pilot it on the one repository your team runs agents on most. Check your agent version is in its tested range, and compare cost per finished task for two weeks.
Go deeper
The same week's repo picks cover open-source building blocks for an AI gateway, and the monthly routine for spend is the AI spend control loop.
Get the next one
An every-other-week email with one framework or tool, what it cost and what broke. You also get our 10-page PDF of the top 10 open-source projects for AI agents.