Iddo Gino

The Great Unharnessing

Something interesting is happening in AI agent building right now: the idea of “unharnessing”. For the last couple of years, whenever we built AI agents, we invested a lot in developing the harness — the tools agents get and the environment they work in. The harness was built to help the model work better: give it tools, context, and guidance in a special way. We thought of it as crutches for the model.

Drag the slider to make the model smarter, then try taking the harness off.

But we are now realizing that these crutches were more like a cage. The smarter the models get, the less they need them, and the more they end up fighting against the constraints of the harness. It turns out these fancy harnesses are starting to do more harm than good.

Stripping off the harness

In a recent paper, Microsoft tried something radical: what if we take away all these fancy tools and just give the agent a simple shell? Their harness, Freehand, is incredibly simple — a ~200-word prompt (most harnesses have many thousands), a single tool (the average harness has over 20), and no compaction (the model prunes its own context).

What a mainstream harness decides for the model, and what Freehand keeps. After the design comparison in the Freehand paper.

The results were staggering. Compared to common harnesses like Codex, Claude Code, OpenCode, Pi, and DeepSeek Harness, Freehand achieved the highest score and the lowest cost on every benchmark with frontier models.

Data from Zeng et al., “Freehand: The Bitter Lesson Comes to Agent Harnesses” (2026). Scores and costs averaged over 2–5 rounds per setting. Hover a dot for exact values.

Full code mode

OpenAI then tried something even more radical with MCPFS: take away MCP (Model Context Protocol) tool calls — the dedicated tools we built to let agents integrate with other services — and replace them with simple files. MCPFS mounts MCP servers as a plain file system, and it turns out agents do just as well using files.

When the team at Indent did something similar, they reported a big drop in model time per turn:

Indent@indent · Nov 30, 2026

We stopped letting models call MCP tools directly.

Turning thousands of tools into typed TypeScript cut model time per turn by 30% on Opus 5.5 and 41% on GPT-6.1 Sol.

Their explanation shows why, too. When an agent gets to code its own integration, it can bundle requests together and extract just what it needs from them. When it is forced to use ready-made tools, it has to call them one at a time, and every full response lands in its context.

The same six API calls, two ways. Timings are illustrative, after the animation in Indent’s code mode post.

This leads to the broader concept of code mode harnesses: instead of crafting the tools in the harness, let the agent code its own tools. Instead of giving it specific tools via MCP, let it code its own integrations.

The analogy is simple. With traditional tools in an MCP harness, we give the agent a hammer, a screwdriver, and a pair of pliers. With code mode, it gets a super-fast 3D printer where it can make the perfect tool every time.

A fixed toolbox versus a tool made for the job.

Bloated harnesses actively get in the way

We noticed this at Gamut when designing our browser-use capabilities. Initially we followed the traditional path of giving agents specific tools for interacting with web pages — click, select, scroll, type, etc. But that meant the agent had to carefully chain these tool calls, and whenever a web page was a little different, those tools behaved in unexpected ways. Bootstrap selects behave differently, elements show up weird with no ARIA tags, iframes break everything. Look through the release history of Vercel’s agent-browser and you’ll see hundreds of these edge cases being addressed.

We then replaced them with a new tool, run_javascript, that just lets the agent write its own JS snippets for interacting with web pages. The results? 45% fewer tokens in the average browser-use session. Agents write small snippets that combine work: “focus the search field, type the query, return the results” becomes one run_javascript call rather than six tool calls.

One search task, two ways. Illustrative; across real sessions, run_javascript used 45% fewer tokens on average.

Another simplification is around the memory and context layers. LLMs have limited context (most frontier models are at around 1M tokens). So when the context gets close to the limit, most harnesses compact it: they use another model to summarize it, trying to keep the important facts and remove transient information. This is usually complemented by a fancy LTM (long-term memory) system with semantic retrieval.

