Microsoft's bare-bones agent harness beats Codex and Claude Code at half the cost
Microsoft Research released Freehand, an open-source agent harness with one bash tool and a 200-word prompt. In its own tests it beat Codex, Claude Code and Gemini CLI on their own models in 11 of 11 settings at 49% lower cost.
Cortex, covering AI models, labs and agents
, 3 min read
+7.0 ptsClaude Opus 5.5 on Terminal-Bench 4, Freehand vs Claude Code
What to know
- Freehand gives the model a roughly 200-word prompt, one bash tool whose timeout the model sets, an editable conversation history and a per-turn meter for tokens, cost and time.
- Across 11 model-benchmark settings it scored 5.1 points higher than each model's first-party harness on average, at $3.73 per task versus $7.34.
- With cheaper models such as Claude Sonnet 5.5 and GPT-6 Sol, the first-party harnesses won by 5.1 to 6.7 points.
Source: Zeng et al., arXiv 2612.02442 (Microsoft Research), five-round means.
Put Claude Opus 5.5 inside Claude Code and it scores 54.9% on Terminal-Bench 4. Put the same model, at the same reasoning setting, inside a harness that gives it one bash tool and a 200-word prompt, and it scores 61.9%. That seven-point swing comes from the software wrapped around the model, not the model, and it's the most useful number in a paper Microsoft Research posted to arXiv on Tuesday.
The harness is called Freehand, and its design is mostly subtraction. The prompt describes the runtime and prescribes no workflow. There is one tool, bash, and the model sets each command's timeout itself. The conversation history sits in the environment as an editable file, so the model prunes or condenses its own context instead of waiting for automatic compaction. After every turn a one-line meter reports context size, tokens, cost and elapsed time. That's it. Microsoft released it under an MIT license.
For contrast, the paper's audit counts 23 callable entry points and a static prefix of about 15,100 tokens in Codex, and 22 built-in tools at about 8,500 tokens in Claude Code. Freehand's prefix is about 350 tokens, roughly a forty-third of Codex's by our arithmetic (15,100 / 350).
What the scaffolding was costing
Across 11 settings (five benchmarks with GPT-6 Astra and Claude Opus 5.5, plus Terminal-Bench 4 with Gemini 4 Carbon), the authors report Freehand beat each model's own harness every time: 5.1 points higher on average, at $3.73 a task against $7.34. That's the 49% saving. It also beat OpenCode, Pi and DeepSeek Harness in score and cost across all ten settings it ran them in.
The paper's best single example is a timeout. Under a fixed 30-second limit, one Terminal-Bench 4 run turned a single long wait into 334 polling calls, at more than ten times the cost of an agent allowed to set its own timeout. Cumulative input tokens fell 44% to 91% against first-party harnesses. One thing the paper doesn't dwell on: the company that writes a lab's harness is the same one that sends the token bill.
The finding that cuts the other way
The result is not "rules are bad." With cheaper models, the first-party harnesses won clearly: Claude Code beat Freehand by 6.7 points on Claude Sonnet 5.5 (41.6% to 34.9%), Codex by 5.7 on GPT-6 Sol, and DeepSeek Harness by 5.1 on DeepSeek V4.1 Flash. The authors' line is that presets are a crutch for weaker models and "a cage" for frontier ones.
That reversal matters for anyone reading agent leaderboards (how to read a benchmark score). In each lab's own harness, Opus 5.5 and GPT-6 Astra were 0.3 points apart on Terminal-Bench 4 (54.9% vs 54.6%). In Freehand, they were 4.8 apart (61.9% vs 57.1%). Same models, same test, different ranking gap, which is the kind of instability we saw in time-series forecasting boards. An agent score is a score for a model and its wrapper together (what counts as an agent).
The caveats
This is Microsoft's paper about Microsoft's harness, not yet peer reviewed, run across 191 evaluation rounds with costs computed at list prices. Microsoft sells its own agent harness, GitHub Copilot CLI; the authors audited its prompts but did not benchmark it. And Freehand drops the prompt-level guardrails the big harnesses carry. The authors say it is designed to run inside isolated containers or virtual machines with scoped credentials, as every one of their experiments did, with safety enforced by the sandbox rather than by instructions. On a developer's own laptop, that's a real difference, not a footnote.
The open question is whether OpenAI, Anthropic and Google rerun these settings themselves, and whether their own harnesses get lighter as their models get stronger. None has responded to the paper publicly.
Sources
- Freehand: The Bitter Lesson Comes to Agent Harnesses, arXiv 2612.02442, Microsoft Research, Dec 1, 2026
- Freehand: The Bitter Lesson Comes to Agent Harnesses (full text), arXiv, Dec 1, 2026
- Freehand paper page, Hugging Face Papers, Dec 2, 2026
- Microsoft Open-Sources Freehand Harness, Beats Rivals 11 of 11, AI Weekly, Dec 2, 2026
MicrosoftAI agentsAI modelsOpenAIAnthropicGoogle
Written by an AI correspondent under standards set by editor Jacob Knight. Spotted an error? Tell us and we will fix it.