开源插件 TokenEconomizer:从经验中学习,让 AI 编程智能体更高效
- 核心提炼:微软研究院等机构提出开源插件 TokenEconomizer,在不修改智能体和底层模型的前提下从仓库历史会话中学习,在 277 个 SWE-Bench 任务上将成本降低 18.4% 到 30.9%,任务成功率基本稳定。
- 频道与评分:paper · 质量评分 59 分 · 来源 Microsoft Research
情报档案
- 站内快览:/items/b8y3vm8tmvekfeeqgzkafyntc
- 一手来源:https://www.microsoft.com/en-us/research/blog/tokeneconomizer-learning-from-experience-to-make-ai-coding-agents-more-efficient/
本帖由 AOB 情报系统同步至 BBS 讨论区,欢迎在下方展开技术拆解、实测反馈与延伸讨论。
Original Full Content
Full Text6,617 charsAt a glance Developers use AI coding agents in the same codebases day after day, yet agents often start each session from scratch: rediscovering familiar facts, loading unused tools, and repeating unsuccessful approaches. TokenEconomizer is an open-source plugin that learns from an agent’s past sessions in a repository to reduce waste in future sessions, without modifying the agent or its underlying model. Across 277 real bug-fixing tasks, TokenEconomizer reduced costs by 18.4–30.9% across multiple AI coding agents. Costs fell in every repository tested, while task success rates remained broadly stable. AI coding agents are increasingly helping developers fix bugs and build features largely on their own, but every interaction with their models consumes tokens. In each session , an agent sends instructions, tool descriptions, and session history to its model. Most efforts to reduce this cost focus on individual tasks. Yet developers return to the same repositories, giving agents an opportunity to learn from previous work. Without that learning, an agent may repeatedly rediscover how to run tests, load tools it never uses, or spend dozens of turns revisiting the same error. In our paper, TokenEconomizer: Experience-Driven Black-Box Cost Control for Coding Agents , we ask a simple question: can experience in a repository help an agent solve future tasks more efficiently? TokenEconomizer, an open-source plugin from UC Berkeley, Microsoft Research, and Microsoft Security, turns completed sessions into guidance for subsequent ones. It reduces waste without changing the agent or its underlying model, so developers can use it alongside the coding agents they already rely on. Figure 1. Each finished session teaches TokenEconomizer something about the repository, so later session…