Summary
Microsoft Research, UC Berkeley, and Microsoft Security on November 16 introduced TokenEconomizer, an open-source plugin that learns from an AI coding agent’s past sessions in a repository to cut waste in later sessions, without modifying the agent or its underlying model. Across 277 real bug-fixing tasks and five agent-and-model combinations, the authors reported cost reductions of 18.4% to 30.9%. Costs fell in every one of the 30 repository-combination pairs, while task success rates remained broadly stable. After each session, TokenEconomizer updates what it knows about the repository and acts through three mechanisms: micro-skills, which capture recurring repository facts as one-line notes added to the starting context only after several sessions confirm them; tool pruning, which drops tools history suggests the agent is unlikely to use while always keeping core command-running and file-editing tools; and failure-loop intervention, in which a judge model decides whether a stuck agent should get a short nudge to try a different approach, and, in the open-source plugin, alerts the developer rather than stopping the run if the agent remains stuck. Reported savings include the cost of TokenEconomizer’s own model calls. The plugin needs no API key of its own, keeps what it learns on the developer’s machine, and is designed to run alongside agents including Claude Code, Codex, GitHub Copilot CLI, and Pi. It is released under Apache-2.0 at github.com/microsoft/TokenEconomizer.
This summary reflects the cited source. Visit the original for its full context.
← All AI news