Microsoft 研究:极简 harness 让前沿模型 Agent 得分更高、成本更低
Microsoft 做了个很反直觉的实验:把 agent 外壳砍到只剩 1 个 bash 工具加 200 词提示词,前沿模型在 11 项设置里全胜自家官方 harness,还省了 49% 成本。但弱模型结论完全相反。自己搭 agent 的人值得看看这张分层表。
Microsoft 发表新论文,指出 Codex、Claude Code、Gemini CLI 等主流 agent harness 用长提示词、20+ 工具、固定超时和自动记忆压缩,在模型看到任务之前就替模型做了大量预设决策,反而限制了前沿模型的发挥。
研究团队构建了 Freehand harness:仅提供 1 个 bash 工具、一段模型可自行编辑的聊天历史,以及一个监控 token、成本和时间的计量器。整个系统提示词约 200 词,不规定任何工作流程。在 5 个领域共 11 种设置中,Freehand 在每一次对比中都超越了各模型自家的第一方 harness,平均高 5.1 分,成本降低 49%。
结论存在明显的模型分层:在低档模型上,第一方 harness 反而领先 5.1 到 6.7 分。这意味着开发者应根据模型能力选择 harness 策略——前沿模型配极简外壳、可编辑记忆和成本反馈,弱模型保留更重的预设。
New Microsoft paper finds that frontier agents score higher at lower cost when the harness gives them only a shell and stops deciding for them.
Harnesses like Codex, Claude Code, and Gemini CLI wrap models in long prompts, 20+ tools, fixed timeouts, and automatic memory compaction. These presets fix choices before the model even sees the task.
They built Freehand: 1 bash tool, a chat history the model can edit, and a meter of tokens, cost, and time. Its prompt is about 200 words and sets no workflow.
Across 11 settings in 5 domains, Freehand beat each model's own first-party harness every time, by 5.1 points on average at 49% lower cost. With lower-tier models, the first-party harnesses won by 5.1 to 6.7 points.
On frontier models, strip your agent harness down to a shell, editable memory, and cost feedback, but keep heavier presets for weaker models.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Microsoft, Claude Code, Codex, Gemini CLI.
Source attribution: curated from rohanpaul_ai (@rohanpaul_ai).