How Agent Harnesses Distort LLM Capability Rankings and Pass@1 Benchmarks
Agent harnesses can significantly change LLM coding benchmark outcomes, and sometimes reverse framework rankings across models. This article explains how agent frameworks influence Pass@1 scores, why framework performance is often not transferable, and how teams can design fairer and more reproducible model-versus-framework evaluations.
1. A Counterintuitive Observation
When evaluating the practical engineering ability of large language models (LLMs), teams often rely on fixed code benchmarks and report metrics such as Pass@1. However, recent evaluation practices have revealed an easily overlooked variable: the outer agent harness.
The same model, with only a different agent harness, can improve from roughly 23% Pass@1 to roughly 52% on a code benchmark — almost doubling. Another mid-sized model improved from about 15% to about 36%. More concerning is what happens when the rankings of ten different frameworks are compared across two models: the correlation coefficient is only -0.05, which is almost equivalent to no relationship.
In other words, the framework that performs best for one model may fall to the bottom of the leaderboard when applied to another model.
This raises a sharp methodological question: when we report a benchmark result, are we measuring the capability of the model itself, or the fit between the model and the agent harness?
2. What an Agent Harness Is and Why It Affects Results
An agent harness is an execution scaffold wrapped around a large language model. It translates the model’s natural-language decisions into real executable actions. In practice, an agent harness usually takes on the following responsibilities:
- Context orchestration: deciding which files, logs, error messages, and other information are placed into a limited context window.
- Tool scheduling: managing calls to tools for reading and writing files, executing commands, searching codebases, and returning results.
- Loop control: defining when the “think — act — observe” loop should continue and when it should terminate.
- Error recovery: deciding how to retry or correct mistakes when a command fails or a test does not pass.
- Output parsing: reliably extracting structured action instructions from the model’s free-form text output.
The key point is that none of these layers is neutral. Every context truncation decision, every prompt, and every retry strategy can significantly change what the model actually sees and what actions it can trigger. The agent harness is not a transparent pass-through pipe. It deeply participates in the reasoning process itself.
3. Why the Difference Can Be Large Enough to Double Scores
The large swings in Pass@1 on coding tasks can be explained from several angles.
1. Tool-Calling Compatibility and Format Alignment
Different models develop different output habits during training and alignment. Some models are better at generating specific tool-calling structures, while others are more comfortable with imperative script-style output. When the format expected by an agent harness matches a model’s natural tendency, parsing success improves significantly. This may look like a capability improvement, but in many cases it is only the result of format alignment.
2. Context and Retrieval Strategy
Coding tasks often require locating relevant files inside a large codebase. The retrieval strategy of an agent harness — keyword search, vector retrieval, directory traversal, or a combination — determines whether the model can “see” the relevant context. When retrieval is accurate, a strong model can fix the problem in one attempt. When retrieval goes off track, even a powerful model may struggle to make progress.
3. Error Recovery and Self-Correction
Real coding tasks rarely succeed on the first try. Whether an agent harness can automatically read error messages after a failed test, retry, and perform local rollback directly affects whether multi-turn interaction can converge. A harness that only supports single-turn output may turn fixable errors into outright failures.
4. Prompt Engineering and Implicit Coupling With Specific Models
The system prompts, few-shot examples, and task decomposition strategies embedded in an agent harness are often tuned for a particular class of models. This implicit coupling can make a harness perform exceptionally well on the model it was optimized for, while performing poorly on other models.
Together, these four factors explain why switching the agent harness can nearly double a model’s Pass@1 score.
4. What Near-Zero Correlation Really Means
A correlation coefficient of only -0.05 across ten frameworks and two models is more important than a simple score fluctuation. It suggests several things:
- There is no universally best agent harness. A framework’s advantage depends heavily on its fit with a specific model, not only on its absolute design quality.
- Framework leaderboards have poor transferability. The “best framework” selected based on one model cannot reliably be generalized to other models.
- Evaluation results are easy to overinterpret. Treating a high score from one framework as proof of strong model capability is a typical attribution error.
For engineering teams, this directly undermines a common practice: using one fixed evaluation configuration to compare all models side by side.
5. Practical Recommendations for Fairer Evaluation
To draw trustworthy conclusions in this setting, evaluation systems can be improved in several ways.
1. Use Matrix-Based Evaluation Instead of Single-Point Comparison
Rather than running all models with one framework, use a “model × framework” matrix design. This makes it possible to report both the upper bound of each model under a suitable framework and the framework source itself, avoiding the mistake of attributing harness benefits to the model.
Model A | Framework 1: 52% | Framework 2: 41% | ... | Framework 10: 23%Model B | Framework 1: 18% | Framework 3: 36% | ... | Framework 7: 15%
2. Fix and Publish the Evaluation Configuration
Details such as framework version, prompts, toolsets, retry strategies, and context length limits should be published as evaluation metadata. This helps ensure reproducibility and makes results easier to compare.
3. Separate Model Capability From Harness Fit
It is also useful to report an additional metric that is only weakly related to the harness, such as single-step accuracy under a standardized context. Presenting this alongside the end-to-end framework score helps distinguish the contribution of the model itself from the contribution of the agent harness.
4. Use Repeated Sampling and Confidence Intervals
Pass@1 itself is sensitive to randomness. Evaluations should include repeated runs and variance reporting to avoid treating noise as a conclusion.
5. Support Evaluation With Engineering Infrastructure
Large-scale, reproducible evaluation often requires containerized environments to isolate filesystems and dependencies for each run. It may also rely on object storage to archive run artifacts, message queues to schedule large numbers of concurrent tasks, and logging, monitoring, and alerting systems to track failure causes. On general-purpose cloud platforms that provide container, storage, and monitoring capabilities, teams can build stable and scalable evaluation pipelines, making “model × framework” matrix evaluation practical at the engineering level.
6. Conclusion
Switching the outer agent harness can double the same model’s Pass@1 score, while the correlation between framework rankings across models can approach zero. Together, these two facts show that model evaluation is no longer simply about producing a single score.
An agent harness is not a transparent pipe. It is a variable that deeply participates in reasoning. Only by treating the harness as a first-class part of evaluation design, and by adopting matrix-based, reproducible, and multi-dimensional evaluation methods, can we obtain conclusions that truly reflect model capability and avoid being misled by rankings produced by a single framework.
