Microsoft Research released FreeHand, an MIT-licensed agent harness built around one rule: give the model a shell, editable memory, and a cost meter, then let it choose strategy. The arXiv paper (2612.02442) and project page claim that on five benchmark suites and three frontier model families, FreeHand beat Codex, Claude Code, and Gemini CLI in all 11 tested settings—higher scores, lower cost, and often faster runs.
If you already pay for frontier APIs, harness design is a second invoice. This release argues that long preset prompts, fixed tool menus, and threshold-based history compaction can help small models but hurt capable ones—a harness-level reading of Richard Sutton's Bitter Lesson that explainx.ai has tracked separately from raw scaling debates.
TL;DR
| Question | Answer (per paper and project page) |
|---|---|
| What ships? | ~200-word runtime prompt, one bash tool, self-edited history, per-turn cost meter |
| Models tested | GPT-6 Astra, Claude Opus 5.5, Gemini 4 Carbon |
| Benchmarks | Terminal-Bench 4, Terminal-Bench Science, Agents' Last Exam, OSWorld 2.1, AutomationBench |
| Claimed vs first-party | +5.1 pts on average, ~49% lower cost, fastest on average in reruns |
| Install | curl -LsSf …/install.sh | sh on GitHub |
| Caveat | Weaker models still favor Codex / Claude Code presets in the paper |
What mainstream harnesses decide upfront
Streaming analytics dashboard showing agent harness cost and token meters for Microsoft FreeHand
Mainstream coding agents front-load decisions: multi-thousand-token system prompts describe workflows, 20+ tools expose GUI clicks, file readers, and search helpers, fixed timeouts cut long shell jobs, and compaction summarizes chat history when a threshold fires. Those choices stabilize models that still guess.
Microsoft's diagram on the FreeHand site contrasts that stack with a runtime that exposes bash only and returns strategy, execution, and memory to the model. The authors call mainstream presets a crutch early in capability curves and a cage once the model can plan.
FreeHand minimal agent harness versus Codex Claude Code preset tools diagram
Image: Microsoft Research
FreeHand is not anti-tools in general—it is anti-preselected tools for frontier runs. You still need sandboxing, secrets policy, and human review for anything that touches production.
How FreeHand is structured
Per the Hugging Face paper card and author comment thread:
- Prompt: about 200 words describing the runtime only—no baked-in workflows or behavioral rules.
- Tools: a single
bashentry where the model sets each command's timeout. - Memory: conversation history the model can edit via shell, avoiding fixed-threshold compaction.
- Meter: after every turn, the harness prints context size, tokens, cost, and elapsed time so the model (and you) see budget pressure.
The project ships a terminal UI, web UI, and desktop app (beta). It sits in Microsoft's AgentOpt line beside SkillOpt, EnvOpt, and EvalOpt—research artifacts aimed at how agents are hosted, not only which model answers.
Teams learning harness tradeoffs can pair this read with AI builder workshops that cover Claude Code and Codex patterns before you strip guardrails. For scoring open-ended agent outputs, see Microsoft's companion EvalOpt evaluator evolution release in the same AgentOpt line.
Benchmark claims on five suites
Authors tested GPT-6 Astra, Claude Opus 5.5, and Gemini 4 Carbon across:
- Terminal-Bench 4
- Terminal-Bench Science
- Agents' Last Exam
- OSWorld 2.1
- AutomationBench
They report FreeHand achieved the highest score and lowest cost in all 11 of 11 model-by-suite combinations published on the paper page. Versus each model's first-party harness (Codex, Claude Code, Gemini CLI), they cite 5.1 points higher on average and 49% lower cost, plus fastest average runtime; a controlled rerun had rival harnesses 17–62% slower.
Also listed as beaten: OpenCode, Pi, DeepSeek Harness, and mini-swe-agent variants that still fix workflow and timeouts.
Treat every percentage as author-reported until you reproduce tasks on your hardware. explainx.ai does not run Microsoft's benchmark harness internally in this article.
When first-party harnesses still win
The paper's counterweight matters for product leads: on lower-tier models, Codex / Claude Code / Gemini CLI presets win again. FreeHand is not a mandate to delete your org's default harness—it's evidence that frontier tenants should A/B test scaffolding.
That rhymes with NL2Repo-Pro benchmark gaps and ThinkingBox database-state scoring: harness and environment often explain score swings more than a single model swap.
Case studies Microsoft highlights
The project page publishes dollar and token anecdotes—use them as illustrations, not invoices.
GUI rail booking
FreeHand model-set bash timeout beats fixed 30 second agent harness polling
Image: Microsoft Research
One desktop booking vignette compares Codex using many GUI tool calls—hundreds of calls, tens of millions of tokens, and a failed booking—against FreeHand batching GUI steps into bash scripts that also prune stale screenshots. The page quotes ~$57 versus ~$10 and a successful ticket purchase for FreeHand on that scripted task.
Long waits and fixed timeouts
Another case contrasts mini-swe-agent polling under a 30-second cap with FreeHand setting a 24-minute timeout for a long data job—403 calls versus 42, and far fewer tokens. The lesson for SREs: hardcoded timeouts can force busy-loop agents that burn budget without finishing.
Context blow-up on PDF tasks
A filing-search example claims OpenCode loaded a 78-page PDF into context early, re-sending it on later turns, while FreeHand converted filings to on-disk text and grepped targets—lower tokens, similar score in their table.
Refusal on benign bio tasks
Swapping only the Codex system prompt (thousands of words, no biosecurity carve-out) allegedly produced refusals on 10/10 benign docking pose tasks, while FreeHand's minimal prompt completed 10/10. If true, it is a reminder that safety instructions belong in policy layers you control, not accidental byproducts of vendor defaults.
How to try FreeHand safely
- Install on a disposable VM using the GitHub install script.
- Pick one non-production repo task you already run in Claude Code or Codex.
- Log tokens and wall time with FreeHand's meter and your incumbent harness on the same prompt file.
- Keep secrets out of bash history; FreeHand's power is also its risk surface.
- Escalate to team training when you change org defaults—see /workshops/claude-for-work for governed Claude adoption patterns.
For sandbox thinking, compare Claude Cage network isolation and CISA's agentic offensive frameworks alert.
How FreeHand compares to other harness explainers
| Harness | Maintainer | Angle |
|---|---|---|
| FreeHand | Microsoft Research | Minimal bash for frontier models |
| LearnHarness | Community | Tutoring loops + knowledge graph |
| NL2Repo-Pro | Research benchmark | Library navigation stress test |
| OpenAI Codex cloud | OpenAI | Managed computer-use product |
| CowAgent | Open source | Channels + memory for chat apps |
None of these replaces the others; they optimize different jobs-to-be-done.
What developers are asking
Search demand around "what is agent harness" and "which agent harness is best" spikes whenever a lab ships a new runtime. The honest December 2026 answer from Microsoft is "it depends on model tier": minimize presets for frontier APIs, keep structured harnesses for smaller models.
If you maintain an internal wrapper, borrow FreeHand's meter idea even if you keep 20 tools—developers trust harnesses that expose cost per step.
Limitations and verification gaps
- Benchmarks are in-paper; independent labs have not yet published replication logs at scale.
- GUI and PDF anecdotes are selected cases, not distributions.
- Biosecurity outcomes depend on which prompt you attach; swapping prompts is not a compliance program.
- Enterprise features—SSO, audit trails, data residency—live in vendor harnesses, not necessarily in research repos.
Read the full PDF on arXiv before you cite exact point deltas in executive slides.
Terminal-Bench and OSWorld in context
Terminal-Bench and OSWorld sit in a crowded agent eval lane explainx.ai covers through AAAWorld game generation and mobile agent testers for Claude Code. FreeHand's contribution is not a new dataset—it is evidence that harness policy moves pass rates on existing suites when the underlying model is already frontier-class.
That matters for platform teams running internal golden tasks: before you rewrite prompts, try removing tools and measure whether the model recovers with bash creativity or collapses without GUI affordances. FreeHand's paper implies recovery on the suites they list, but your proprietary repos may differ.
OSWorld 2.1 numbers especially hinge on GUI affordances; Microsoft's own case studies show scripted desktop automation beating per-click tool spam. If your IT department blocks screen recording or input simulation, FreeHand's wins may not transport—even though the harness is smaller.
Enterprise adoption checklist
| Step | Action |
|---|---|
| 1 | Run parallel harness trials on sanitized tickets for one sprint |
| 2 | Capture $/task from FreeHand's meter and vendor dashboards |
| 3 | Keep Codex/Claude Code as default for junior models per paper guidance |
| 4 | Document bash allowlists if you promote FreeHand beyond research VMs |
| 5 | Add human review on merge paths—minimal harness does not mean minimal risk |
Link governance training through /training when executives ask whether to standardize on research harnesses.
