Agent ResearchAnthropicClaude
Evidence check
  • Preprint
  • Code/data available
  • Not independently replicated

Stripped-Down Agent Harness Beat Codex and Claude Code at Half the Cost

A Microsoft Research team gave frontier models one bash tool, an editable memory file and a cost meter. The result beat Codex, Claude Code and Gemini CLI in all 11 tests at about half the price.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 7 min read
Share
A minimal developer workspace in morning light with a single laptop turned away from view and a closed toolbox on the floor beside the desk
Image: AI-generated, i10X
On this page
  1. Better, cheaper and usually faster
  2. Why the comparison is credible
  3. How the test worked
  4. What the paper leaves open
  5. How it fits with what we already knew
  6. One step further: what a thinner harness changes for budgets and for security
  7. What it means for teams building with agents
  8. About this analysis
  9. i10x Perspective

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.
Grouped bar chart of cost per task in US dollars across 11 model and benchmark settings. Freehand is cheaper than the model's own harness in every one, for example 3.96 versus 14.94 dollars on OSWorld 2.1 with GPT-6-astra and 3.38 versus 4.91 dollars on Terminal-Bench 4 with Claude Opus 5.5.
i10X chart based on data from Zeng, Zhao, Tian, Yang, Dai, Liu, Qiu, Zhuang, Zhu and Luo (2026), arXiv:2612.02442, Table 2. Costs at the list prices the authors used; own chart, no original figure reused (the paper is under the arXiv non-exclusive license).

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

BenchmarkTasksWhat it coversRounds
Terminal-Bench 463Systems and security work in a terminal5
Terminal-Bench Science70Scientific computing3
Agents’ Last Exam105Research and engineering tasks3
OSWorld 2.1108Ubuntu desktop GUI tasks3
AutomationBench600Enterprise workflow tasks2
Benchmarks and round counts as listed in the paper (Section 4.1 and Table 4). All frontier models ran at high reasoning effort.

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:

ModelVendor harnessFreehandCheaper per solved task
GPT-6 Sol (lower tier)$6.93 (Codex)$3.32Freehand
Claude Sonnet 5.5 (lower tier)$4.09 (Claude Code)$5.01Claude Code
GPT-6-astra$10.77 (Codex)$5.46Freehand
Claude Opus 5.5$8.94 (Claude Code)$5.46Freehand
Gemini 4 Carbon$27.72 (Gemini CLI)$15.34Freehand
i10X calculation: cost per task divided by score, from Table 2 and Table 7 of the paper (Terminal-Bench 4, 63 tasks, 5 rounds). A rough measure, since a solved task is worth more than a failed one that still costs money.

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.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Timeline

What happened before

  1. Release

    Claude Haiku 5.5

    1M context · $0.1 / $0.5 per 1M tokens

    support.claude.com (source, opens in a new tab)
  2. Release

    Claude Sonnet 5.5

    1M context · $2 / $10 per 1M tokens

    support.claude.com (source, opens in a new tab)
  3. Release

    Claude Opus 5.5

    1M context · $4 / $20 per 1M tokens

    First model of the Claude 5.5 family; performs at the level of Claude Fable 5.1 on most work and costs 40% less to run than Opus 5.

    anthropic.com (source, opens in a new tab)
  4. Release

    Claude Fable 5.1 & Mythos 5.1

    1M context · $10 / $50 per 1M tokens

    Anthropic's most advanced models for coding and knowledge work. Price/context shown for Claude Fable 5.1 (models overview).

    support.claude.com (source, opens in a new tab)
  5. Release

    Claude Opus 5

    1M context · $5 / $25 per 1M tokens

    support.claude.com (source, opens in a new tab)
Full Claude timeline ›

Editor's picks

  1. GPT-6.2 Cyber Isn’t on Bedrock Yet: Who Can Claim OpenAI’s $50,000 AWS Credits
  2. What Google DeepMind Said About Gemini 3.8 Flash: Upgrade Everyone to Hydrogen
  3. Analysis: Amazon Trainium3SR Brings Fast Decode In-House, Months After Cerebras Deal
  4. Athena on DuckDB Bills Compute, Not Data Scanned: What Changes for Your Queries
  5. AWS Greenlight Checks AI Agent Rules With Math: The Limits Teams Should Know