AIFeed

FreeHand

Original text(via Hacker News)

The idea, drawn

keep scrolling

Abstract

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.

Give the model a freehand!

What Freehand keeps

  • a ~200-word descriptive promptDescribes only how the runtime works. No workflows, behavioral rules, or runtime reminders.
  • a single bash interfaceThe model sets the timeout of each command and builds the scripts and tools each task needs.
  • context self-managementThe conversation history is a file the model can edit, so it prunes stale output when it chooses. No fixed-threshold compaction.
Mainstream harnesses such as Codex, Claude Code, Gemini CLI, DeepSeek Harness, OpenCode and Pi wrap the model in detailed instructions, 20+ preset tools, runtime reminders, and auto-compaction that summarizes history at a fixed threshold. Freehand gives the model a runtime description of about 200 words with no rules and one tool, bash, with model-set timeouts, and the model prunes its own history via bash.
Mainstream harnesses such as Codex, Claude Code, Gemini CLI, DeepSeek Harness, OpenCode and Pi wrap the model in detailed instructions, 20+ preset tools, runtime reminders, and auto-compaction that summarizes history at a fixed threshold. Freehand gives the model a runtime description of about 200 words with no rules and one tool, bash, with model-set timeouts, and the model prunes its own history via bash.

Scroll sideways to compare · Tap the figure to enlarge

Frontier models across five domains

11 / 11highest score11 / 11lowest cost+5.1 pointsvs. first-party, on average−49% costvs. first-party, on average

From crutch to cage, measured

One benchmark, each family’s first-party harness against Freehand, and only the model changes. On all three lower-tier models the first-party harness still helps, leading Freehand by 5.1 to 6.7 points. On all three frontier models the order reverses: Freehand leads by 2.5 to 7.6.

Terminal-Bench 4 score (%), mean of 5 rounds per bar. Labels compare Freehand against the first-party harness, in points.

Four cases, up close

a tool call per click, or one script

OSWorld 2.1 · Task 065 · GPT-6-astra

Task: book two rail tickets in a desktop app. Codex, with 20+ GUI tools, uses nine tool calls for three actions, because acting, capturing the screen and viewing it each take a call: 430 calls in total, 76 minutes, 50.7M tokens, $57.45, and the booking fails. Freehand writes one script per bash call that clicks, types, takes a screenshot and deletes old screenshots: 316 GUI actions in 139 calls, 21 minutes, 2.86M tokens, $9.95, and the tickets are booked.
Task: book two rail tickets in a desktop app. Codex, with 20+ GUI tools, uses nine tool calls for three actions, because acting, capturing the screen and viewing it each take a call: 430 calls in total, 76 minutes, 50.7M tokens, $57.45, and the booking fails. Freehand writes one script per bash call that clicks, types, takes a screenshot and deletes old screenshots: 316 GUI actions in 139 calls, 21 minutes, 2.86M tokens, $9.95, and the tickets are booked.

the whole PDF, or the lines that matter

Agents’ Last Exam · sec_10k_financial_parsing

OpenCode's read tool returns a whole 78-page PDF, adding 138K tokens to the context at call 3; the context then grows to 260K tokens by call 44, and the PDF is re-sent with every later call: 9.09M input tokens, $13.09. Freehand converts 100 PDFs to text on disk and greps for matching lines only; its context stays under 73K tokens over 27 calls: 1.16M tokens, $2.66. Same final score, 0.914 vs 0.915.
OpenCode's read tool returns a whole 78-page PDF, adding 138K tokens to the context at call 3; the context then grows to 260K tokens by call 44, and the PDF is re-sent with every later call: 9.09M input tokens, $13.09. Freehand converts 100 PDFs to text on disk and greps for matching lines only; its context stays under 73K tokens over 27 calls: 1.16M tokens, $2.66. Same final score, 0.914 vs 0.915.

a fixed 30 s limit, or the model’s own timeout

Terminal-Bench 4 · ctr-optimization

mini-swe-agent has to wait a long time for campaign data but is cut off at a fixed 30 second limit, so it loops between sleeping 29 seconds and checking progress: 334 polling steps, 403 calls, 60.32M tokens, $70.77. Freehand sets each timeout itself and makes one call that waits 24 minutes and then checks: 42 calls, 0.72M tokens, $2.28.
mini-swe-agent has to wait a long time for campaign data but is cut off at a fixed 30 second limit, so it loops between sleeping 29 seconds and checking progress: 334 polling steps, 403 calls, 60.32M tokens, $70.77. Freehand sets each timeout itself and makes one call that waits 24 minutes and then checks: 42 calls, 0.72M tokens, $2.28.

same task, one prompt apart

Agents’ Last Exam · zdock

A benign task: score and rank 10 docking poses with geometry metrics on a public PDB structure. With the Codex prompt, over 3,000 words and no biosecurity clause, the model answers that it can't score or rank HIV protease docking poses: a false refusal in 10 of 10 runs. With Freehand's prompt of about 200 words, the model ranks the 10 poses in 5 model calls: 10 of 10 runs pass.
A benign task: score and rank 10 docking poses with geometry metrics on a public PDB structure. With the Codex prompt, over 3,000 words and no biosecurity clause, the model answers that it can't score or rank HIV protease docking poses: a false refusal in 10 of 10 runs. With Freehand's prompt of about 200 words, the model ranks the 10 poses in 5 model calls: 10 of 10 runs pass.

Scroll sideways inside a figure · Tap it to enlarge

Figures from the paper. The first three show single runs.

All results

Official score (%), cost per task in US dollars at list prices, and normalized net agent time per task in minutes, averaged over evaluation rounds. Best value per setting in bold. Gemini 4 Carbon was evaluated on Terminal-Bench 4 only, and mini-swe-agent on Terminal-Bench 4 with GPT-6-astra.

The lesson

The Bitter Lesson has come to agent harnesses. Every preset a harness adds is a decision made before the model has seen the task; such decisions carried weaker models, but for frontier models they override better decisions made with the evidence each task reveals. Freehand gives the model a shell, its own memory, and a meter, and leaves every other decision to the model. Across five domains and three frontier model families, this single rule makes agents better, cheaper, and faster at once than the harnesses built by the models’ own developers, while lower-tier models still benefit from presets.

As models grow stronger, the best harness is the one that decides the least.

Cite


        @article{zeng2026freehand,
  title  = {Freehand: The Bitter Lesson Comes to Agent Harnesses},
  author = {Zeng, Zezi and Zhao, Yuke and Tian, Muzhao and Yang, Yifan and Dai, Qi and Liu, Bei and Qiu, Kai
            and Zhuang, Bohan and Zhu, Jihua and Luo, Chong},
  journal = {arXiv preprint arXiv:2612.02442},
  year   = {2026}
}
      

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