Microsoft Freehand: The AI Harness That Gets Out of the Way
What Freehand actually is
On December 1, 2026, a team led by Zezi Zeng at Microsoft Research Asia posted "Freehand: The Bitter Lesson Comes to Agent Harnesses" (arXiv:2612.02442). It topped Hugging Face Daily Papers the next day, and the code went public on GitHub under MIT. Its claim is blunt: the scaffolding built around AI coding agents has started to hold the best models back.
Freehand vs. first-party harnesses, averaged over five benchmarks. Source: microsoft/FreeHand README.
A harness is the software loop around a model: it sends the context, runs the actions the model asks for, and returns the results. Codex, Claude Code, and Gemini CLI are harnesses, and each ships with a long system prompt, curated tools, fixed timeouts, and automatic context compaction. Before a task even starts, Codex loads about 15,100 tokens of fixed instructions and 23 tools; Claude Code, about 8,500 tokens and 22 tools; DeepSeek Harness registers 34 tools.
Freehand throws almost all of that out. The model gets four things and nothing else:
- A runtime prompt of roughly 200 words, about 350 tokens, that describes only how the runtime works. No workflows, no checklists, no nudges.
- One tool:
bash. The model writes whatever scripts or utilities the job needs, and sets its own timeout for each command. - Its own memory. Instead of automatic compaction at a fixed threshold, the model edits and prunes its own conversation history.
- A meter, shown after every turn: context size, tokens used, cost so far, and elapsed time.
How Freehand strips a harness down to a prompt, one tool, and a meter. Source: microsoft/FreeHand README.
The name comes from Richard Sutton's 2019 essay "The Bitter Lesson": hand-built knowledge helps at first, then gets outgrown by general methods. The authors argue that lesson has now reached the harness layer. Presets that once kept weak models on track now act as a cage for frontier models, so the best harness is the one that decides the least.
The numbers behind the claim
The team tested Freehand against each model's first-party harness on five benchmarks (Terminal-Bench 4, Terminal-Bench Science, Agents' Last Exam, OSWorld 2.1, AutomationBench) with three frontier model families: GPT-6-astra, Claude Opus 5.5, and Gemini 4 Carbon. Across all 11 settings, Freehand scored 5.1 points higher on average at 49% lower cost, and ran fastest. In a controlled rerun on the same machines and endpoints, every other harness took 17 to 62 percent longer.
On Terminal-Bench 4 with GPT-6-astra, Freehand scored 57.1% at $3.12 per task, against Codex at 54.6% and $5.88. On OSWorld 2.1, Freehand reached 76.2% at $3.96, against Codex at 68.3% and $14.94. Across the GPT-6-astra and Claude Opus 5.5 settings, Freehand averaged 63.2% at $3.23 per task, against 58.4% and $6.70 for the vendor harnesses. It also beat OpenCode, Pi, DeepSeek Harness, and a bash-only baseline with fixed timeouts.
Where the argument flips
The same experiment with weaker models reverses. On Terminal-Bench 4 with GPT-6 Sol, Codex scored 34.9% against Freehand's 29.2%. With Claude Sonnet 5.5, Claude Code led 41.6% to 34.9%. With DeepSeek V4.1 Flash, DeepSeek Harness led 28.9% to 23.8%. In the authors' reading, for weaker models presets are a crutch; for frontier models, they are a cage.
That split is the real debate: there is no single right answer to how much a harness should decide. It depends on the model underneath, and the crossover point is still unknown. As models keep getting stronger, the scaffolding that helped yesterday's models may slow down tomorrow's.
What it means for people who run agents
Anyone who has run a personal agent stack has felt this tension. An orchestrator that plans, a coding agent that edits, a local model that answers: each layer adds prompts, tools, retries, and guardrails, each added because some weaker model once needed it. Freehand asks what happens if you strip those back and let a strong model manage its own context, timeouts, and budget.
A thinner harness makes the model choice matter more and switching cheaper. A 200-word prompt and one tool is something a small team can read in full and fork, unlike a vendor harness spread across thousands of tokens of system prompt. For context, see our Claude Code vs Codex vs Gemini CLI comparison, our OpenMausBot walkthrough, and how to build a local AI agent with Microsoft Agent Framework.
The caveats, stated plainly
First, this is a single-team preprint, submitted December 1, 2026, with no peer review and no independent reproduction yet. The authors built the harness they are testing, and nobody outside the team has rerun the benchmarks. The code is public under MIT, so the claims can be checked, but no outside team has verified them yet.
Second, Freehand has no sandbox and no approval prompts. Commands run with your own permissions, with your files and credentials, and nothing asks first. The README says it plainly: use it only in a container or VM for code you do not trust. That is the price of the design.
Third, support is narrow for now. macOS and Linux are supported, the CLI and web interface also run under WSL2, and native Windows is listed as coming soon. There is a desktop app in beta, plus terminal and browser interfaces. The project is part of Microsoft Research's AgentOpt series, which covers skills, training environments, evaluators, and now the harness.
What to watch next
The first test is reproduction. If independent teams rerun the 11 settings and the gap holds, expect the big harnesses to shed weight. If the gap shrinks, the paper still leaves a useful question about where presets stop paying off. Either way, the weaker-model results set a floor: nobody will ship a bare shell to a small model. The second test is Windows support and the safety story: a harness with no sandbox needs a good container story before most teams let it near real repositories.
To try it, run pip install freehand-ai, sign in with freehand login, then start a session with freehand in a project directory. Start in a disposable container and keep the first tasks small. The model decides the rest, but you decide where it is allowed to decide.


Comments
Post a Comment