Freehand Agent Harness Benchmark Index vs First-Party CLIs
Quantitative index of Freehand vs Codex, Claude Code, Gemini CLI across Terminal-Bench 4, OSWorld 2.1, and AutomationBench: score, cost, latency, and failure modes.
Freehand beats Codex, Claude Code, and Gemini CLI by 5.1 points average at 49% lower cost across 11 frontier-model settings, but first-party harnesses still win with weaker models.
Key Numbers & Verified Specs
7 metrics| Metric / Spec | Verified Finding | Source |
|---|---|---|
| Average score advantage over first-party harnesses | 5.1 points higher across 11 settings | arxiv.org |
| Cost reduction vs first-party harnesses | 49% lower cost | arxiv.org |
| Latency overhead of competing harnesses | 17–62% longer per task in controlled rerun | arxiv.org |
| Prompt size | ~200-word runtime description only | arxiv.org |
| Benchmarks tested | Terminal-Bench 4, Terminal-Bench Science, Agents' Last Exam, OSWorld 2.1, AutomationBench | huggingface.co |
| Models evaluated | GPT-4o-astra, Claude Opus 5.5, Gemini 4 Carbon | huggingface.co |
| License and install | MIT, curl install.sh | sh | huggingface.co |
Jump to section (5) +
Freehand inverts the standard agent-harness contract. Instead of baking strategy, tool menus, timeouts, and compaction thresholds into the system prompt before the model sees the task, it hands the model a shell, editable memory, and a per-turn cost meter, then steps aside. The result is a quantitative split: frontier models perform better, cheaper, and faster under minimal harnesses, while weaker models still need the presets that mainstream CLIs provide.
Direct Engineering Verdict
Freehand is the correct default for teams running frontier models (GPT-4o-astra, Claude Opus 5.5, Gemini 4 Carbon class) on terminal-heavy tasks. It scored highest and cheapest in all 11 evaluated settings across five benchmarks, beating each model's own first-party harness by 5.1 points on average at 49% lower cost, as documented in Freehand: The Bitter Lesson Comes to Agent Harnesses. In controlled side-by-side reruns, Codex, Claude Code, and Gemini CLI each took 17–62% longer per task. That latency gap comes from fixed presets: a 30-second command timeout on one Terminal-Bench 4 run forced 334 polling calls where a self-set timeout would have waited once.
The caveat is equally sharp. With lower-tier models, first-party harnesses win again. Freehand's ~200-word prompt offers no behavioral rules, no workflow scaffolding, and no safety guardrails beyond what the model imposes on itself. If your team runs 7B–13B local models or cost-sensitive SLM agents, this harness will fail more often than it succeeds.
Token, Latency & Accuracy Comparison Table
| System | Prompt size | Tools exposed | Timeout control | Context management | Avg score vs first-party | Cost vs first-party | Latency vs first-party |
|---|---|---|---|---|---|---|---|
| Freehand | ~200 words | Single bash | Model sets per-command | Model-edited history | +5.1 points | 49% lower | Baseline (fastest) |
| Codex (OpenAI) | Multi-thousand words | 20+ entry points | Fixed presets | Threshold compaction | Baseline | Baseline | 17–62% slower |
| Claude Code (Anthropic) | Behavioral spec + reminders | 20+ tools | Fixed presets | Threshold compaction | Baseline | Baseline | 17–62% slower |
| Gemini CLI (Google) | Research–strategy–execution lifecycle | 20+ tools | Fixed presets | Threshold compaction | Baseline | Baseline | 17–62% slower |
| OpenCode / Pi / DeepSeek Harness | Workflow-fixed | Fixed tool suites | Fixed timeouts | Fixed compaction | Beaten by Freehand | Higher | Slower |
Methodology notes: scores are five-benchmark means across Terminal-Bench 4, Terminal-Bench Science, Agents' Last Exam, OSWorld 2.1, and AutomationBench. Cost and latency measured per task in controlled reruns. The 17–62% latency range reflects per-harness variation, not a single aggregate.
Failure Modes & Context Pollution
Freehand's minimalism creates specific operational risks that first-party harnesses are designed to absorb. Because the model sets each command's own timeout, a runaway optimization loop can burn budget without an external kill switch. The paper documents one Terminal-Bench 4 case where a fixed 30-second cutoff turned a single wait into 334 polling calls; under Freehand, the inverse risk applies—a model that never times out a command can stall a task indefinitely.
Self-managed conversation history means no fixed-threshold compaction. That is an advantage when the model knows what to retain, but it becomes context pollution when the model fails to prune obsolete tool outputs. Token usage grows linearly with every unedited turn, and the meter after every turn exposes context size, tokens, cost, and elapsed time. Visibility does not equal enforcement; the model can ignore its own meter and keep appending noise.
There is also no behavioral specification. Mainstream harnesses bundle runtime reminders and safety prescriptions that prevent destructive commands or infinite file edits. Freehand removes those guardrails. A frontier model can self-regulate, but a weaker model—or a compromised model—has no harness-level boundary to stop it.
Minimal Reproducible Config / Harness Snippet
Freehand installs via a single shell script and exposes terminal, web, and desktop UIs. The desktop app is beta.
curl -LsSf https://raw.githubusercontent.com/microsoft/FreeHand/main/install.sh | shThe runtime contract is deliberately thin. A representative session looks like this:
{
"system_prompt": "You are an agent in a Linux terminal. You have one tool: bash. Set each command's timeout. You can edit your own conversation history. A meter reports context size, tokens, cost, and elapsed time after every turn.",
"tools": ["bash"],
"timeout_policy": "model_sets_per_command",
"compaction": "self_managed_history",
"metering": "per_turn_context_tokens_cost_elapsed"
}Teams adopting this should wrap the install in a CI container with network egress limits and a hard process-level timeout, because the harness itself does not enforce one.
When NOT to Adopt This Pattern
Do not use Freehand with lower-tier models. The paper is explicit: as models get weaker, first-party harnesses win again. A 7B or 13B agent lacks the reasoning depth to set sane timeouts, prune its own history, or interpret a cost meter mid-task.
Do not use it where safety boundaries must be enforced outside the model. No preset tool suite means no allow-list, and no fixed timeouts means no automatic rescue from an interactive prompt. If your compliance model requires harness-level guardrails, Freehand shifts too much risk onto the model.
Do not use it for long-running unattended jobs without an external watchdog. The model controls its own timeouts, so a stuck command can block the loop indefinitely. Pair it with a process supervisor or skip it for overnight batch workloads.
Finally, do not treat the 49% cost saving as universal. It was measured against first-party harnesses on frontier models across five specific benchmarks. Your task distribution, model mix, and token pricing will shift the curve.
The bitter lesson here is structural: presets that help weak models eventually cage strong ones. Freehand proves the point with numbers, but the harness you ship should match the model you actually run.

For the full paper text and supplementary tables, see Freehand: The Bitter Lesson Comes to Agent Harnesses on Hugging Face. The related agent harness collection is available at agent=llm+harness collection.
Reader Q&A
Frequently Asked Questions
Does Freehand work with weaker models?
What benchmarks were used in the Freehand evaluation?
Does Freehand enforce timeouts or safety guardrails?
Bibliography & Verification
Primary Sources & References
Human × Agent Co-Work
Hamdi Soudani · in collaboration with Pyvren
Systems engineer & technical writer exploring AI infrastructure, security, and edge craft in daily collaboration with Pyvren.
Keep Reading
Related Dispatches
Hamdi Soudani × Pyvren
Honest engineering stories — co-crafted with primary benchmarks & real code
Every dispatch blends hands-on engineering judgment with verified primary sources, reproducible configs, and clear tradeoffs.