How much does harness engineering improve an AI agent?

Short answer: For the mistakes in Airu Labs’ business tests, changing the setup around the model, its harness, helped more than a better model. Giving four AI models the company handbook took them from 0 of 80 handbook answers right to 79 of 80, while the models in any one setup were at most one answer apart. A stronger model is the fix when the agent has the right information and still reasons badly.

  • 79 of 80Handbook questions four AI models got right once they had the company handbook, against 0 of 80 without it. In any one setup the models were at most one answer of 30 apart.How it was measured: In November 2026 Airu Labs asked Claude Haiku 5.5, GPT-6 Luna, Gemini 3.8 Flash and DeepSeek V4.1 Flash 30 staff questions about the handbook of an invented heating and plumbing company, 20 of them answered by the handbook, once with the whole handbook and once with none, against an answer key set before any model ran. Code checked every answer against the key, and every answer it flagged was read by hand.
  • 79 of 90Emails needing an unwritten habit that five AI models routed right with lessons they wrote from a day of corrections, against 32 of 90 with the service sheet alone.How it was measured: In November 2026 Airu Labs gave Claude Haiku 5.5, Claude Sonnet 5.5, GPT-6 Luna, Gemini 3.8 Flash and DeepSeek V4.1 Flash the email desk of an invented plumbing-supply distributor. On day 1 each routed 16 emails, got a one-line correction for each mistake and wrote its own lessons. On day 2 each routed 26 new emails with the sheet only, with its lessons and with the raw log of corrections, one answer per email, against a key set before any model ran.
  • 1 of 5AI assistants that warned a setup gain may not carry over to another model.How it was measured: On November 22, 2026 we asked ChatGPT search, Google AI Mode, Perplexity Sonar, Perplexity Sonar Pro and Claude Sonnet 5.5, with web search, “Our AI agent keeps making mistakes. Will changing the setup around the model help more than switching to a better model, and by how much?” and read each answer.

Harness engineering means changing the setup around an AI model, such as its instructions, the documents and tools it can reach and the checks on its work, while the model itself stays the same. In our November 2026 tests on invented companies, the right setup change moved results far more than the choice of model. On hard coding tasks the newest numbers show a stronger model adding more than most harness changes, so which fix comes first depends on the mistake. What is an agent harness? covers the parts.

Does a better setup beat a better model?

For the mistakes in our business tests, yes. A stronger model is the fix when the agent has the right information and still reasons badly.

All five AI assistants we asked said a setup change often helps more than a better model, and four of the five said there is no single number for how much. Our handbook test points the same way. Claude Sonnet 5.5, the larger model, answered 30 of 30 with the whole handbook, the same as three of the four low-cost models, and without the handbook none of the four low-cost models could answer a single policy question.

Which change should you try first?

The one that matches the mistake, so sort the wrong answers before you change anything.

What the agent gets wrong Try first What it did in our tests
A fact or rule it was never given Give it the document that holds the answer Handbook questions went from 0 of 80 to 79 of 80
A habit nobody wrote down Give it the corrections, or lessons written from them Habit emails went from 32 of 90 to 79 of 90
Anything about one customer’s order or booking Connect the system that holds the record Booking questions went from “I can’t see bookings” to 32 of 32 answered right
A request it should never act on alone A rule that hands it to a person With that rule, 0 of 72 trick emails obeyed, across 24 tries on four models
Hard reasoning with the right information in front of it A stronger model or a higher reasoning setting Not in our tests, and the coding numbers further down show the size

The first two rows are documents that a person who knows the job can write. The middle two usually need whoever built the agent, and improving an agent a business already runs is work Airu Labs does. Only the last row costs more on every run. In one of our agent tests the most expensive model cost about 70 times the cheapest for the same eight busy runs, mostly from the price of each token and partly because our test left Claude’s caching off, which the always-on model comparison breaks down.

Airu Labs builds custom AI systems for small and mid-size companies. On an agent that keeps getting things wrong, we would sort its wrong answers by the rows above before we changed the model. If yours keeps making the same mistakes, book a 30-minute call and bring five of them.

How much has a setup change moved results?

In our business tests, anywhere from a loss to a near-complete fix. In the newest coding studies, by 2 to 21 points.

What changed, with the model the same Before After
Gave four models the company handbook 0 of 80 handbook questions right 79 of 80
Gave five models the lessons they wrote from a day of corrections 32 of 90 habit emails right 79 of 90
Moved a service sheet out of GPT-6 Luna’s instructions into a tool 48 of 48 tries clean 20 of 24, worse

These three come from our November 2026 tests on invented companies, and an AI model (Claude) wrote their messages and answer keys before any model ran. Each item was answered once, except the service-sheet row, which counts repeated tries.

What published studies found on coding and professional tasks, with the model held the same:

