# Microsoft Freehand, a one-tool harness, tops Claude Code in its own tests

> The open-source harness gives a model a bash shell and a 200-word prompt. Its authors report higher scores at 49% lower cost, but only with frontier models.

URL: https://claudegpt.si/news/microsoft-freehand-agent-harness  
Published: 2026-12-05T22:57:54.300Z  
Updated: 2026-12-05T22:58:13.559Z  
Author: ClaudeGPT Si Newsroom  
Section: AI Tools  
Topics: Microsoft, Coding agents, AI agents, Open source, Claude Code, Codex  
Publisher: ClaudeGPT Si

## Key takeaways

- Freehand gives a model one bash tool, a prompt of about 200 words and control of its own conversation history.
- Its authors report it beat Codex, Claude Code and Gemini CLI in 11 of 11 settings, scoring 5.1 points higher at 49% lower cost on average.
- With lower-tier models the first-party harnesses win by 5.1 to 6.7 points, and Freehand runs commands with no sandbox or approval prompt.

Researchers at Microsoft Research and three Chinese universities have released [Freehand](https://microsoft.github.io/FreeHand/), an open-source agent harness that gives a model one tool, a bash shell, and a prompt of about 200 words. In [the paper](https://arxiv.org/abs/2612.02442), posted to arXiv on December 1, 2026, they report that Microsoft Freehand beat Codex, Claude Code and Gemini CLI in all 11 of their test settings, at 49% lower cost on average.

A harness is the software around a model that feeds it context, runs its commands and hands back the results. ([Our explainer covers the term](https://claudegpt.si/news/what-is-an-agent-harness).) The labs' own harnesses carry long prompts, dozens of tools, fixed timeouts and rules for when to compress the conversation. Freehand's authors argue those decisions now hold strong models back.

## One bash tool, and the model edits its own memory

Freehand makes three choices and leaves the rest to the model. The prompt describes only how the runtime works, with no workflows or behavior rules. The only tool is bash, and the model sets each command's timeout and writes any scripts it needs. The conversation history is a file the model can edit and prune itself, so automatic compaction is off by default. A meter shows it context used, cost and time.

The project page sums it up as "give the model a shell, its own memory, and a meter".

## What the paper reports

The team ran three benchmarks, Terminal-Bench 4, OSWorld 2.1 and Agents' Last Exam, with models from OpenAI, Anthropic and Google. Against each model's first-party harness, Freehand scored 5.1 points higher on average and cost 49% less. In a controlled rerun, the other harnesses took 17% to 62% longer. It also beat OpenCode, Pi and DeepSeek Harness.

The case studies are more telling than the averages. On one OSWorld booking task with GPT-6-astra, Codex made 430 tool calls over 76 minutes, spent $57.45 and failed. Freehand made 139 calls in 21 minutes, spent $9.95 and booked the tickets. On a Terminal-Bench 4 task, mini-swe-agent, which caps every command at 30 seconds, used $70.77 of tokens. Freehand used $2.28.

All of these numbers come from the authors. Nobody outside the team has reproduced them yet.

## It loses with weaker models, and it has no sandbox

The result flips lower down. With lower-tier models, the first-party harnesses led Freehand by 5.1 to 6.7 points, and the README says plainly that traditional harnesses often do better there. The scaffolding still helps a model that needs it.

The bigger caveat for anyone trying it is safety. Freehand is marked alpha, and commands run with your own permissions with no approval prompt. The README advises a container or virtual machine for code you don't trust. That is a real cost of "decides the least": the permission prompts in Claude Code and Codex are also decisions made for the model.

## How to try it

Freehand is MIT licensed and [on GitHub](https://github.com/microsoft/FreeHand), with about 2,500 stars as of December 5. It runs on macOS and Linux, and under WSL2 on Windows. Install it with:

```bash
pip install freehand-ai
```

Then run `freehand login` and `freehand` inside a project. It works with OpenAI (including a ChatGPT Plus or Pro sign-in), Anthropic, Amazon Bedrock, Azure, Google Vertex AI and any OpenAI-compatible API. A desktop app is in beta, and native Windows support is listed as coming soon.

## Sources

- [Freehand: The Bitter Lesson Comes to Agent Harnesses (project page)](https://microsoft.github.io/FreeHand/), Microsoft Research
- [Freehand: The Bitter Lesson Comes to Agent Harnesses](https://arxiv.org/abs/2612.02442), arXiv
- [microsoft/FreeHand](https://github.com/microsoft/FreeHand), GitHub
