A new paper makes the case that the best scaffolding for an AI agent is the one that decides the least. Its open-source Freehand AI agent runtime backs the claim with benchmark numbers: give the model a shell, memory it controls and a meter, and let it handle the rest. Across five benchmarks it outscored the tools that ship with each model, including Codex, Claude Code and Gemini CLI.
The authors say the Bitter Lesson has reached agent scaffolding. That lesson from AI research says hand-built knowledge helps early and general methods eventually overtake it. Today’s mainstream tools lock in many choices before the model has even seen the task. Long prompts dictate strategy, a fixed set of tools and timeouts dictates action, and a threshold rule decides what gets forgotten.
In the authors’ words, presets are a crutch for weaker models and a cage for frontier ones.
What Freehand keeps
Freehand is deliberately small.
- A system prompt of roughly 200 words that explains the runtime and nothing else: no workflows, no rules for behavior.
- A single bash tool. The model picks the timeout for every command it runs.
- A transcript the model can trim on its own, which replaces compaction triggered at a fixed size.
- A meter reading after each turn: context size, tokens used, money spent and time elapsed.
The benchmark results
Testing covered Terminal-Bench 4, Terminal-Bench Science, Agents’ Last Exam, OSWorld 2.1 and AutomationBench. Three frontier models took part, GPT-6-astra, Claude Opus 5.5 and Gemini 4 Carbon, and the combinations add up to 11 test settings.
In every one of the 11 settings, Freehand had both the top score and the lowest cost. Compared with each model’s own first-party tool, it averaged 5.1 more points while spending 49% less. Speed favored it too. When the authors ran everything again side by side under controlled conditions, the competing tools needed between 17% and 62% more time.
It also came out ahead of OpenCode, Pi, DeepSeek’s in-house tool and mini-swe-agent. The last one is a bash-only setup that still hard-codes its workflow and timeouts, so that comparison suggests the gain comes from handing decisions to the model and not just from offering a shell.
The catch with weaker models
The picture reverses at the other end. When the models are lower tier, the first-party tools come out on top again. The paper treats this as a question of fit: presets help until a model is able to manage its own context and timeouts, and after that point they begin to cost it.
That crossover is the most practical finding for teams choosing tools. A minimal setup is not an upgrade for everyone. It pays off as models get stronger, and the authors expect that gap to widen over time. A commenter on the paper’s page asks the obvious follow-up: where the crossover falls for mid-tier models on long tasks, since that is where fixed compaction tends to hurt first.
Another open point is the meter. A budget only changes decisions if the model can see it while deciding, so how visible the remaining budget is during a task may matter a lot.
Availability and what to watch
Freehand is open source under the MIT license, with a terminal interface, a web interface and a desktop app in beta. The code sits in a Microsoft repository, and the project is part of the AgentOpt series with SkillOpt, EnvOpt and EvalOpt.
The numbers come from the authors’ own tests, so independent reruns will show how well the lead holds up. Teams running agents on frontier models can already try Freehand against their current setup and compare cost and speed on their own tasks. Anyone on a lower-tier model should expect the opposite result, going by the paper’s own numbers. The meter deserves attention in those trials, since a budget only shapes decisions when the model can see what is left while it works. Whether a smaller or cheaper model can ever profit from a tool this bare is the open question.
Source: huggingface.co