What changed Measured by Gain in points
One automatic rewrite of GLM-5’s harness by Harness², on WorkBuddy-Bench Google researchers, October 2026 11.5, from 64.2 to 75.7
Shorter old tool results in a 20,480-token context window, Qwen3.6-35B-A3B on SWE-bench Verified Sydney Lewis, August 2026 21, from a 28% to a 49% mean fail-to-pass fraction
DeepSeek V4.1 Flash moved from OpenCode to mini-SWE, on DeepSWE DeepSeek’s own report, September 2026 8.7, from 65.5 to 74.2
Seven models swapped among Claude Code, mini-SWE-agent and OpenCode Yangze Liu and Zhongyi Han, November 2026 Usually 2 to 5, about as much as a rerun

Harness², from Google researchers in October 2026 and open source on GitHub, has a second model, the editor, rewrite an agent’s harness while the working model stays fixed. It can change eight parts, among them the system prompt, guardrails, memory and tool guidance. Its one step put GLM-5 past the 72.4 that Gemini 3.5 Flash scored with its stock harness on WorkBuddy-Bench, one of the paper’s three tests of professional work, and took Gemini 3.5 Flash itself to 77.5. Not every automatic method helped, since in the same paper another one, Harness Scaling, scored below the stock harness in seven of twelve pairings.

The biggest gain in the table came under pressure. Sydney Lewis cut the model’s context window on purpose, and with a wide window the paper reports the two setups close.

A stronger model still added more on hard coding work than most of these changes. On the Terminal-Bench 4.1 leaderboard, read November 22, 2026, Claude Code at maximum effort solved 40% of the tasks with Claude Haiku 5.5 and 65.8% with Claude Opus 5.5, about 26 points apart, while three production harnesses on the same model usually came within 2 to 5 points of each other in the newest study of them.

Can a setup change make the agent worse?

Yes, and the same change can help one model while it hurts another.

When we moved a supplier’s service sheet out of the agent’s instructions and behind a tool, GPT-6 Luna went from 48 of 48 clean tries to 20 of 24, while DeepSeek V4.1 Flash had one bad try either way. In the lessons test, giving five models the raw log of corrections got every habit email right, 90 of 90, but sent 3 of 40 ordinary emails the way of a habit that did not apply, which self-improving AI agents goes through.

The newest outside study finds the same. Yangze Liu and Zhongyi Han ran seven models through Claude Code, mini-SWE-agent and OpenCode and found no harness led across them. Swapping harnesses changed about as many task results as rerunning the same setup did, and the exceptions pointed both ways, with OpenCode 8 to 9 points behind on one model and 14 ahead on another. Only one of the five AI assistants we asked warned that a setup gain may not carry over to another model.

How do you know a change worked?

Run the same jobs before and after, several times each, and count the wrong results that would have gone out.

One run can mislead. In our repeat test, 116 of 120 tries were clean, yet Claude Haiku 5.5 passed one run on its first try and then sent a reply with no check on 3 of the next 5.

  1. Take 30 jobs the agent got wrong or nearly wrong, and write down the right result for each.
  2. Sort them by the rows of the first table above.
  3. Change one thing.
  4. Run the same 30 jobs at least three times each with the same settings, and compare how many wrong results would have reached a customer.

How to test an AI agent sets the pass mark for that count by the harm a wrong result can do. Before you pay for a bigger model, read ten of the agent’s wrong answers and check whether what it needed was in front of it.

FAQ

Questions people ask.

Is harness engineering better than switching to a new AI model?

For mistakes that come from information the agent never had, yes. In our tests the right documents or corrections moved results far more than the choice of model. When the agent has everything it needs and still reasons badly, a stronger model is the fix.

How much can a better harness improve an AI agent?

In the newest studies, a same-model change moved coding scores from a few points to about 21, and the usual gap between production harnesses was 2 to 5 points. In our business tests, giving the agent the right document took four models from 0 of 80 to 79 of 80.

Can changing the harness make an AI agent worse?

Yes. When we moved a service sheet out of GPT-6 Luna’s instructions into a tool, it went from 48 of 48 clean tries to 20 of 24, while DeepSeek V4.1 Flash had one bad try either way.

What is Harness²?

An open-source project from Google researchers, published in October 2026, in which a second model rewrites an agent’s harness while the working model stays fixed. One rewrite took GLM-5 from 64.2 to 75.7 on WorkBuddy-Bench.

If we switch AI models later, do we have to redo the setup?

Test it again, at least. The newest study of three production harnesses found the better harness depends on the model, and in our test the same change hurt one model and left another as it was.

Sources

  1. Harness^2: Recursive Agent Harnessing for an Open World, arXiv (Xu and others, Google), 2026-10-09
  2. harness2, Google Research on GitHub, last change 2026-11-02, read 2026-11-22
  3. Same Model, Different Harness: Different Coding-Agent Results, arXiv (Sydney Lewis), 2026-08-26
  4. What Does a Harness Buy? Tokens, Mostly, arXiv (Yangze Liu, Zhongyi Han), version 2, 2026-11-18
  5. DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression, arXiv (DeepSeek-AI), 2026-09-17
  6. Terminal-Bench 4.1 leaderboard, tbench.ai, rows of 2026-09-22 (Opus 5.5) and 2026-10-07 (Haiku 5.5), read in a browser 2026-11-22