---
type: "post"
id: "microsoft-s-freehand-beats-vendor-coding-agents-at-a27a86"
slug: "microsoft-s-freehand-beats-vendor-coding-agents-at-a27a86"
title: "Microsoft's Freehand Beats Vendor Coding Agents at Half the Cost"
description: "The paper introduces Freehand, a general-purpose agent harness."
retrieval_nugget: "The paper introduces Freehand, a general-purpose agent harness."
published_at: "2026-12-04"
updated_at: "2026-12-04"
record_date: "2026-12-04"
date_kind: "published_at"
topics: ["claude","claude-code","codex"]
entities: ["Microsoft","Freehand","Codex","Claude Code","Gemini CLI"]
related_patterns: ["harness-architecture-outlives-model-choice","agent-economics-moves-to-completed-work"]
novelty_label: "new_fact"
what_changed: "Microsoft’s Freehand study finds its harness beats Codex, Claude Code, and Gemini CLI across 11 settings, averaging 5.1 points higher at 49% lower cost."
prior_refs: []
source_url: "https://arxiv.org/html/2612.02442v1"
source_urls: ["https://arxiv.org/html/2612.02442v1"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-12-04T02:00:19.490Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":{"label":"new_fact","confidence":"high"},"editorial_value":"high","human_review":"selective"}
citations: [{"claim":"","quotes":["Across five domains and three … takes 17–62% longer (Appendix H.2)."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=Across%20five%20domains%20and%20three,takes%2017%E2%80%9362%25%20longer%20%28Appendix%20H.2%29.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"Freehand gives the model a bash interface and control over each command’s timeout; it stores conversation history in an editable file in the provider’s native message format and reports context size, tokens, cost and elapsed time after each turn.","quotes":["Across five domains and three … takes 17–62% longer (Appendix H.2).","It outscores the first-party harness of every model (Codex, Claude Code, and Gemini CLI) in all 11 settings, by 5.1 points on average at 49% lower cost, and runs fastest on average: in a controlled side-by-side rerun, each of the other harnesses takes 17–62% longer."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=Across%20five%20domains%20and%20three,takes%2017%E2%80%9362%25%20longer%20%28Appendix%20H.2%29.&text=It%20outscores%20the%20first%2Dparty%20harness%20of%20every%20model%20%28Codex%2C%20Claude%20Code%2C%20and%20Gemini%20CLI%29%20in%20all%2011%20settings%2C%20by%205.1%20points%20on%20average%20at%2049%25%20lower%20cost%2C%20and%20runs%20fastest%20on%20average%3A%20in%20a%20controlled%20side%2Dby%2Dside%20rerun%2C%20each%20of%20the%20other%20harnesses%20takes%2017%E2%80%9362%25%20longer.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"Its roughly 200-word runtime description does not prescribe a workflow, while the host retains permissions, sandboxing and total-budget controls.","quotes":["A meter instead of rules: after every turn the harness reports context size, tokens, cost, and elapsed time, telling the model where it stands but never what to do about it."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=A%20meter%20instead%20of%20rules%3A%20after%20every%20turn%20the%20harness%20reports%20context%20size%2C%20tokens%2C%20cost%2C%20and%20elapsed%20time%2C%20telling%20the%20model%20where%20it%20stands%20but%20never%20what%20to%20do%20about%20it.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"The authors inspected eight harnesses through source code and captured API requests.","quotes":["What stays with the host are the boundaries around them: permissions, sandboxing, and total budgets limit what an agent may do, not how it should solve the task."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=What%20stays%20with%20the%20host%20are%20the%20boundaries%20around%20them%3A%20permissions%2C%20sandboxing%2C%20and%20total%20budgets%20limit%20what%20an%20agent%20may%20do%2C%20not%20how%20it%20should%20solve%20the%20task.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"","quotes":["To examine what mainstream harnesses … full inventory in Appendix A)."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=To%20examine%20what%20mainstream%20harnesses,full%20inventory%20in%20Appendix%20A%29.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"But the direction reversed with lower-tier models from the same families: first-party harnesses beat Freehand.","quotes":["Across five domains and three … takes 17–62% longer (Appendix H.2)."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=Across%20five%20domains%20and%20three,takes%2017%E2%80%9362%25%20longer%20%28Appendix%20H.2%29.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"The authors also report Freehand outperforming OpenCode, Pi and DeepSeek Harness, while mini-swe-agent—a bash-only harness with fixed workflow, timeouts and history—trailed at higher cost.","quotes":["Evidence across domains and model … show where it comes from."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=Evidence%20across%20domains%20and%20model,show%20where%20it%20comes%20from.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"Their controlled ablations attribute accuracy gains to removing prescribed workflows and tools, and further cost savings to self-managed memory.","quotes":["It also outperforms OpenCode, Pi, DeepSeek Harness, and a bash-only harness that still fixes its workflow and timeouts, while with lower-tier models the first-party harnesses win again.","Fewer tools alone do not explain the gain: a harness that also offers only bash but still fixes the workflow, the timeouts, and the history (mini-swe-agent \\ [9\\]) trails Freehand at higher cost."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=It%20also%20outperforms%20OpenCode%2C%20Pi%2C%20DeepSeek%20Harness%2C%20and%20a%20bash%2Donly%20harness%20that%20still%20fixes%20its%20workflow%20and%20timeouts%2C%20while%20with%20lower%2Dtier%20models%20the%20first%2Dparty%20harnesses%20win%20again.&text=Fewer%20tools%20alone%20do%20not%20explain%20the%20gain%3A%20a%20harness%20that%20also%20offers%20only%20bash%20but%20still%20fixes%20the%20workflow%2C%20the%20timeouts%2C%20and%20the%20history%20%28mini%2Dswe%2Dagent%20%5C%20%5B9%5C%5D%29%20trails%20Freehand%20at%20higher%20cost.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"In one Terminal-Bench 4 case, a 30-second cutoff turned one wait into 334 polling calls; the authors say this cost more than ten times as much as an agent setting its own timeout.","quotes":["Controlled ablations trace the accuracy … its context at subtask boundaries."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=Controlled%20ablations%20trace%20the%20accuracy,its%20context%20at%20subtask%20boundaries.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"","quotes":["It rescues an agent stuck … its own timeout (Section 5.4)."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=It%20rescues%20an%20agent%20stuck,its%20own%20timeout%20%28Section%205.4%29.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"},{"claim":"","quotes":["Across five domains and three … takes 17–62% longer (Appendix H.2).","Evidence across domains and model … show where it comes from."],"cite_url":"https://arxiv.org/html/2612.02442v1#:~:text=Across%20five%20domains%20and%20three,takes%2017%E2%80%9362%25%20longer%20%28Appendix%20H.2%29.&text=Evidence%20across%20domains%20and%20model,show%20where%20it%20comes%20from.","source_url":"https://arxiv.org/html/2612.02442v1","publisher":"arxiv.org"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:microsoft-s-freehand-beats-vendor-coding-agents-at-a27a86"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/microsoft-s-freehand-beats-vendor-coding-agents-at-a27a86/","markdown":"https://newruntime.com/posts/microsoft-s-freehand-beats-vendor-coding-agents-at-a27a86.md","json":"https://newruntime.com/posts/microsoft-s-freehand-beats-vendor-coding-agents-at-a27a86.json"}
markdown_url: "https://newruntime.com/posts/microsoft-s-freehand-beats-vendor-coding-agents-at-a27a86.md"
---

# Microsoft's Freehand Beats Vendor Coding Agents at Half the Cost

## Retrieval answer

The paper introduces Freehand, a general-purpose agent harness.

## Summary

The paper introduces Freehand, a general-purpose agent harness. Across the authors’ tests, it outscored each model’s first-party harness by 5.1 points on average while costing 49% less per task. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=Across%20five%20domains%20and%20three,takes%2017%E2%80%9362%25%20longer%20%28Appendix%20H.2%29.))

## What happened

The comparison covered five domains and three frontier model families in 11 settings, against Codex, Claude Code and Gemini CLI. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=Across%20five%20domains%20and%20three,takes%2017%E2%80%9362%25%20longer%20%28Appendix%20H.2%29.&text=It%20outscores%20the%20first%2Dparty%20harness%20of%20every%20model%20%28Codex%2C%20Claude%20Code%2C%20and%20Gemini%20CLI%29%20in%20all%2011%20settings%2C%20by%205.1%20points%20on%20average%20at%2049%25%20lower%20cost%2C%20and%20runs%20fastest%20on%20average%3A%20in%20a%20controlled%20side%2Dby%2Dside%20rerun%2C%20each%20of%20the%20other%20harnesses%20takes%2017%E2%80%9362%25%20longer.)) Freehand gives the model a bash interface and control over each command’s timeout; it stores conversation history in an editable file in the provider’s native message format and reports context size, tokens, cost and elapsed time after each turn. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=A%20meter%20instead%20of%20rules%3A%20after%20every%20turn%20the%20harness%20reports%20context%20size%2C%20tokens%2C%20cost%2C%20and%20elapsed%20time%2C%20telling%20the%20model%20where%20it%20stands%20but%20never%20what%20to%20do%20about%20it.)) Its roughly 200-word runtime description does not prescribe a workflow, while the host retains permissions, sandboxing and total-budget controls. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=What%20stays%20with%20the%20host%20are%20the%20boundaries%20around%20them%3A%20permissions%2C%20sandboxing%2C%20and%20total%20budgets%20limit%20what%20an%20agent%20may%20do%2C%20not%20how%20it%20should%20solve%20the%20task.)) The authors inspected eight harnesses through source code and captured API requests. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=To%20examine%20what%20mainstream%20harnesses,full%20inventory%20in%20Appendix%20A%29.))

In five-benchmark means with GPT-6-astra, Freehand scored 62.8% at $3.45 per task, versus Codex at 57.9% and $7.83. With Claude Opus 5.5, Freehand scored 63.6% at $3.00, versus Claude Code at 58.8% and $5.56. In a controlled rerun on the same machines, API endpoints and time window, the other harnesses took 17–62% longer than Freehand. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=Across%20five%20domains%20and%20three,takes%2017%E2%80%9362%25%20longer%20%28Appendix%20H.2%29.)) But the direction reversed with lower-tier models from the same families: first-party harnesses beat Freehand. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=Evidence%20across%20domains%20and%20model,show%20where%20it%20comes%20from.)) The authors also report Freehand outperforming OpenCode, Pi and DeepSeek Harness, while mini-swe-agent—a bash-only harness with fixed workflow, timeouts and history—trailed at higher cost. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=It%20also%20outperforms%20OpenCode%2C%20Pi%2C%20DeepSeek%20Harness%2C%20and%20a%20bash%2Donly%20harness%20that%20still%20fixes%20its%20workflow%20and%20timeouts%2C%20while%20with%20lower%2Dtier%20models%20the%20first%2Dparty%20harnesses%20win%20again.&text=Fewer%20tools%20alone%20do%20not%20explain%20the%20gain%3A%20a%20harness%20that%20also%20offers%20only%20bash%20but%20still%20fixes%20the%20workflow%2C%20the%20timeouts%2C%20and%20the%20history%20%28mini%2Dswe%2Dagent%20%5C%20%5B9%5C%5D%29%20trails%20Freehand%20at%20higher%20cost.)) Their controlled ablations attribute accuracy gains to removing prescribed workflows and tools, and further cost savings to self-managed memory. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=Controlled%20ablations%20trace%20the%20accuracy,its%20context%20at%20subtask%20boundaries.)) In one Terminal-Bench 4 case, a 30-second cutoff turned one wait into 334 polling calls; the authors say this cost more than ten times as much as an agent setting its own timeout. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=It%20rescues%20an%20agent%20stuck,its%20own%20timeout%20%28Section%205.4%29.))

