Every coding agent ships with a thick layer of instructions, tools and memory rules wrapped around the model. A team from Microsoft Research and three Chinese universities tested what happens when almost all of it is removed. Their Freehand harness hands the model a single shell, its own conversation history as an editable file and a running meter of tokens, cost and time, and leaves every other choice to the model. With GPT-6-astra, Claude Opus 5.5 and Gemini 4 Carbon, it scored higher than Codex, Claude Code and Gemini CLI in all 11 benchmark settings, by 5.1 points on average, while cutting the average cost per task by 49%. The twist matters just as much: on cheaper, weaker models the vendor harnesses still won.
Better, cheaper and usually faster
A harness is the software loop around a model: it sends the context, runs the actions the model asks for and returns the results. The authors first took apart eight popular harnesses through their source code and captured API requests. Codex starts every session with about 15,100 tokens of fixed instructions and 23 callable tools; Claude Code with 22 tools and about 8,500 tokens; DeepSeek Harness registers 34 tools. Freehand gets by on roughly 350 tokens and one tool, bash, for which the model sets its own timeout.
- Score: Averaged over the ten GPT-6-astra and Claude Opus 5.5 settings, Freehand reached 63.2% against 58.4% for the vendor harnesses, 59.3% for Pi, 57.4% for DeepSeek Harness and 56.8% for OpenCode.
- Cost: Mean cost per task was $3.23, against $6.70 for the vendor harnesses and $12.76 for DeepSeek Harness. Compared with each model’s own harness the saving ranged from 30% to 74% per setting.
- Speed: Normalized runtime was the shortest on average (31.7 minutes per task). In a controlled rerun on the same machines and endpoints, the other harnesses took 17% to 62% longer.
- Biggest gap: On the OSWorld 2.1 desktop benchmark with GPT-6-astra, Freehand scored 76.2% at $3.96 per task; Codex scored 68.3% at $14.94.

