Coding Agent Evaluation: The Harness Is the Hidden Variable Beyond the Model
Recent tests show that pairing the same model with different open-source agent harnesses can dramatically change coding benchmark pass rates, and harness rankings do not transfer reliably across models. This article examines the five responsibilities of an agent harness, explains why harness-model coupling can produce near-zero rank correlation, and proposes a joint model × harness evaluation method with practical guidance for engineering teams.
A Counterintuitive Test Result
In the intelligent coding tools space, a recent community test has drawn attention: using the same set of code-fix evaluation benchmarks, the same model was paired with ten different open-source Agent frameworks (harnesses, meaning the task orchestration and tool-invocation layer wrapped around the model). The resulting pass-rate differences were too large to ignore. Data showed that one model’s single-attempt pass rate on the same benchmark moved from 23% to 52% simply by switching harnesses; another medium-sized model moved from 15% to 36%. More notably, the rank correlation coefficient of the ten harnesses across two different models was only -0.05, essentially zero correlation. A harness that performed best on one model could rank last on another.
This result overturns a common intuition. In the past, we tended to say that model capability sets the ceiling and engineering is only incremental improvement. But the reality is that at the Coding Agent stage, the engineering harness itself has become a decisive variable. What we evaluate is no longer just the “model,” but the combined system of “model × harness.”
What the Harness Actually Does: Five Layers of Responsibility
To understand why the harness has such a large impact, it is necessary to clarify what an Agent harness actually handles. On the surface, the model does the “thinking” and the harness merely “passes messages.” In practice, however, the harness controls at least five key areas:
Context construction strategy. What the model can see in each round is entirely determined by the harness. Does it inject complete files, or first retrieve relevant snippets? Does it retain historical error messages? Does it include a repository structure summary? For the same codebase, different context organization methods directly change the quality of the model’s understanding of the problem. If the context lacks a key error stack, even the strongest model can only make blind guesses.
Tool design and invocation constraints. The harness decides which tools are exposed to the model (reading and writing files, executing commands, searching code, etc.). The parameter granularity of tools, truncation strategy for returned content, and presentation format of error messages all significantly affect the model’s decision path. A tool that returns too little information or too much noise can trap the model in repeated trial and error.
Task decomposition and planning loop. The harness determines whether the Agent “produces a complete patch in one shot” or follows a multi-round loop of “explore first, then locate, then modify, and finally verify.” Multi-round loops combined with test feedback often substantially improve the resolution rate for complex problems, but the number of rounds and termination conditions depend on harness strategy tuning.
Error recovery mechanism. When command execution fails, a patch cannot be applied, or tests fail, how the harness feeds failure information back to the model, whether it triggers retries, and whether it rolls back state—these “post-failure handling paths” are exactly what determines final success or failure. For many tasks, the model is actually capable of solving the problem, but it does not receive effective feedback after the first failure.
Output parsing and validation. Patches generated by the model need to be correctly parsed, format-validated, applied, and tested. A harness with weak parsing tolerance and unclear format constraints can lose the model’s originally correct intent during the engineering stage.
In other words, the harness determines the entire channel for the model’s “perceived input” and “action output.” If the channel quality is poor, even strong model capability cannot be fully expressed.
Why Harness Rankings Are Nearly Uncorrelated Across Models
A zero-correlation ranking coefficient shows that there is deep coupling between harness and model, and that no “universal harness” exists. This can be understood from three angles:
First, the match between prompt style and the model’s training distribution. Different models are exposed to different interaction formats, system prompt styles, and tool-calling conventions during training. If a harness’s prompt template happens to align with a certain model’s training distribution, the effect can be much better. On another model, the same template may cause format drift or incorrect tool calls.
Second, models differ in their autonomy tendencies. Some models tend to engage in long reasoning before acting, while others tend to call tools immediately. A harness’s loop control strategy—such as forcing a plan output first or limiting the number of tool calls per step—imposes completely different constraints on models with different tendencies and may even suppress the strengths of some models.
Third, there are differences in the tradeoff between context window and information density. Different models use long context with different efficiency, and the marginal benefits of a harness’s context compression strategy (full-text injection, summary injection, retrieval injection) are also completely different across models.
This means that the “optimal solution” for a harness exists relative to a specific model. Any conclusion about whether a harness is good or bad that is detached from the model is essentially invalid.
A Shift in Evaluation Methodology: From One Variable to Two
The implication of this test for engineering teams is that Agent evaluation must shift to a joint “model × harness” perspective:
Fix the benchmark, vary the harness. After selecting a model, run the same task set with two to three harnesses and observe the dispersion of the pass-rate distribution. Large dispersion indicates that the model is sensitive to harness engineering and requires more adaptation work; small dispersion indicates that the model is robust and that harness selection risk is lower.
Fix the harness, vary the model. Keep the same harness and compare different models on the same benchmark. This separates the model’s own contribution and avoids mistaking “harness gains” for “model progress.”
Record failure modes, not just pass rates. Among tasks that fail, some fail because of missing context, some because of tool misuse, and some because of patch format. Categorizing and counting failures provides more engineering guidance than a single pass-rate number. A simple categorization approach is as follows:
failure_stats = {"context_miss": 0, # Context did not include key information"tool_misuse": 0, # Tool call parameters/timing were wrong"patch_format": 0, # Patch parsing or application failed"wrong_fix": 0, # Patch applied but logic was wrong"test_flaky": 0, # Flaky tests caused false judgment}
- Beware of “harness score gaming.” If a harness’s results depend heavily on prompt tuning or special-casing for a specific evaluation set, its performance will shrink substantially when extrapolated to real business scenarios. Evaluation should focus on the harness’s generalization performance on unseen task types.
Selection Guidance for Engineering Teams
Based on the analysis above, teams building their own Coding Agent systems should consider the following path:
- Start with a minimal viable evaluation set. Extract 50 to 100 real code tasks from your own business (including fixes, refactoring, and new features). This is closer to actual performance than relying directly on public benchmarks.
- Use a matrix approach for joint evaluation. Select two to three candidates each for models and harnesses, and run all combinations rather than only single points. Combinations that perform stably in the matrix are more worthy of long-term investment than a single “peak combination.”
- Treat the harness as an iterable core asset. Prompt templates, tool return formats, and loop strategies should all be placed under version control and validated through regression against the evaluation set, so that any change can be quantified in terms of its impact on pass rate.
- When building an evaluation pipeline on the cloud, you can use a container platform to run task instances in parallel in batches, a logging service to retain the complete interaction trace of each round, and monitoring and alerting to track trends in evaluation pass rates. This makes evaluation a continuous engineering practice rather than a one-off action.
Conclusion
The phenomenon of “change the harness and double the score” looks like an unexpected evaluation finding, but in essence it is an inevitable manifestation of Agent system complexity. The model is the engine, and the harness is the transmission system. Only when the two match can power reach the wheels. For developers, when evaluating and using intelligent coding capabilities in the future, the focus needs to shift from “which model is stronger” to “which model and which engineering harness combination is stronger.” That is the variable that truly determines deployment outcomes.
