FreehandMicrosoft

From Crutch to Cage

The Bitter Lesson of Agent Harnesses

Zezi Zeng1,*,†  ·  Yuke Zhao2,*,†  ·  Muzhao Tian3,†  ·  Yifan Yang4,‡  ·  Qi Dai4
Bei Liu4  ·  Kai Qiu4  ·  Bohan Zhuang2  ·  Jihua Zhu1,5,‡  ·  Chong Luo41Xi’an Jiaotong University    2Zhejiang University    3Fudan University    4Microsoft Research
5State Key Laboratory of Human-Machine Hybrid Augmented Intelligence, Xi’an Jiaotong University
*Equal contribution    †Work done during an internship at MSRA    ‡Corresponding authors   ·   December 2026

Xi’an Jiaotong University Zhejiang University Fudan University Microsoft Research

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

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.

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.

As models grow stronger, the best harness is the one that decides the least.

What Freehand keeps

Mainstream harnesses such as Codex, Claude Code, Gemini CLI, DeepSeek Harness, OpenCode and Pi wrap the model in detailed instructions, 20+ preset tools, runtime reminders, and auto-compaction that summarizes history at a fixed threshold. Freehand gives the model a runtime description of about 200 words with no rules and one tool, bash, with model-set timeouts, and the model prunes its own history via bash.

Scroll sideways to compare · Tap the figure to enlarge

Mainstream harnesses prescribe strategy, execution, and memory. Freehand returns all three to the model.

Frontier models across five domains

11 / 11highest score11 / 11lowest cost+5.1 pointsvs. first-party, on average−49% costvs. first-party, on average

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.

Terminal-Bench 4 score (%), mean of 5 rounds per bar. Labels compare Freehand against the first-party harness, in points.

Four cases, up close

a tool call per click, or one script

OSWorld 2.1 · Task 065 · GPT-6-astra

Task: book two rail tickets in a desktop app. Codex, with 20+ GUI tools, uses nine tool calls for three actions, because acting, capturing the screen and viewing it each take a call: 430 calls in total, 76 minutes, 50.7M tokens, $57.45, and the booking fails. Freehand writes one script per bash call that clicks, types, takes a screenshot and deletes old screenshots: 316 GUI actions in 139 calls, 21 minutes, 2.86M tokens, $9.95, and the tickets are booked.
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.

the whole PDF, or the lines that matter

Agents’ Last Exam · sec_10k_financial_parsing

OpenCode's read tool returns a whole 78-page PDF, adding 138K tokens to the context at call 3; the context then grows to 260K tokens by call 44, and the PDF is re-sent with every later call: 9.09M input tokens, $13.09. Freehand converts 100 PDFs to text on disk and greps for matching lines only; its context stays under 73K tokens over 27 calls: 1.16M tokens, $2.66. Same final score, 0.914 vs 0.915.
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.

a fixed 30 s limit, or the model’s own timeout

Terminal-Bench 4 · ctr-optimization

mini-swe-agent has to wait a long time for campaign data but is cut off at a fixed 30 second limit, so it loops between sleeping 29 seconds and checking progress: 334 polling steps, 403 calls, 60.32M tokens, $70.77. Freehand sets each timeout itself and makes one call that waits 24 minutes and then checks: 42 calls, 0.72M tokens, $2.28.
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.

same task, one prompt apart

Agents’ Last Exam · zdock

A benign task: score and rank 10 docking poses with geometry metrics on a public PDB structure. With the Codex prompt, over 3,000 words and no biosecurity clause, the model answers that it can't score or rank HIV protease docking poses: a false refusal in 10 of 10 runs. With Freehand's prompt of about 200 words, the model ranks the 10 poses in 5 model calls: 10 of 10 runs pass.
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.

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
BenchmarkModelHarnessRoundsScore ↑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.

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.

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}
}