Microsoft Freehand harness beats Codex, Claude and Gemini

Microsoft Freehand harness beats Codex, Claude and Gemini

Freehand leads rival harnesses on score and cost in benchmark tests

The Freehand harness built by researchers at Microsoft beat the coding tools of OpenAI, Anthropic and Google on their own models, according to a research paper published on December 2, 2026. Across 11 benchmark settings, the stripped-down Freehand harness outscored Codex, Claude Code and Gemini CLI every time, by 5.1 points on average, while cutting the cost of each task by 49 percent. The paper, titled “Freehand: The Bitter Lesson Comes to Agent Harnesses”, is a research preprint, not a product launch, and its code is published openly on GitHub.

A harness is the software loop wrapped around an artificial intelligence model: it sends the model its context, runs the actions the model requests and returns the results. The established harnesses load the model with instructions before it sees the task. Codex starts a session with about 15,100 tokens of fixed instructions and 23 tools, Claude Code with about 8,500 tokens and 22 tools, and Gemini CLI with about 9,500 tokens and 16 tools. The Freehand harness does almost none of that. It gives the model one bash shell, its conversation history as a file it can edit, and a running meter of tokens, cost and time, then lets the model decide everything else. Its fixed prefix is about 350 tokens.

The researchers tested the Freehand harness on five benchmarks: Terminal-Bench 4, Terminal-Bench Science, Agents’ Last Exam, OSWorld 2.1 and AutomationBench, using three frontier model families, GPT-6-astra, Claude Opus 5.5 and Gemini 4 Carbon. In every one of the 11 settings, Freehand scored higher than the model’s own first-party harness. Averaged over the ten GPT-6-astra and Claude Opus 5.5 settings, Freehand reached 63.2 percent against 58.4 percent for the vendor harnesses, at 3.23 dollars per task against 6.70 dollars. The authors report the gains as statistically significant at p less than 0.001.

The largest gap came on OSWorld 2.1, a benchmark of 108 desktop computer tasks, where Freehand with GPT-6-astra scored 76.2 percent at 3.96 dollars per task, against 68.3 percent at 14.94 dollars for Codex. On Terminal-Bench 4, Freehand with Claude Opus 5.5 scored 61.9 percent against 54.9 percent for Claude Code, and with Gemini 4 Carbon it scored 57.1 percent at 8.76 dollars against 49.5 percent at 13.72 dollars for Gemini CLI. On AutomationBench, a 600-task workflow benchmark, Freehand with GPT-6-astra scored 49.5 percent against 44.8 percent for Codex. Freehand was also faster on average: in a controlled side-by-side rerun on the same machines, each rival harness took 17 to 62 percent longer.

Freehand harness wins by deciding less

The paper’s argument is that the presets inside a harness are decisions made before the model has seen the task: prompts that prescribe how to approach the work, tool suites and timeouts that fix how to act, and automatic summaries that decide what to remember. For weaker models, the authors write, these presets are a crutch. For frontier models, they become a cage. The finding echoes the Bitter Lesson, the idea that hand-built knowledge helps artificial intelligence at first and is eventually outgrown by general methods.

Freehand hands the decisions back together with the means to make them. The model sets the timeout of every command itself, so it can wait for a long computation instead of polling it in short bursts. Its memory lives in the environment as an editable file, so pruning a stale log or condensing a finished subtask becomes one more action performed with the same shell. And after every turn, the meter reports context size, tokens, cost and elapsed time, telling the model where it stands without telling it what to do.

The researchers ran 191 evaluation rounds, two to five per benchmark, with versions pinned and every harness run in identical containers or virtual machines under the official benchmark checkers, pricing every token through one accounting pipeline at public list prices. Freehand also beat the third-party harnesses OpenCode, Pi and DeepSeek Harness, and a bash-only harness that still fixed its workflow and timeouts.

Freehand harness loses on weaker models

The result does not hold at every level of model. On Terminal-Bench 4 with lower-tier models, the order reverses: Codex beat Freehand by 5.7 points with GPT-6 Sol, Claude Code led by 6.7 points with Claude Sonnet 5.5, and DeepSeek Harness led by 5.1 points with DeepSeek V4.1 Flash. The authors read this as the crutch turning into a cage as models grow stronger, and their conclusion is deliberately narrow: as models grow stronger, the best harness is the one that decides the least.

That caveat matters for anyone reading the headline as a verdict on the tools themselves. The paper measures benchmark scores, cost per task and runtime in controlled tests, not live business results, and it says nothing about security, reliability or ease of use in production. What it does show is that the most capable models now perform better when the software around them gets out of the way, a result that puts pressure on every vendor whose coding assistant is built around heavy preset instructions.

Comments (0)