## What the archive adds

Earlier ShellBench coverage found model choice had a much larger median effect than harness choice; its scores are not directly comparable to Freehand’s benchmark. ([earlier report](https://openclaw.ai/blog/shellbench))

## Trend signal

Reporting score alongside per-task cost fits a broader shift toward evaluating agent economics by cost per completed task, rather than by token or model-call price. Benchmark scores, however, do not establish verified production output.

## Why it matters

The paper links to Freehand’s code repository. Test harnesses with the specific model tier you plan to deploy: the reported advantage did not carry over to lower-tier models.

## Limits and uncertainty

These are author-reported results from 11 settings across five domains and three frontier model families, not a universal harness ranking; the lower-tier reversal makes that boundary material. ([arxiv.org](https://arxiv.org/html/2612.02442v1#:~:text=Across%20five%20domains%20and%20three,takes%2017%E2%80%9362%25%20longer%20%28Appendix%20H.2%29.&text=Evidence%20across%20domains%20and%20model,show%20where%20it%20comes%20from.))

## Reader takeaway

In the authors’ 11 tested settings, Freehand averaged 5.1 points above each model’s first-party harness and cost 49% less per task. But first-party harnesses won with lower-tier models from the same families. Harness performance is therefore a model-dependent result, not a property to assume across a stack.

## Open question

Will an independent comparison reproduce Freehand’s reported advantage against at least one first-party harness?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- topic hub: [Codex](https://newruntime.com/topics/codex.md): Explore the codex topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
