Most coding agents come with a lot of rules. Long system prompts, twenty-plus tools, reminders halfway through a session, and automatic compaction when the context window fills up. I've always assumed that's part of what makes them good.

This week Microsoft released Freehand, together with a paper called Freehand: The Bitter Lesson Comes to Agent Harnesses. It makes the opposite claim: with frontier models, all those rules make agents worse and more expensive. That's a big claim, so I read the paper to see where it comes from.

It also rang a bell. In Give your agent a notebook my favourite bit was that rules can backfire: when Anthropic told Opus 5 and Opus 4.7 to "record only failures", they lost a big part of what memory had given them. Freehand takes that same idea and applies it to the whole harness, not just to memory.

Chapters

The idea

The idea is pretty simple: give the model a shell, its own memory and a meter, and let it decide everything else.

A harness is the loop around the model. It sends context to the model, runs the actions the model asks for, and feeds back the results. Claude Code, Codex, Gemini CLI and Copilot CLI are all harnesses. The paper looked at eight of them and found they make three kinds of decisions for the model, before it has even seen the task:

  • Strategy. How to approach the task: workflows like "research, then plan, then act, then validate", rules like "read a file before you edit it", and reminders injected during the run.
  • Execution. Which tools to use and how long a command may run: between 4 and 34 built-in tools, with fixed timeouts.
  • Memory. What to remember: automatic summarisation when the context window is 80–90% full.

The authors' point is that these presets were built for weaker models. For models that couldn't plan well or keep their context tidy, they were a crutch. For today's frontier models, they say, they've become a cage.

How Freehand works

Freehand removes all three and gives the model the levers instead:

  • A ~200-word prompt that only describes how the runtime works. No workflow, no coding rules. The paper quotes it: "Nothing else is decided for you."
  • One tool: bash. The model sets the timeout for every command itself, and writes its own scripts when it needs something more specific.
  • Memory as a file. The conversation history is a transcript.json the model can edit. It can prune old logs, condense a finished subtask, or even insert a screenshot to look at it, without a separate vision tool.
  • A meter. After every turn the model sees its context size, tokens, cost and elapsed time. It doesn't get told what to do with that information.

For comparison, the static prefix (the instructions and tool definitions sent with every request) is about 0.35K tokens in Freehand. The paper measures 8.5K for Claude Code, 9.5K for Gemini CLI and 15.1K for Codex.

Bar chart of the static prefix each harness sends with every request, in thousands of tokens: Codex CLI 15.1K, Gemini CLI 9.5K, Claude Code 8.5K, DeepSeek Harness 6.5K, OpenCode 5.2K, Pi 1.2K and Freehand 0.35K

What the paper found

They ran five benchmarks (terminal tasks, scientific computing, research tasks, GUI tasks on Ubuntu and enterprise workflows) with GPT-6-astra and Claude Opus 5.5, plus Gemini 4 Carbon on one benchmark. That's 11 settings in total.

Freehand had the highest score and the lowest cost in all 11. Against the first-party harnesses (Codex, Claude Code, Gemini CLI) it scored 5.1 points higher on average, at 49% lower cost per task. It also beat OpenCode, Pi, DeepSeek Harness and mini-swe-agent.

Bar chart of mean cost per task over ten settings with GPT-6-astra and Claude Opus 5.5: Codex and Claude Code $6.70 at 58.4% score, DeepSeek Harness $12.76 at 57.4%, OpenCode $5.16 at 56.8%, Pi $4.49 at 59.3%, and Freehand $3.23 at 63.2%

The part I found most interesting is why it's cheaper. It's mostly about sending fewer tokens:

  1. Smaller prefix on every turn. 0.35K instead of 5–15K, repeated on every request.
  2. Scripts instead of tool chains. With only bash, the model writes one script instead of doing read, search, edit, read over many turns. Input tokens dropped 44–91% compared with the first-party harnesses.
  3. No polling. In one case a fixed 30-second timeout turned a single long wait into 334 polling calls, at more than ten times the cost. Freehand just lets the model wait.
  4. Pruning on long tasks. On a multi-hour science task, self-managed memory cut total input from 24.5M to 8.9M tokens. On short tasks the model doesn't bother editing its memory at all, so there's no overhead.

