Abstract
A general-purpose agent harness that gives models a shell, memory, and a meter while minimizing preset decisions outperforms first-party and other harnesses across domains and frontier models, especially as models grow stronger.
The Bitter Lesson holds that knowledge we build into AI systems helps at first and is eventually outgrown by general methods. We show that this lesson has now come to agent harnesses. Mainstream harnesses decide a great deal on the model's behalf -- prompts prescribe how to approach a task, tool suites and timeouts fix how to act, and threshold compaction decides what to remember -- and every such decision is fixed before the model has seen the task. For weaker models these presets are a crutch; for frontier models they become a cage. We introduce Freehand, a general-purpose harness built on one rule: give the model a shell, its own memory, and a meter -- and let it decide everything else. Across five domains and three frontier model families, Freehand is better, cheaper, and faster at the same time. It outscores the first-party harness of every model (Codex, Claude Code, and Gemini CLI) in all 11 settings, by 5.1 points on average at 49% lower cost, and runs fastest on average: in a controlled side-by-side rerun, each of the other harnesses takes 17-62% longer. It also outperforms OpenCode, Pi, DeepSeek Harness, and a bash-only harness that still fixes its workflow and timeouts, while with lower-tier models the first-party harnesses win again. As models grow stronger, the best harness is the one that decides the least. Code: https://github.com/microsoft/FreeHand
Community
Freehand: give the model a shell, its own memory, and a meter, and let it decide the rest.
Mainstream agent harnesses make many decisions before the model has seen the task. Long system prompts set the strategy, dozens of preset tools and fixed timeouts set how it acts, and threshold compaction sets what it remembers. These presets help weaker models a lot. For frontier models, they get in the way.
Freehand keeps very little:
- a ~200-word prompt that only describes the runtime, with no workflows or behavioral rules
- one
bashtool, where the model sets each command's timeout - a conversation history the model can edit itself, so there is no fixed-threshold compaction
- a meter after every turn: context size, tokens, cost, and elapsed time
Results. We tested 5 benchmarks (Terminal-Bench 4, Terminal-Bench Science, Agents' Last Exam, OSWorld 2.1, AutomationBench) with GPT-6-astra, Claude Opus 5.5, and Gemini 4 Carbon:
- Freehand had the highest score and the lowest cost in all 11 of 11 settings.
- Compared with each model's own harness (Codex, Claude Code, Gemini CLI), it scored 5.1 points higher on average at 49% lower cost.
- It was fastest on average. In a controlled side-by-side rerun, each of the other harnesses took 17ā62% longer.
- It also beat OpenCode, Pi, DeepSeek Harness, and the bash-only mini-swe-agent.
The other half of the story matters too: with lower-tier models, the first-party harnesses win again. As models get stronger, the best harness is the one that decides the least.
Freehand is open source (MIT), with a terminal UI, a web UI, and a desktop app (beta):
curl -LsSf https://raw.githubusercontent.com/microsoft/FreeHand/main/install.sh | sh
š Project page + video: https://microsoft.github.io/FreeHand/
š» Code: https://github.com/microsoft/FreeHand
Part of the AgentOpt series (SkillOpt Ā· EnvOpt Ā· EvalOpt). Feedback welcome!
"For weaker models these presets are a crutch; for frontier models they become a cage" is a line worth keeping. Coming from carpentry, it's how a crew treats people. A first-year apprentice gets a cut list and a jig for everything, and a journeyman gets the drawing, the tools and a budget. A shell, memory and a meter reads like the journeyman version. The meter is the part I'd ask about, since a budget only shapes decisions if the worker can see it while deciding. How visible is the remaining budget to the model during a task?
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper