台灣 AI x AEC 情報BY FBI SICENTER
AI × AEC · CURATED INSIGHT

Microsoft and UC Berkeley Release TokenEconomizer to Cut AI Coding Agent Token Costs

AI coding · AI assistants

Microsoft Research, Microsoft Security, and UC Berkeley introduced TokenEconomizer, an open-source plugin that learns from an AI coding agent's past sessions within a repository to reduce token usage by 18.4% to 30.9% without modifying the agent or its underlying model.

AI 生成概念示意圖,非實際產品或事件照片。
AI-generated concept illustration; not an event photograph.

Researchers from UC Berkeley, Microsoft Research, and Microsoft Security have released TokenEconomizer, an open-source plugin aimed at reducing the token consumption of AI coding agents working repeatedly within the same codebase. The tool operates without modifying the base agent or its model, analyzing session logs to optimize subsequent runs. In evaluations across 277 SWE-Bench bug-fixing tasks covering six repositories and five agent-model combinations, TokenEconomizer lowered average costs by 18.4% to 30.9% while keeping task success rates broadly stable.

Key takeaways

  • TokenEconomizer applies three primary mechanisms based on session history: recording one-line repository micro-skills, pruning unused tools while keeping core utilities, and intervening via a judge model when an agent becomes stuck in failure loops.
  • Initial profiling on Claude Code showed that 30% of tool calls repeated actions from earlier tasks in the repository, and 16 of 23 loaded tool descriptions were never invoked across turns.
  • In SWE-Bench tests, cumulative costs dropped below default baselines by the sixth task in every evaluated repository, net of the token overhead from TokenEconomizer's own model calls.
  • The open-source plugin runs locally alongside existing agents, stores learned repository context on the developer's machine, and requires no dedicated API key.

Source:Microsoft Research Read the original ↗

Prepared, checked and automatically published by AI; not individually reviewed by a human.

← All articles