Freehand: The Bitter Lesson Comes to Agent Harnesses · Zezi Zeng, Yuke Zhao, Muzhao Tian, Yifan Yang and six co-authors · arXiv cs.AI, December 1, 2026
Paper reports a shell-only harness beat the labs' own agents on frontier models
The authors built Freehand around one rule: "give the model a shell, its own memory, and a meter". The model gets a single bash primitive and sets its own command timeouts. Its conversation history is an editable file it can prune with the same shell. After every turn the harness reports context size, tokens, cost and elapsed time, and the 200-word prompt describes the runtime without prescribing a workflow.
They ran it against Codex, Claude Code and Gemini CLI, each on its own lab's model, at high reasoning effort. GPT-6-astra and Claude Opus 5.5 covered five benchmarks (Terminal-Bench 4, Terminal-Bench Science, Agents' Last Exam, OSWorld 2.1 and AutomationBench), and Gemini 4 Carbon covered Terminal-Bench 4, for 11 settings and 191 evaluation rounds. The paper reports Freehand ahead of the first-party harness in all 11, by 5.1 points on average, at 49% lower mean cost per task ($3.73 against $7.34). In a controlled side-by-side rerun, each of the other harnesses took 17% to 62% longer. It also reports wins over OpenCode, Pi, DeepSeek Harness and mini-swe-agent.
The ablations are the part a harness builder can use. Putting Codex's system prompt and tools back into the Freehand loop dropped Agents' Last Exam accuracy from 67.5% to 63.7% and raised cost 68%. Replacing the model's own memory editing with compaction at a 90% threshold left accuracy statistically unchanged but raised cost 19% on that benchmark and 7% on Terminal-Bench 4. mini-swe-agent's fixed 30-second timeout interrupted 38 of 63 Terminal-Bench 4 tasks. On one benign protein-docking task, swapping in only Codex's system prompt produced a refusal on the first turn in 10 of 10 runs.
The result reverses on lower-tier models. On Terminal-Bench 4, Claude Code led Freehand by 6.7 points on Claude Sonnet 5.5 (41.6% against 34.9%) and Codex led by 5.7 points on GPT-6 Sol. The authors read this as presets that help weaker models and constrain stronger ones.
Limits to keep in view: the team that built Freehand also ran every baseline, harness versions were pinned to defaults at evaluation time, and only part of the benchmark suite is software work. The paper links code; we have not run it. An independent rerun on the same benchmarks would settle the headline numbers.
Why it matters: If the ablations hold, the prompt rules, tool wrappers and fixed timeouts in a factory's harness are costing money on frontier models rather than saving it, and they are worth testing one at a time. The authors keep permissions and sandboxing with the host, writing that "safety boundaries such as permissions and sandboxing are best enforced by the execution environment rather than by prompt-level rules."