Paired bar chart of cumulative input tokens in millions, first-party harness versus Freehand: OSWorld 2.1 GPT-6-astra 12.66 vs 1.11, OSWorld 2.1 Claude Opus 5.5 8.44 vs 2.15, Terminal-Bench 4 GPT-6-astra 3.32 vs 0.99, Terminal-Bench 4 Claude Opus 5.5 8.89 vs 4.59, Terminal-Bench 4 Gemini 4 Carbon 6.94 vs 3.89, Agents' Last Exam GPT-6-astra 2.70 vs 0.59, Agents' Last Exam Claude Opus 5.5 2.40 vs 0.94

The ablations are useful too. Swapping self-managed memory for normal auto-compaction kept accuracy the same but cost 7–19% more. Putting Codex's prompt and tools back into the Freehand loop lowered accuracy and raised cost by 68%. So most of the gain comes from dropping the prescribed workflow and tools, and the memory part mainly saves money on long runs.

What I'm happy with and what isn't there yet

One part I really like is that the paper doesn't oversell it. With lower-tier models (GPT-6 Sol, Claude Sonnet 5.5, DeepSeek V4.1 Flash) the first-party harnesses win again. That fits their own argument: the rules help models that need them. So this isn't "throw away your harness", it's "the right amount of harness depends on the model".

Some things to keep in mind:

  • No sandbox. Commands run as you, with your files and credentials, and nothing asks for approval. The README is clear about this: use a container or VM for anything you don't trust.
  • No native Windows yet. The CLI and web UI run on macOS and Linux, or Linux under WSL2. The desktop app is macOS and Linux only for now. As a Windows user that's a bit annoying 😅
  • It's alpha. v0.1.1 at the time of writing.
  • The benchmarks are the authors' own. They did a controlled same-machine rerun and significance tests, but I'd like to see independent numbers.

What this means for your setup

This is the part I keep thinking about. The paper says the rules still help weaker models. But today's frontier model is next year's average model. So what happens to everything we've been building around our agents: instruction files, skills, custom agents?

I don't think it goes away. I do think it changes what it's for.

Instruction files get a lot shorter. Generic advice like "read a file before you edit it", "make a plan first" or "write clean code" is exactly what Freehand dropped, and good models do it anyway. What stays is what the model can't find out by itself: why a decision was made, what's out of scope, the conventions nobody wrote down, the traps that look fine but break. Plus a few shortcuts that save turns, like "the build is npm run build and there are no tests". Even Freehand would spend turns rediscovering that every session, and with a meter on screen you can actually see what that costs. I expect the instruction file to look more like an onboarding note for a senior colleague than a rulebook.

The unwritten stuff becomes the most important part, and that means more human input. If the model can find everything in the code by itself, the only thing left to add is what isn't in the code. Why we picked this database. Which customer always asks for that one exception. What we tried last year and why it failed. That knowledge lives in people's heads, and an agent can't dig it up with bash. So the work shifts from writing rules for the model to writing down what we know. And honestly, I don't think we're going to love that. Most developers would rather write code than documentation, and it's hard to put into words things you just "know". But that's where the value will be: not in telling the model how to work, but in giving it the context only we have.

Skills fit this world better than big instruction files. A skill is a folder with instructions and scripts that the agent only loads when it needs it. The model sees a short description and decides itself whether to open it. That's already "let the model decide". I think skills will move away from step-by-step recipes ("first do this, then that") towards know-how and ready-made scripts: the domain knowledge and tools a model can't guess, not instructions on how to think.

Rules you can't afford to break move out of prose. Freehand leaves the boundaries with the host: permissions, sandboxing and budgets. Everything else is the model's call. So anything that must always hold belongs in tests, CI checks, hooks and permissions, not in a sentence the model may or may not follow.

Memory becomes the model's job. Same lesson as in my notebook article: explain what the memory is for and let the model decide what's worth keeping.

So my guess for the near future: less setup, but sharper. Fewer rules about how to work, more facts about your project, and hard guardrails where it really matters. And probably still a heavier setup for the smaller, cheaper models you use for simple tasks.

What you can take from this

Even if you never use Freehand, you can do this tomorrow:

  • Check what you send on every turn. Every rule, skill description and MCP tool definition is paid for on every request.
  • Go through your instruction file with one question: "Would a good model do this anyway, or could it find this itself?" If yes, cut it.
  • Move the must-haves into checks. If breaking a rule would really hurt, enforce it with a test, hook or permission.

If you've tried Freehand, or you've seen the opposite with your own agents, I'd love to hear about it.

References

Back to all posts