# Simpler agent software beats Codex and Claude Code at half the cost

A Microsoft Research-led preprint finds that frontier models do better when the software around them decides less: one shell, a self-edited memory file and a cost meter. With weaker models, the vendors' own harnesses still win.

- Category: Agents
- Readiness level: III (Open source) on Science Underway's four-step scale, as proposed
- Published: 2026-12-04
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/simpler-agent-software-beats-codex-and-claude-code-at-half-the-cost

## The study

Freehand: The Bitter Lesson Comes to Agent Harnesses (preprint, not peer reviewed). arXiv 2612.02442. https://arxiv.org/abs/2612.02442

## At a glance

- What it shows: AI agents built on the strongest current models scored higher and cost about half as much when the surrounding software gave them fewer rules and tools. The simple setup beat the models' own vendor-made agent software in all 11 tests.
- What it does not show: It does not show results with real users or real company systems, and it does not test the security risks of giving a model an open command line. Many single-benchmark wins are too small to be certain on their own.
- Why it matters: Companies spend heavily on agent scaffolding. For top models, some of that scaffolding may now cost money and accuracy rather than save it.

## What the study shows

An AI agent has two parts: the model and the harness. The harness is the loop that feeds the model its context, runs the actions it asks for and returns the results. Popular harnesses such as OpenAI's Codex, Anthropic's Claude Code and Google's Gemini CLI wrap the model in long instruction sets, 16 to 23 built-in tools, fixed command timeouts and automatic summarising of old conversation once memory fills up.

The authors built a harness called Freehand that strips almost all of this away. The model gets a prompt of about 200 words that describes the setup but sets no workflow. It gets one tool, a bash shell (a command line), and sets its own timeout for each command. Its conversation history sits in an editable file, so it can delete or condense old material itself. After every turn, a one-line meter reports context size, tokens, cost and time used.

The team tested Freehand on five public benchmarks covering terminal work, scientific computing, research tasks, desktop software (OSWorld 2.1) and enterprise workflows. They used three frontier models: GPT-6-astra, Claude Opus 5.5 and Gemini 4 Carbon. The authors report that Freehand beat each model's own harness in every one of 11 model and benchmark pairings. On average it scored 5.1 percentage points higher and cost 49% less per task. It also beat three other open harnesses, OpenCode, Pi and DeepSeek Harness, on both score and cost.

The clearest single gain came on desktop tasks. With GPT-6-astra, Freehand scored about 76% against about 68% for Codex, at roughly a quarter of the cost. Freehand did this without the desktop-control tools the other harnesses were given. Instead the model wrote its own scripts and inserted cropped screenshots into its memory file to look at them.

The authors also tested weaker models from the same families on one terminal benchmark. Here the result flipped: the vendor harnesses beat Freehand by 5 to 7 points. The authors call this the move from crutch to cage. The paper is a preprint and has not been peer reviewed.

## Our reading

In our reading, the most useful result is not the headline win but the reversal. The same vendor harness helps a weaker model and holds back a stronger one. That suggests harness design should be matched to model strength, rather than treated as a fixed best practice. The statistical test for this reversal is solid in the Claude family and borderline in the GPT-6 family, so the pattern is suggestive rather than settled.

The ablations, where one part is changed at a time, help explain where the gains come from. Putting Codex's prompt and tools back into Freehand lowered accuracy and raised cost by more than half. Swapping the self-managed memory for automatic summarising left accuracy about the same but raised cost. So the accuracy gains come mainly from dropping prescribed workflows and tools, and memory control mostly saves money on long tasks.

A concrete example shows the mechanism. On one long optimisation task, a harness with a fixed 30-second timeout made the model check on a running job 334 times, at about $71. When the model could set its own timeout, it waited once for 24 minutes and finished for about $2. A team running long data-processing or build jobs through an agent could see similar waste.

The rest of the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/simpler-agent-software-beats-codex-and-claude-code-at-half-the-cost

## How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
