To evaluate an agent harness, run two versions on the same test cases, repeat each case several times, read success and cost together, and hold back cases the versions never saw while being tuned. Then check whether the gap is bigger than the noise, because it often isn’t.
Most guides stop at “compare versions”. This one shows how to decide that version B beats version A, with the arithmetic. The worked numbers are samples we made up to show the method. Catoms isn’t live, and we have no results of our own.
Two things called “harness evaluation”
The phrase means two things, which is why search results for it look so mixed.
- An eval harness is the test rig. It loads cases, runs the agent, grades the output and records the result.
- An agent harness is the layer around the model that you ship: prompts, tools, rules, guardrails, evals, fallbacks and monitoring.
This article is about the second: using an eval rig to judge the harness you’ll put in front of users.
Why a model benchmark can’t answer this
A benchmark score belongs to a pair of model and harness, not to the model alone. Harness-Bench ran 106 tasks across model and harness pairs, 5,194 runs in all, and concluded that capability should be reported for the pair.
The size of the harness effect depends on what changed:
- In FrontierFinance, moving from a web search harness to finance tools added 12.0 and 22.8 points on two models and nothing on a third.
- In Era by Eon, adding code execution added 16 and 21 correct answers out of 27 computable questions, and did nothing for the two strongest models on questions needing hidden facts.
- In Harness or Model?, two mature coding harnesses with similar tools differed by −1.25 and +1.25 points, with intervals spanning zero.
So your own task is the only benchmark that settles your decision.
Set the bar first
Before running anything, write down four things:
- Success: “correct totals on 95% of test receipts” is checkable. “Handles receipts well” isn’t.
- Cost: what a successful task may cost.
- Latency: how long a user or process can wait.
- Forbidden failures: results that sink a version whatever its score, such as an invented amount.
Writing this first stops you from choosing the bar that flatters the version you already like.
Build the case set
Our guide to writing evals covers the first suite. To compare harnesses, you need three more things.
- Real failures. Past mistakes make the best cases, because they test what actually goes wrong.
- Cases that should be refused. A harness that always answers will look strong until you test what it does when it should stop.
- A held-out split. Keep a set that nobody tunes against, and that any automatic optimiser never sees.
The held-out split isn’t a formality. In Rethinking the Evaluation of Harness Evolution, evolved harnesses changed pass rates by +1.2, 0.0 and −1.4 points on 34 held-out coding tasks, averaging zero, even though earlier work reported gains by tuning and scoring on the same benchmark.
Run a fair comparison
Change one thing at a time where you can, and keep everything else fixed:
- the same cases, in the same state, with a clean environment for each run
- the same budget for tokens, time and retries
- the same grader
- the same number of attempts per case
Then repeat the runs. On Randomness in Agentic Evals ran 60,000 trajectories and found a single-run score moves by 2.2 to 6.0 points depending on which run you happen to pick, even at temperature 0. The authors warn that reported gains of 2 to 3 points may be noise.
How many repeats you need depends on the task. One study found 8 to 16 trials enough for structured tasks and 32 or more for complex reasoning. Each trial costs money, so start small and add more where the decision is close.
Is B really better?
Here’s the sample. Version A passes 48 of 50 receipts (96%), and version B passes 44 of 50 (88%). That looks settled, but it isn’t.
Check the margin. At a 90% pass rate on 50 cases, the 95% margin is about ±8 points. Treated as separate samples, 96% and 88% are only about 1.5 standard errors apart.
Then compare case by case. Both versions ran on the same cases, so look at the ones where they disagree:
| B passes | B fails | |
|---|---|---|
| A passes | 42 | 6 |
| A fails | 2 | 0 |
Only those 8 disagreements carry information about which is better. If the versions were equal, a 6-to-2 split or worse would still happen about 29% of the time. That’s McNemar’s exact test, and at p = 0.29 this result isn’t enough to call.
The next step is more cases, not more argument. For ±5 points at an 80% pass rate, you’d need about 246 cases.
Keep the case-level view for another reason. Averages hide differences. In Life After Benchmark Saturation, two scaffolds on the same model both scored 82.1% yet disagreed on 12 of 39 tasks.
Pass@k and pass^k
Reliability needs its own number, since these two questions have very different answers:
- Pass@k: did at least one of k attempts succeed?
- Pass^k: did all k succeed?
At 70% per attempt and three attempts, pass@k is 97% and pass^k is 34%. It’s the same agent with opposite impressions. APEX-Agents shows this on real work: 480 knowledge-work tasks, with a top pass@8 of 40.0% and a top pass^8 of 13.4%.
Use the one that matches your job. If a person reviews the output and can retry, pass@k may be fair. If the agent acts alone on every request, use pass^k. We go further on this in AI agent reliability.
Read cost and success together
A version that passes more often isn’t automatically better. Use cost per successful task, and include what a failure costs you:
(run cost + failure rate × cost of a failure) ÷ success rate
With sample numbers, and $2 of staff time to fix each failure:
| Run cost | Pass rate | Cost per successful task | |
|---|---|---|---|
| Version A | $0.30 | 96% | $0.40 |
| Version B | $0.05 | 88% | $0.33 |
B is cheaper here, even though only A clears the 95% bar. If failures cost $20, A wins easily. The answer depends on your failure cost, so put a number on it.
Published results show why this matters. In ExtractBench, a document extraction benchmark, vision models at about 1¢ a page stayed under 80% F1, while general agent loops reached 87% and 94% at 16¢ and 28¢. The Holistic Agent Leaderboard found task-specific scaffolds usually more accurate and a general one cheaper in 20 of 24 comparisons.
Record cost carefully. The author of Harness or Model? had to publish a correction to their own telemetry.
Compare across models
Don’t test harnesses on one model and assume the winner carries over. In a long-running finance simulation, one model survived more often under one framework and a different model did the reverse, though with only five runs per setting.
Build a small grid of the harnesses and models you could realistically use, and run every pair. Three harnesses and three models is nine pairs, so use your cheapest cases to narrow it before running the full set.
Check the graders
The grader is part of the experiment. Use code checks first, wherever the answer can be checked exactly: totals, formats, the final state of a record. τ-bench grades customer service agents by the final database state for this reason.
Judge models are for what code can’t check, and they need calibrating against people on your task:
- The best judges scored 94.7 and 89.4 against human labels in two settings. That error can be larger than the gap between your versions.
- Judges can be repeatable and still biased, so running one twice doesn’t validate it.
- Even people disagree. Human experts agreed only 71% of the time on GDPval deliverables, which limits how precisely anything can score that work.
Have a person label a sample of your own cases, then measure the judge against those labels.
Overfitting to your evals
Once a score drives decisions, people and machines start optimising for the score. Three checks catch most of it:
- Compare scores on tuned and held-out cases. A growing gap means overfitting.
- Look at what changed. Prompts that grow long and fill with case-specific rules are a known warning sign.
- Add cases that can’t legitimately pass. Any pass on a test that conflicts with the spec means something is gaming the check.
Benchmarks themselves are vulnerable: BenchJack scored near-perfect on most of 10 benchmarks without solving a task. Read the logs of your best runs before believing them.
A decision rule
Agree on the rule before you run the test. Here’s one to adapt:
- Keep B if it meets the success bar on held-out cases, adds no forbidden failures, and has a lower or acceptable cost per successful task.
- Stop B if it misses the bar and the gap isn’t close, or if it adds a forbidden failure.
- Run more cases if the difference is inside the noise and the decision is worth the cost.
- Keep A by default. With no clear evidence, the current version stays.
Our research page tracks the studies behind this. If you want to see what we’re building on top of the method, read about the product.
Questions
How is an eval harness different from an agent harness?
An agent harness is the layer around a model that runs your agent: prompts, tools, guardrails and fallbacks. An eval harness is the rig that runs test cases against it and records the scores.
How do you test an agent that gives different answers each run?
Run each case several times and report the spread. Use pass@k if one good attempt is enough, and pass^k if every run has to be right.
What is the difference between pass@k and pass^k?
Pass@k asks whether at least one of k attempts succeeds. Pass^k asks whether all k succeed. At 70% per attempt and k of 3, pass@k is 97% and pass^k is 34%.
How do you catch a regression when you update a prompt, swap a model or change a tool?
Run the old and new versions on the same cases, then look at which cases each one passes alone. Treat any new failure on a case that used to pass as something to explain before release.
Is an LLM judge reliable enough to grade a harness?
Sometimes, but measure it first. Check the judge against human labels on your own task, because its error rate can exceed the difference between two harnesses.
Does the best harness depend on the model?
Often, yes. Published results include reversals, where one model does better under one framework and another does better under a different one, so compare pairs of model and harness.