The reversal on smaller models is what keeps this from being a simple “less is more” story. On Terminal-Bench 4, 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 very same DeepSeek Harness version that helped its own Flash model trailed Freehand by 5.8 points on average across the frontier settings. The authors read this as presets acting like a crutch for weaker models and like a cage for stronger ones.
Why the comparison is credible
Each harness ran in identical containers or virtual machines with the official benchmark verifiers, and versions were pinned. The team logged 191 evaluation rounds, two to five per benchmark, and priced every token through one accounting pipeline at public list prices. Task-level permutation tests put the gains against vendor and open-source harnesses at p below 0.001, and dropping any single benchmark still left a score lead of 4.8 to 5.5 points. Against whichever baseline scored best in each setting, Freehand kept a 2.7-point lead at 38.6% lower cost.
The ablations are the most useful part. Inside the same Freehand loop, putting back the Codex system prompt and toolset lowered accuracy by 3.8 points on Agents’ Last Exam and 2.5 points on Terminal-Bench 4 while raising cost by 68% and 53%. Swapping the self-managed memory for automatic compaction at 90% of the window left accuracy unchanged but made runs 19% and 7% more expensive. So most of the score gain comes from dropping prescribed workflows and tools, and the memory trick mainly saves money on long tasks.
How the test worked
| Benchmark | Tasks | What it covers | Rounds |
|---|---|---|---|
| Terminal-Bench 4 | 63 | Systems and security work in a terminal | 5 |
| Terminal-Bench Science | 70 | Scientific computing | 3 |
| Agents’ Last Exam | 105 | Research and engineering tasks | 3 |
| OSWorld 2.1 | 108 | Ubuntu desktop GUI tasks | 3 |
| AutomationBench | 600 | Enterprise workflow tasks | 2 |
Baselines were Codex, Claude Code and Gemini CLI as first-party harnesses, plus OpenCode, Pi, DeepSeek Harness and, on Terminal-Bench 4, the bash-only mini-swe-agent. That last comparison isolates the idea: mini-swe-agent also offers only a shell but imposes a six-step checklist and a hard 30-second command timeout, which cut off 38 of 63 tasks. It scored 3.5 points lower at 35% higher cost. On one optimization task the timeout turned a single wait into 334 polling calls.
What the paper leaves open
This is a preprint, not peer reviewed, and the authors built the harness they are testing. The code is public under an MIT license, which makes the claims checkable, but nobody outside the team has rerun them yet. Harness versions also shifted between benchmarks (Claude Code 2.1.170 on OSWorld 2.1, 2.1.299 elsewhere), and some baseline runs had incomplete usage logs. The authors argue this only understates baseline cost, which holds for the money comparison but means some cost figures are lower bounds.
Benchmarks are not your codebase. Every task here ends with an automatic verifier, and Freehand ran in isolated sandboxes with scoped credentials. Nothing in the paper measures how a model with an unrestricted shell behaves in a messy production environment, where a vendor harness’s approval steps and tool limits also serve as guardrails. Finally, the crossover point is unknown: the study shows two tiers, not where between them presets stop paying off.
How it fits with what we already knew
Earlier comparisons pointed the same way without going this far. When Artificial Analysis swapped 13 harnesses around the same two models, the harness moved the bill far more than the score. An NVIDIA study on self-managed context found that letting the model decide when to compact helped GPT-6.1 Sol a lot while Claude Opus 5.5 barely used the option. Freehand suggests the setup matters: with a plain editable file, a cost meter and no compaction threshold, both GPT-6-astra and Opus edited their context on 58.6% to 64.3% of the long Terminal-Bench Science tasks and left short tasks alone.
One step further: what a thinner harness changes for budgets and for security
Why now: frontier models have become good at writing their own scripts and judging how long a job needs, while harness prompts kept growing. The paper cites audits showing instruction stacks, especially tool definitions, expanding across releases. Every token of that fixed prefix is sent again on every turn. Freehand cut cumulative input tokens by 44% to 91% compared with the vendor harnesses, which is where most of the saving comes from.
For teams paying per token, the gap adds up quickly. By our calculation, 1,000 OSWorld-style desktop tasks with GPT-6-astra would cost about $14,940 through Codex and $3,960 through Freehand at the paper’s list prices, a difference of $10,980. Across all 11 settings, the average gap is $3.61 per task ($7.34 against $3.73).
For anyone on a cheaper model tier, the picture is mixed rather than reversed. Dividing cost per task by success rate on Terminal-Bench 4 gives our own cost per solved task:
| Model | Vendor harness | Freehand | Cheaper per solved task |
|---|---|---|---|
| GPT-6 Sol (lower tier) | $6.93 (Codex) | $3.32 | Freehand |
| Claude Sonnet 5.5 (lower tier) | $4.09 (Claude Code) | $5.01 | Claude Code |
| GPT-6-astra | $10.77 (Codex) | $5.46 | Freehand |
| Claude Opus 5.5 | $8.94 (Claude Code) | $5.46 | Freehand |
| Gemini 4 Carbon | $27.72 (Gemini CLI) | $15.34 | Freehand |
With GPT-6 Sol, Codex solved more tasks but Freehand was still cheaper per solved task. With Sonnet 5.5, Claude Code won on both counts. For security teams, the consequence is a shift in where control sits. A one-tool harness has no per-tool approval prompts, so limits must come from the environment: containers, scoped tokens, network rules. The authors say as much. That matters because prompt-level guardrails are already weak, as our report on coding agent permission checkers showed. One more side effect: inside the same loop, the Codex system prompt alone triggered a refusal of a harmless protein-docking task in 10 of 10 runs, while the plain prompt passed all 10. Still open: whether these savings survive in real company codebases with approval steps, and where between the Sonnet and Opus tiers the crossover lies, which the authors themselves list as unknown.
How we checked
Checked on 2 December 2026, 08:54 CET.
- Read the full paper, arXiv:2612.02442v1 (submitted December 1, 2026), including Tables 1, 2, 5 and 7 and the statistics appendix
- Checked that the code repository exists and carries an MIT license
- Cost per solved task and per 1,000 tasks are our own arithmetic from the paper’s tables
- We did not run Freehand ourselves
What it means for teams building with agents
- Benchmark your harness, not just your model: Swapping the harness changed cost per task by up to 74% here. Run a handful of your own tasks through two harnesses before standardizing.
- Match the harness to the model tier: On Sonnet 5.5 or GPT-6 Sol class models, the vendor harness scored higher. The lean approach paid off on the top tier.
- Audit long prompts and big tool lists: If you maintain internal agent prompts, check how many tokens go out on every turn and whether rules on how to search or edit still help.
- Let long commands run: Fixed short timeouts produced hundreds of polling calls. Allow the agent to set longer timeouts for builds and simulations.
- Move guardrails into the sandbox: A harness that decides less needs an environment that allows less: containers, scoped credentials and network limits.
About this analysis
Based on the full text of arXiv:2612.02442v1, submitted on December 1, 2026. All scores, costs, token counts and model names come from the paper; the cost per solved task, the per-1,000-task figures and the average gap per task are our own arithmetic. The chart was redrawn by i10X from Table 2, since the paper’s license does not allow reuse of its figures.
i10x Perspective
The uncomfortable message for harness vendors is that some of their engineering now costs their best customers money. The fair caveat is that Microsoft researchers benchmarked their own design against rivals, and that GitHub Copilot CLI, Microsoft’s own agent, appears in the audit but not in the head-to-head results. Still, the code is open and the repository makes the claim easy to test. We expect vendors to respond with leaner modes for their flagship models rather than one harness for every tier.






