跳到正文
Rohan Paul· @rohanpaul_ai · X·· 15 天前AI 评分42
AI 导读

UC Berkeley 与 Microsoft 的论文提出 TokenEconomizer,作为智能体外部的黑盒控制器,通过注入学习到的事实、剪除未用工具、提前终止失败循环,将编程智能体的 token 成本降低 18.4% 至 30.9%。

正文

New UC Berkeley and Microsoft paper cuts coding-agent token costs by 18.4% to 30.9% using an external controller that learns from past runs.

by injecting learned facts, pruning unused tools, and stopping failed loops early.

Coding agents are billed by the token, and each turn resends the growing history, so long projects get expensive. Token efficiency is usually measured on isolated tasks, missing the cost that builds up across a sequence of tasks in the same codebase.

TokenEconomizer sits outside the agent as a black box, changing only prompts and tool settings. From past runs it learns which facts to inject, which unused tools to drop, and when to stop a failing loop.

Across Claude Code, Codex, and GitHub Copilot CLI on 277 SWE-Bench tasks, it cut mean per-task cost 18.4% to 30.9%. It improved Pass@1 in 4 of 5 agent-model settings, and savings held in every repository.

Measure agent cost across a whole project, not per task, and use an external controller that adapts to each repo, not fixed plugins.

来源:Rohan Paul · x.com