Microsoft's Freehand beats Claude Code with one bash tool. Test how much harness you need
A Microsoft paper shows a 200-word prompt and a shell outscoring first-party agent harnesses at half the cost, but only on frontier models.
Synthetic Correspondent
Microsoft researchers have published a paper arguing that most coding-agent harnesses are now getting in the way of the models they wrap. Their alternative, called Freehand, gives a frontier model a roughly 200-word prompt, a single bash tool, a context window it can edit itself, and a meter showing context use, cost and elapsed time. That's it. According to the paper, posted to arXiv on December 1 by a team from Microsoft and Fudan University, Freehand beat the first-party harness of each model it tested, including Claude Code, Codex and Gemini CLI, in all 11 settings the authors ran. The average gain was 5.1 points, at 49% lower cost.
The code is on GitHub under an MIT licence. If you build agents, this is worth an afternoon of your time, with a few caveats the authors are upfront about.
What Freehand strips out
Mainstream harnesses tend to wrap the model in a lot of scaffolding: long system prompts full of rules, 20 or more preset tools for reading files, editing, searching and running tests, runtime reminders injected mid-task, and automatic compaction when the context fills up. Each of those pieces is a decision made in advance on the model's behalf.
Freehand removes almost all of it. The prompt describes the environment rather than prescribing a strategy. Instead of a dedicated edit tool or a search tool, the model gets a shell and chooses its own commands, including how long each one is allowed to run. Rather than having the harness decide when and how to summarise history, the model edits its own context. The meter is the one addition: it tells the model how much budget it has burned, so it can decide for itself when to slow down, compress or wrap up.
The paper's title, "The Bitter Lesson Comes to Agent Harnesses," nods to Rich Sutton's well-known essay arguing that general methods that scale with compute eventually beat hand-built human knowledge. The authors put their version bluntly: for weaker models, presets are a crutch, and for frontier models they become a cage.
The results, and where they flip
On frontier models, the headline is striking. Freehand outscored every first-party harness, and it also beat open alternatives such as OpenCode, Pi and DeepSeek's harness, plus a plain bash-only baseline. Lower cost came along with it, which makes sense: fewer tool schemas and less injected text means fewer tokens per turn, and a model that can see its own spending has a reason to be economical.
The important exception is in the paper itself. On three lower-tier models the result reverses, and the first-party harnesses win. On one benchmark, Claude Code and Codex each led on a weaker model. So the claim isn't that scaffolding is useless. It's that scaffolding has a shelf life, and the best frontier models have outgrown much of it.
These are the authors' own benchmarks, and the paper hasn't been peer reviewed. Harness comparisons are also notoriously sensitive to task mix, timeouts and how each tool is configured. Treat the numbers as a strong signal, not settled fact, until others reproduce them.
What this means if you're building agents
If you run a product on top of a frontier model, the practical takeaway is to test how much of your harness you can delete. Many teams have spent the past year adding guardrail prompts, specialised tools and clever context tricks to make agents behave. Some of that was necessary for older models. Some of it may now be costing you accuracy and money.
A cheap experiment: take a representative slice of real tasks, run your current setup, then run a stripped-down version with a short environment prompt, a shell and a visible budget. Compare success rate and spend. If the minimal version holds up, you have a simpler system to maintain and a smaller token bill.
Two things to be careful about. First, Freehand as released has no built-in sandbox. Handing a model raw shell access on a machine with credentials, production data or network reach is a bad idea. Put it in a container or VM with tight permissions before you try it on anything real. Second, if your product routes to cheaper or smaller models to save money, this paper suggests those models still need the structure. You may end up running two harness styles: minimal for your top model, scaffolded for the rest.
There's also a business angle. Harness design has been one of the ways agent startups claim an edge. If a few hundred words and a shell can match or beat the labs' own tools, the moat shifts away from scaffolding and towards things that are harder to copy: proprietary data, integrations, evaluation suites and the trust that comes from running safely in a customer's environment.
What to watch next
The obvious next step is replication. Expect other teams to rerun Freehand against their own task suites, and expect the labs to respond, either by slimming down their own harnesses or by showing settings where structure still wins. It will also be worth watching whether the cost meter idea spreads on its own. Letting a model see its budget is a small change that could easily be added to existing tools.
Finally, keep an eye on the gap between frontier and lower-tier models. If the crossover point where presets stop helping keeps moving down the model ladder, today's elaborate harnesses will look a lot like yesterday's prompt-engineering tricks.
Sources
How this was made AI-generated
AI-generated. Drafted by AI and reviewed by a human editor before publishing.
Researched and written by Ideabro's AI newsroom from the sources listed at the end, and published automatically. Spot an error? Use the contact page and a human editor will correct it.
The brief and the plain-language version on this page are written with AI and reviewed by an editor. The story itself is the source of truth.
Ask about this story
Conversation0
No comments yet.
Start the conversation — the first reply sets the tone.