Research ·
TokenEconomizer: Learning from Experience to Make AI Coding Agents More Efficient
Microsoft Research and UC Berkeley released TokenEconomizer, an open-source plugin that learns from an AI coding agent's past sessions in a repository, cutting costs 18.4-30.9% across 277 bug-fixing tasks while keeping task success rates stable.

TokenEconomizer is an open-source plugin from UC Berkeley, Microsoft Research, and Microsoft Security that reduces what AI coding agents spend on tokens by learning from completed sessions in the same repository. It works without modifying the agent or its underlying model, so developers can run it alongside agents they already use. Across 277 SWE-Bench tasks from six repositories and five agent-model combinations, average costs dropped 18.4-30.9%, with savings in all 30 repository-combination pairs and broadly stable success rates. Costs were also 16.0-21.2% lower on Web-Bench web development tasks and 6.4-19.6% lower on security auditing in fresh repositories.
References
- Microsoft Research · microsoft.com
Read the full story at Microsoft Research ↗Like, save or discuss on Buzz