
TokenEconomizer is a local plugin for Claude Code, GitHub Copilot CLI, and other agents that reduces API costs by 18 to 31 percent on SWE-bench. It stores repository facts in ~/.tokeneconomizer, prunes unused tool definitions from context, and injects redirects when an agent loops on a failing turn. The plugin works without modifying the underlying agent or its weights.
It is worth installing if you run the same agent repeatedly on the same codebase and want to trim redundant prompt overhead. The catch is that it requires background model calls to propose facts and judge loops, meaning savings depend heavily on whether those helper calls cost less than the tokens they save.
more: https://github.com/microsoft/TokenEconomizer
my other side: ivo.blogspot.com
Leave a Reply