AI & Compute · 4 min read

Microsoft's Freehand harness beats Codex and Claude Code at 49% lower cost

Microsoft's MIT-licensed Freehand harness beat Codex, Claude Code and Gemini CLI by 5.1 points on average at 49% lower cost, sweeping 11 of 11 frontier benchmark settings with a 200-word prompt and one bash tool.

By Sophie Lindqvist722 words

Key takeaways

  1. Freehand beat first-party harnesses by 5.1 points average at 49% lower cost across 11 of 11 frontier settings
  2. The harness uses a ~200-word prompt, one bash tool with model-chosen timeouts, self-editable history, and a cost meter
  3. Rival harnesses took 17% to 62% more wall-clock time in controlled reruns
  4. Released under MIT license as part of Microsoft's AgentOpt research series
  5. Freehand trails first-party scaffolds on weaker and smaller models
Microsoft's Freehand harness beats Codex and Claude Code at 49% lower cost
jamesmarkosborne / pixabay

Microsoft researchers built a roughly 200-word AI agent harness that beat Codex, Claude Code, and Gemini CLI by an average of 5.1 points while cutting inference cost 49 percent. The work appears in a paper titled Freehand: The Bitter Lesson Comes to Agent Harnesses, and the code ships under an MIT license [1][2].

The result deserves scrutiny before celebration. Microsoft tested its own harness against rivals on benchmarks it did not design, but the sweep was total: highest accuracy and lowest dollar cost in 11 of 11 frontier settings [1].

What is Freehand, exactly?

The system is deliberately thin. It replaces long strategy prompts and preset tool suites with four primitives [1][2]:

  • A runtime description of roughly 200 words, nothing more
  • A single bash tool in which the model chooses its own command timeouts
  • A conversation history the model can edit directly, with no fixed-threshold compaction
  • A per-turn meter reporting context size, tokens, cost, and elapsed time

That is the whole harness. No tool catalogs. No compaction rules. The design bets that frontier models plan, manage context, and time their own commands better than any wrapper does.

How clean was the benchmark sweep?

The team ran five evaluations: Terminal-Bench 4, Terminal-Bench Science, Agents' Last Exam, OSWorld 2.1, and AutomationBench [1]. Three frontier models served as the engine: GPT-6-astra, Claude Opus 5.5, and Gemini 4 Carbon [1].

Freehand finished first on both accuracy and cost in all 11 settings [1]. Against each model's first-party harness — Codex for GPT-6-astra, Claude Code for Opus 5.5, Gemini CLI for Gemini 4 Carbon — the margin averaged 5.1 points at 49 percent lower cost [1]. Controlled timing reruns showed rival harnesses taking 17 to 62 percent more wall-clock time [1]. Freehand also outperformed open alternatives including OpenCode, Pi, DeepSeek Harness, and the bash-only mini-swe-agent [1].

The paper does not claim the code is public-verified by third parties. These are Microsoft's own runs, reported in Microsoft's own paper. Rival vendors have not published rebuttals, and the measured models are recent enough that independent replication remains thin.

Where the minimalism stops working

One result cuts against the headline. Freehand trails first-party scaffolds on lower-tier and smaller models [1]. The authors state this plainly. Heavy prompts, rigid tool catalogs, and fixed compaction thresholds still lift scores for weaker models. Those presets only become friction for frontier models that can plan and manage context on their own [1].

This is the paper's real argument. It is a direct application of Rich Sutton's Bitter Lesson to agent engineering: hand-crafted scaffolding that helps today's mid-tier models will likely obstruct tomorrow's stronger ones. The 49 percent cost saving is the evidence, not the conclusion.

What does this mean for buyers?

Freehand ships with a terminal UI, a web UI, and a beta desktop application [1]. It sits inside Microsoft's broader AgentOpt research series alongside SkillOpt, EnvOpt, and EvalOpt [1].

For enterprises paying token bills on multi-agent coding and automation pipelines, the finding suggests a counterintuitive procurement lever: simplifying agent wrappers may deliver larger accuracy and cost gains than adding more brittle prompt rules [1][2]. A 49 percent cost cut across a coding-agent fleet would outrank most vendor negotiation outcomes.

The caveat is equally concrete. The result holds only for frontier models, and model quality defines the boundary. Teams on smaller or cheaper models should expect the opposite outcome, since guardrails still help there [1]. Any migration plan needs a model-tier audit before it drops its scaffolding.

The competitive read

The first-party harness vendors face an awkward result. Microsoft, which sells its own agent tooling, has published evidence that a bare-bash wrapper beats commercial harnesses from OpenAI, Anthropic, and Google on cost, speed, and accuracy. The paper does not say whether those vendors will respond by stripping their own products down.

The open question is durability. If the Bitter Lesson applies as claimed, next-generation models should widen Freehand's lead. If context management degrades on longer horizons, the self-edited history design carries risk the benchmarks may not capture. The 11-of-11 sweep is today's fact; the direction of travel is the bet.

mlq.ai (Source)

Filed under

Share this article:

More from Sophie Lindqvist

Sophie Lindqvist

Show full bio

News editor covering money, funding and market shifts around Semiconductors, chip manufacturing, hardware, AI compute at Chip Dispatch.

1,477 articles

Read also

« Previous articleNext article »