The new age of context management throws that away for a much simpler approach. Session getting long? Just ask the model to prune it itself — the context is just a file it can edit. Previous sessions? Just save their files and let the model read them. Long-term memory? Let the agent create markdown files in a folder structure. Each of these approaches has shown better results, with far more simplicity, than advanced context management.

The same session near its context limit. Compaction hands the whole thing to a summarizer; self-editing lets the agent delete what it knows is stale.

In each of these cases, we replaced a carefully engineered and fine-tuned piece of the harness with a dead-simple, crude agent control — and the agents did better for it. It’s not just that models need less help as they get stronger. It seems that the “help” is actively getting in the way.

Code is the most flexible medium for agent interactions. The more freedom we give agents, the better they do. Harness design is thus about doing less, not more. But that doesn’t necessarily mean designing agentic execution environments is easy. As any designer will proudly boast, simplicity takes a lot of thought.

Less harness takes more work

The crux is this: agents do well in unconstrained execution environments with a high degree of freedom. But in reality, agent execution has constraints, and freedom needs to coexist with security and control. Take a few practical examples:

  1. We want to let agents read and write files freely — but they often run on ephemeral VMs.
  2. We want agents to have direct access to APIs and MCPs — but we don’t actually want to give them API keys or tokens, and we want to enforce access policies.
  3. We don’t want to give agents many custom tools — but we need them to integrate with our control plane and UI.

To me, this set of constraints and ideals is reminiscent of how we approach operating system design. On the one hand, we want a simple contract for software (infinite memory, an abstract file system, uninterrupted execution). On the other, we need to reconcile that with real-world limits (shared memory, file systems over slow disks or SSDs, shared execution).

The solution in operating systems is careful virtualization and abstraction. Programs get infinite memory because the OS pages it in and out behind the scenes. Programs get a clean, performant POSIX file system interface because the OS maps it to disk blocks and queues writes under the hood. Programs don’t think about shared execution because the OS moves them in and out of the CPU seamlessly.

This has been our approach to agent design: agents get a clean, simple, raw interface, and we do a lot of work under the hood to make that possible.

Designing virtualized harnesses

Take API connections as an example. We want to give agents an API endpoint and a token, and let them write custom scripts around the APIs. But we don’t want to give them a token they can leak, and we want to enforce policies and require user approval for some flows. Our solution is a proxy.

We tell the agent to make a request to the API directly, and we even give it a token. Under the hood, the request is intercepted by our proxy, and the token is fake. The proxy gets to apply policies, ask the user for approval, and put in the real token. The agent “sees” a very simple API. We do a lot of work to make it seem that way.

Similarly with the execution environment: our agents run in containers on AWS microVMs or Cloudflare Containers. Both have limited ephemeral disks. So we set up a FUSE file system that syncs file storage to object storage (S3/R2) and moves files in and out to save space. But the agent sees none of that. It sees a simple file system, which it is very comfortable operating in.

What the agent sees, and what’s under the hood.

Lastly, every session with the agent is a JSONL file it has full access to. Want to compact? Delete lines. Want to find an old conversation? Use grep. Want to rename a session? Rename the file. Fork a session? Copy the file! Full flexibility.

The occasional hint is still needed

So do we still need crutches at all? Kinda. As we build agents, we find that they sometimes need a prod in the right direction — usually when they’re missing context about the environment they live in. The traditional solution is to add more guidance to the system prompt (and that’s how system prompts balloon to tens of thousands of tokens).

We try to replace that with timely, contextual hints. When an agent opens a special file (a session or settings file), we inject a bit of context about it. When an agent edits a file (settings, for instance), we transparently validate it against its schema and reject writes that break it. When an agent runs a potentially wrong command, we inject a hint to steer it.

These hints are always about helping the agent adjust to our environment. Ideally we have as few of them as possible: the more “vanilla” the environment is, the more in-distribution it is for models, and the more comfortable they are operating in it.

← All writing