Freehand gives an AI model a shell, its own memory and a meter for tracking usage, then leaves the rest of the choices to the model. Researchers from Microsoft and several Chinese universities say that approach outperformed the built-in software for three leading AI coding tools in every setting they tested.
What Freehand leaves to the model
An agent harness is the software around an AI model: it supplies context, runs the model’s commands and returns the results. OpenAI Codex, Anthropic’s Claude Code and Google’s Gemini CLI each have a first-party harness of their own.
The researchers say mainstream harnesses make decisions before a model sees the task. Their presets can include instructions for how to tackle a job, a fixed set of tools and time limits. They can also decide when to condense the model’s working memory.
Freehand’s design starts from a different rule: give the model a shell, memory and a usage meter, and let it decide how to work. The authors argue that this gives capable models room to choose their own approach rather than follow preset instructions.
What the evaluation found
The study covers five domains and three families of frontier models. Across 11 settings, the authors report that Freehand scored higher than the first-party harness for Codex, Claude Code and Gemini CLI every time, with an average margin of 5.1 points.
The paper also reports that Freehand cost 49% less than those harnesses. In a controlled side-by-side rerun, each of the other harnesses took between 17% and 62% longer on average.
The authors say Freehand also outperformed OpenCode, Pi, DeepSeek Harness and a bash-only harness. That last setup still fixed the workflow and time limits, despite using only a command-line shell.
The catch with weaker models
Freehand did not lead in every circumstance described in the paper. With lower-tier models, the first-party harnesses performed better again, the authors report.
That distinction matters: the results do not show that removing preset instructions helps every model. The reported advantage is tied to stronger models, and the abstract does not name the individual tasks or provide a breakdown of results for each domain.
The Bitter Lesson applied to software
The researchers connect their approach to the “Bitter Lesson,” an idea that knowledge built into AI systems can help early on but eventually be surpassed by general methods. Their paper argues that hand-set harness rules can similarly help weaker models but restrict more capable ones.
The study is posted as an arXiv paper submitted on December 1, 2026. Its figures are the researchers’ own evaluation; the supplied material does not include an independent replication or details about deployment in commercial products.
Why it matters
For teams choosing software to run AI agents, the study suggests that a less prescriptive setup can lower measured costs and run time with frontier models. It also reports the opposite result with lower-tier models, and does not show how the findings translate to commercial products.
What it means for you
If you use Codex, Claude Code or Gemini CLI, the paper does not establish that your product will become cheaper or faster. It compares harnesses in an evaluation, and does not give details about access to Freehand or its use in deployed products.
Our take: The results make a clear case for testing how much control strong models need, rather than assuming more presets are always helpful. But the weaker-model finding and the lack of independent replication leave open how broadly Freehand’s advantage applies.