AI agent harnesses, the software that runs an agent, usually build in detailed work rules and dedicated tools. On December 1, 2026, researchers posted a paper on arXiv reporting that Freehand, a harness with as few rules as possible, scored higher than each vendor's first-party harness (paper). The code is published in Microsoft's GitHub organization. It is a preprint that has not been peer-reviewed, and all figures are the authors' own measurements.
Design: a short description and a single bash tool
Freehand gives the model only four things (paper, §3):
- A description of how it runs, about 200 words long
- A single
bashtool - Its own conversation history, which the model can edit (
transcript.json) - A one-line meter showing usage, cost and elapsed time each turn
How to approach the work, how to combine tools, command timeouts and how to manage the conversation history are left to the model. Boundaries such as permissions, sandboxing and total budgets are left to the host environment around the harness.
Evaluation: five domains and model combinations
The evaluation used benchmarks in five domains:
- Terminal-Bench 4 (systems and security, 63 tasks)
- Terminal-Bench Science (scientific computing, 70 tasks)
- Agents' Last Exam (research and engineering, 105 tasks)
- OSWorld 2.1 (GUI tasks on Ubuntu, 108 tasks)
- AutomationBench (enterprise work, 600 tasks)
GPT-6-astra and Claude Opus 5.5 were evaluated on all five, and Gemini 4 Carbon on Terminal-Bench 4 only, for 11 settings in total. The first-party harnesses compared were Codex, Claude Code and Gemini CLI (paper, §4.1).

Results: compared with first-party harnesses
According to the authors, Freehand scored higher and cost less than the first-party harness in all 11 settings. Averaging the 11 settings with equal weight, it scored 5.1 points higher, and the cost per task was USD 3.73 against USD 7.34, 49% less (paper, §4.2).
For example, on Terminal-Bench 4 with Claude Opus 5.5, Freehand scored 61.9% at USD 3.38 and Claude Code 54.9% at USD 4.91. On OSWorld 2.1 with GPT-6-astra, Freehand scored 76.2% at USD 3.96 and Codex 68.3% at USD 14.94.
Speed comes from a separate experiment, not the main tables. When 44 tasks that completed normally with both models and all five harnesses were rerun under the same conditions, the other harnesses took 17–62% longer than Freehand (paper, Appendix H.2). These percentages average the ratios for each benchmark-model combination. The average run time was 6.25 minutes for Freehand, 7.18 minutes for the first-party harnesses (Codex/Claude Code), and 8.70 minutes for OpenCode, a third-party harness. This is a different figure from the 49% cost reduction. Broken down into the 10 benchmark-model combinations, Freehand was fastest in only 4.
The first-party harnesses won with lower-tier models
In a separate Terminal-Bench 4 experiment (5 rounds each) with models one tier below, the first-party harnesses scored higher (paper, §5.2):
- GPT-6 Sol: Codex 34.9%, Freehand 29.2%
- Claude Sonnet 5.5: Claude Code 41.6%, Freehand 34.9%
- DeepSeek V4.1 Flash: DeepSeek Harness 28.9%, Freehand 23.8%
A design with fewer rules may pay off when the model is highly capable, but it does not win with every model.
Limits and safety
The results hold for the models, harness versions, benchmarks and runtime environments the authors chose. Gemini 4 Carbon was compared in only one domain.
The code is published under the MIT license (GitHub). However, the README calls it an alpha and states plainly that there is no sandbox, that commands run with the user's permissions, and that nothing asks for confirmation first. Good benchmark scores do not mean it is safe.
What to check when choosing an AI agent harness
Companies building AI agents should check the following:
- Have you compared harness designs that suit the model you use, on your own tasks?
- Is the agent's execution contained by a sandbox or limited permissions?
- Is there a human confirmation step before powerful actions such as sending or deleting?
With fewer rules, highly capable models may improve both scores and costs. Safety mechanisms, however, need to be provided separately.
Elith builds AI products for enterprises and conducts advanced research, with AI safety and security as its foundation. We share trends in AI safety and security, along with insights from research and practice, through Elith AI Signal. We will continue to read research on the design and evaluation of AI agents from primary sources and report on it.

