An agent harness does more than connect a model to tools. It may prescribe a workflow in its prompts, limit which tools are available, set fixed timeouts, and decide when to compress conversation history. Those choices can support less capable models, but may also constrain stronger ones. Freehand, an open-source project from Microsoft researchers, tests a different premise: give the model a simpler runtime and let it make more of the operational decisions itself.
What Freehand changes
The harness keeps four elements: a roughly 200-word prompt that describes the runtime without prescribing a workflow; one bash tool, with the model choosing a timeout for each command; conversation history the model can edit rather than history compressed at a fixed threshold; and a meter after each turn showing context size, token use, cost, and elapsed time. The model therefore has more say in how it runs commands, what it keeps in memory, and when it changes course.
The team evaluated three frontier model families across five benchmark areas, including terminal and science tasks, a broad exam, desktop interaction, and automation. The paper reports that Freehand achieved the highest score and lowest cost in all 11 tested settings. Against each model’s first-party harness—Codex, Claude Code, or Gemini CLI—it averaged 5.1 points higher while costing 49% less. In controlled side-by-side reruns, the other harnesses took 17% to 62% longer. Freehand also outperformed OpenCode, Pi, DeepSeek Harness, and a simplified bash-based harness that still fixed workflows and timeouts.
Less structure is not always better
The qualification matters: with lower-tier models, first-party harnesses won again. The claim is not that every agent should be stripped of guidance, but that the amount of structure should fit the model’s capabilities. Presets can compensate for weak planning or context management. Once a model can handle those tasks, fixed procedures may become overhead rather than help.
That reframes a question in agent design. Instead of asking only which tools to add, developers may need to ask which decisions belong to the model and which should remain in the harness. If the reported pattern generalizes, a useful harness may be one that offers a clear environment, visible resource feedback, and room for the model to adapt—not one that encodes the most elaborate workflow. The results, however, come from a particular set of models and benchmarks; they do not establish that a minimal harness will win across every task or deployment. Less capable models may still need stronger guidance. Freehand is released under the MIT license and includes terminal and web interfaces, plus a desktop app in beta.
Source: Hugging Face Daily Papers
Comments
Checking sign-in status...
Loading comments...