FreeHand:将Agent控制权交还模型,性能成本全面超越官方Harness
FreeHand
Agent工程的重要范式探索,用极简设计验证了前沿模型的自主性,数据详实且具备极高的工程参考价值。
The idea, drawn
这一理念源自
model agentharness the harness behavioral rules specialized tools fixed compaction what it could do bash its own timeout edits its own context reads its meter ~200-word prompt,no workflow Give the modela freehand! Give the model a freehand! Better, Cheaper& Faster Better, Cheaper & Faster
模型代理 harness 利用 harness 的行为规则、专用工具、固定的压缩机制,决定了它能做什么。Bash 拥有自己的超时设置、编辑权限和上下文,并读取其计量器 ~200词的提示词,没有工作流。给模型自由发挥的空间!给模型自由发挥的空间!更好、更便宜 & 更快 更好、更便宜 & 更快
keep scrolling
继续滚动
Abstract
摘要
The Bitter Lesson holds that knowledge we build into AI systems helps at first and is eventually outgrown by general methods. We show that this lesson has now come to agent harnesses. Mainstream harnesses decide a great deal on the model's behalf—prompts prescribe how to approach a task, tool suites and timeouts fix how to act, and threshold compaction decides what to remember—and every such decision is fixed before the model has seen the task. For weaker models these presets are a crutch; for frontier models they become a cage.
“痛苦教训”(The Bitter Lesson)认为,我们构建到 AI 系统中的知识起初会有所帮助,但最终会被通用方法所超越。我们表明,这一教训如今已适用于 agent harnesses。主流的 harness 在很大程度上代替模型做出决策——提示词规定如何完成任务,工具套件和超时时间固定了行动方式,而基于阈值的压缩机制决定了记忆内容——并且所有这些决策在模型看到任务之前就已固定。对于较弱的模型,这些预设是拐杖;而对于前沿模型,它们则变成了牢笼。
We introduce Freehand, a general-purpose harness built on one rule: give the model a shell, its own memory, and a meter—and let it decide everything else. Across five domains and three frontier model families, Freehand is better, cheaper, and faster at the same time. It outscores the first-party harness of every model (Codex, Claude Code, and Gemini CLI) in all 11 settings, by 5.1 points on average at 49% lower cost, and runs fastest on average: in a controlled side-by-side rerun, each of the other harnesses takes 17–62% longer. It also outperforms OpenCode, Pi, DeepSeek Harness, and a bash-only harness that still fixes its workflow and timeouts, while with lower-tier models the first-party harnesses win again.
我们推出了 Freehand,这是一个基于一条规则的通用 harness:给模型一个 shell、它自己的内存和一个计量器——并让它决定其他一切。在五个领域和三个前沿模型家族中,Freehand 同时表现得更好、更便宜且更快。在所有 11 种设置下,它的得分均高于每个模型的官方 harness(Codex、Claude Code 和 Gemini CLI),平均高出 5.1 分,成本降低 49%,并且运行速度最快:在受控的并行重跑中,其他每个 harness 的平均耗时都要长 17–62%。它还优于 OpenCode、Pi、DeepSeek Harness 以及一个仍固定其工作流和超时时间的纯 bash harness,尽管在较低层级的模型上,官方 harness 再次胜出。
As models grow stronger, the best harness is the one that decides the least.
随着模型变得越来越强大,最好的 harness 是那个决策最少的 harness。
Give the model a freehand!
给模型自由发挥的空间!
What Freehand keeps
Freehand 保留的内容
- a ~200-word descriptive promptDescribes only how the runtime works. No workflows, behavioral rules, or runtime reminders.
- a single bash interfaceThe model sets the timeout of each command and builds the scripts and tools each task needs.
- context self-managementThe conversation history is a file the model can edit, so it prunes stale output when it chooses. No fixed-threshold compaction.
- 一段约 200 字的描述性提示词仅描述运行时的工作方式。不包含工作流、行为规则或运行时提醒。
- 单一的 bash 接口模型为每个命令设置超时时间,并为每个任务构建所需的脚本和工具。
- 上下文自我管理对话历史是一个模型可以编辑的文件,因此它可以在选择时修剪过时的输出。没有固定的阈值压缩。
Scroll sideways to compare · Tap the figure to enlarge
左右滑动以比较 · 点击图形以放大
Mainstream harnesses prescribe strategy, execution, and memory. Freehand returns all three to the model.
主流 harness 规定了策略、执行和记忆。Freehand 将这三者全部交还给模型。
Frontier models across five domains
五个领域的前沿模型
11 / 11highest score11 / 11lowest cost+5.1 pointsvs. first-party, on average−49% costvs. first-party, on average
11 / 11最高得分11 / 11最低成本+5.1分vs. 官方 harness,平均-49% 成本vs. 官方 harness,平均
From crutch to cage, measured
从拐杖到牢笼的衡量
One benchmark, each family’s first-party harness against Freehand, and only the model changes. On all three lower-tier models the first-party harness still helps, leading Freehand by 5.1 to 6.7 points. On all three frontier models the order reverses: Freehand leads by 2.5 to 7.6.
一项基准测试,每个家族的第一方工具链与 Freehand 对抗,仅模型发生变化。在所有三款次级模型上,第一方工具链仍然有效,领先 Freehand 5.1 至 6.7 分。在所有三款前沿模型上,顺序反转:Freehand 领先 2.5 至 7.6 分。
Terminal-Bench 4 score (%), mean of 5 rounds per bar. Labels compare Freehand against the first-party harness, in points.
Terminal-Bench 4 得分(%),每根柱状图代表 5 轮的平均值。标签显示 Freehand 相对于第一方工具链的得分差。
Four cases, up close
四个案例,近距离观察
a tool call per click, or one script
每次点击一次工具调用,或一个脚本
OSWorld 2.1 · Task 065 · GPT-6-astra
OSWorld 2.1 · 任务 065 · GPT-6-astra
With 20+ GUI tools, Codex spends a separate call on every action, screen capture, and image view: 430 calls, $57.45, and the booking fails. Freehand batches its GUI actions into scripts it writes itself, which also prune stale screenshots, and books the tickets for $9.95.
拥有 20 多种 GUI 工具,Codex 对每个动作、屏幕截图和图像查看都进行单独调用:430 次调用,57.45 美元,预订失败。Freehand 将其 GUI 操作批处理为其自行编写的脚本,同时剔除过时的截图,并以 9.95 美元的价格成功订票。
the whole PDF, or the lines that matter
整个 PDF,或相关的行
Agents’ Last Exam · sec_10k_financial_parsing
OpenCode’s read tool loads a 78-page filing into context at call 3, and every later call re-sends it: 44 calls, 9.09M input tokens, $13.09. Freehand converts the filings to text on disk and greps for the statements it needs: 27 calls, 1.16M tokens, $2.66, for the same final score.
OpenCode 的读取工具在第 3 次调用时将一份 78 页的文件加载到上下文中,且后续每次调用都会重新发送该文件:44 次调用,909 万输入 token,13.09 美元。Freehand 将文件转换为磁盘上的文本并 grep 出所需的声明:27 次调用,116 万 token,2.66 美元,最终得分相同。
a fixed 30 s limit, or the model’s own timeout
固定的 30 秒限制,或模型自身的超时设置
Terminal-Bench 4 · ctr-optimization
mini-swe-agent has only bash too, but its hardcoded 30 s timeout cuts off the long job, so the model polls: 334 polling steps, 403 calls, $70.77. Freehand sets each timeout itself, waits up to 24 minutes in a single call, and finishes in 42 calls for $2.28.
mini-swe-agent 仅有 bash,但其硬编码的 30 秒超时截断了长时间运行的任务,导致模型进行轮询:334 次轮询步骤,403 次调用,70.77 美元。Freehand 自行设置每个任务的超时时间,在单次调用中等待长达 24 分钟,最终以 42 次调用、2.28 美元完成。
same task, one prompt apart
相同的任务,仅提示词不同
Agents’ Last Exam · zdock
A benign structural-biology task: score and rank ten protein-docking poses. With only Codex’s system prompt swapped in, which has no biosecurity clause, the model refuses on the first turn in 10 of 10 runs. With Freehand’s prompt it completes the task in 10 of 10.
一项良性的结构生物学任务:评分并对十个蛋白质对接姿态进行排序。仅替换为 Codex 的系统提示词(不含生物安全条款)时,模型在 10 次运行中的第 1 轮就拒绝执行。使用 Freehand 的提示词时,模型在 10 次运行中均完成了任务。
Scroll sideways inside a figure · Tap it to enlarge
在图表内横向滚动 · 点击以放大
Figures from the paper. The first three show single runs.
来自论文的图表。前三张图展示的是单次运行结果。
All results
所有结果
All results, including OpenCode, Pi, DeepSeek Harness and mini-swe-agent
所有结果,包括 OpenCode、Pi、DeepSeek Harness 和 mini-swe-agent
Benchmark | Model | Harness | Rounds | Score ↑ | Cost ($) ↓ | Time (min) ↓
基准测试 | 模型 | 工具链 | 轮数 | 得分 ↑ | 成本 ($) ↓ | 时间 (分钟) ↓
Official score (%), cost per task in US dollars at list prices, and normalized net agent time per task in minutes, averaged over evaluation rounds. Best value per setting in bold. Gemini 4 Carbon was evaluated on Terminal-Bench 4 only, and mini-swe-agent on Terminal-Bench 4 with GPT-6-astra.
官方得分(%)、按列表价格计算的任务成本(美元)以及归一化的代理任务净耗时(分钟),取评估轮次的平均值。每种设置下的最佳值以粗体显示。Gemini 4 Carbon 仅在 Terminal-Bench 4 上进行了评估,mini-swe-agent 在 Terminal-Bench 4 上使用 GPT-6-astra 进行评估。
The lesson
经验教训
The Bitter Lesson has come to agent harnesses. Every preset a harness adds is a decision made before the model has seen the task; such decisions carried weaker models, but for frontier models they override better decisions made with the evidence each task reveals. Freehand gives the model a shell, its own memory, and a meter, and leaves every other decision to the model. Across five domains and three frontier model families, this single rule makes agents better, cheaper, and faster at once than the harnesses built by the models’ own developers, while lower-tier models still benefit from presets.
苦涩教训(The Bitter Lesson)已延伸至智能体框架(agent harnesses)。每个预设的框架组件都是模型在未见任务前做出的决策;这类决策对较弱模型影响较小,但对于前沿模型而言,它们会覆盖掉模型根据每个任务所揭示的证据而做出的更优决策。Freehand 为模型提供了一个外壳、自身的记忆以及一个度量工具,并将其他所有决策权留给模型。在五个领域和三个前沿模型家族中,这一单一规则使智能体同时变得更好、更便宜、更快,优于由模型开发者构建的框架,而较低层级的模型仍能从预设中受益。
As models grow stronger, the best harness is the one that decides the least.
随着模型能力增强,最好的框架是做出最少决策的那个。
Cite
引用
@article{zeng2026freehand,
title = {Freehand: The Bitter Lesson Comes to Agent Harnesses},
author = {Zeng, Zezi and Zhao, Yuke and Tian, Muzhao and Yang, Yifan and Dai, Qi and Liu, Bei and Qiu, Kai
and Zhuang, Bohan and Zhu, Jihua and Luo, Chong},
journal = {arXiv preprint arXiv:2612.02442},
year = {2026}
}Copy citation
复制引用
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力