Freehand is an agent harness, the loop around a language model that sends it context, runs its actions and returns what happened, built on one rule: give the model a shell, its own memory and a meter, and let it decide everything else. The authors went through the code and API traffic of eight harnesses, Codex, Claude Code and Gemini CLI among them. They found each one decides three things before the model has seen the task: how to approach it (prompts and reminders), how to act (fixed tool sets and timeouts), and what to remember (summarising the history at a fixed threshold). Their claim is that for frontier models these presets now cost more than they save, the Bitter Lesson applied to harnesses. Freehand keeps a prompt of about 200 words and a single bash tool, whose timeout the model sets anywhere from 1 second to a day (120 s if it doesn’t say). Its fixed prompt and tool schema come to about 0.35K tokens, against 1.2K to 15.1K in the others, which carry 4 to 34 tools.
Mean score over the ten GPT-6-astra and Claude Opus 5.5 settings
% · higher is better
- Freehand63.2$3.23 a task
- Pi59.3$4.49 a task
- First-party58.4Codex or Claude Code. $6.70 a task
- DeepSeek Harness57.4$12.76 a task
- OpenCode56.8$5.16 a task
Terminal-Bench 4: the same harnesses on weaker and stronger models
What Freehand gives the model
About 200 words that say how the runtime works. No workflow, no rules, no reminders. The same for every model and benchmark.
bash, with a timeout the model sets for each command, up to a day. Other harnesses carry 4 to 34 tools.
The whole conversation is a file in the provider's own message format. The model prunes or condenses it with bash, and can paste a screenshot into it to look at.
After each turn, one line: turn number, context size, tokens, cost and time so far. It says where the model stands and never what to do.
A reply with no command ends the run, and the benchmark's own checker scores it.
Findings
- On five benchmarks (terminal tasks, scientific computing, research tasks, a desktop GUI, enterprise workflows) and three frontier models, Freehand beats each model’s own harness in all 11 settings, by 5.1 points on average, at 49% lower cost a task. Across the ten GPT-6-astra and Claude Opus 5.5 settings it scores 63.2% at $3.23 a task. The first-party harnesses score 58.4% at $6.70, Pi 59.3% at $4.49, DeepSeek Harness 57.4% at $12.76 and OpenCode 56.8% at $5.16.
- It also beats OpenCode, Pi and DeepSeek Harness, and mini-swe-agent, which offers only bash but still fixes the workflow and a 30 s timeout: +3.5 points at $3.12 against $4.21.
- In a rerun with all harnesses side by side on the same machines and API endpoints, every other harness took 17% to 62% longer.
- With weaker models from the same families the order flips. Codex beats Freehand on GPT-6 Sol (34.9% against 29.2%), Claude Code on Claude Sonnet 5.5 (41.6% against 34.9%). On the frontier models in the same families, Freehand leads: 57.1% against 54.6% on GPT-6-astra and 61.9% against 54.9% on Claude Opus 5.5. The same DeepSeek Harness that helps DeepSeek V4.1 Flash by 5.1 points trails Freehand on the frontier models.
- Ablations on GPT-6-astra: putting Codex’s prompt and tools into Freehand’s loop brings the score back down to Codex’s (54.6% on Terminal-Bench 4). Turning off the model’s own memory management barely moves the score (56.8% against 57.1%) but raises the cost ($3.35 against $3.12).
- Fixed timeouts are expensive. On one task, a 30 s cutoff made mini-swe-agent poll 334 times across 403 calls for $70.77. Freehand set a long timeout, waited up to 24 minutes in one call, and finished in 42 calls for $2.28.
- Codex’s prompt alone, with Freehand’s loop and tool, made the model refuse a harmless protein-docking task on the first turn in 10 of 10 runs. Freehand’s own prompt passed 10 of 10.
Limits
- Not a robotics paper. The tasks are software, science and GUI work in containers and virtual machines.
- Where the crossover from crutch to cage lies is left open. Only two capability tiers are tested.
- Terminal-Bench 4 has 63 pass-or-fail tasks over 3 to 5 rounds, so per-task differences of 2 to 6 points can’t be resolved. The aggregate gains are significant (p < 0.001).
- Some baseline cost records are incomplete (Gemini CLI on Terminal-Bench 4, some Codex and Claude Code runs on one benchmark), so those costs are lower bounds. That favours the baselines.
- One agent only. Sub-agents and explicit budgets are future work.
- The project page’s title differs from the paper’s: “From Crutch to Cage: The Bitter Lesson of Agent Harnesses”.
Relevance
Robot stacks are full of presets too: skill libraries, fixed recovery behaviours, procedures like the one in Agentic Robot, and timeouts on every action. This paper’s answer is to hand those decisions back to the model, and to keep the boundaries (permissions, sandboxing, total budget) with the host. On a robot, the boundary is the safety filter and the runtime monitor, and I think that split carries over. What doesn’t carry over is the cost of a bad decision: a shell can be reset, a dropped object can’t. The false refusals also matter for evaluating language models: a prompt alone moved a benchmark result from 10 of 10 to 0 of 10, so a score belongs to a model and its harness together. Open question for failure recovery: does the crutch-to-cage flip happen for robot policies as they get stronger, and how would we see it, when most robot benchmarks are run in one harness only?
Links
- arXiv
- Project page
- Code
- Subfield: Robot learning