Why AI Agent Evaluation Must Measure the Model × Harness Combination, Not the Model Alone
When evaluating coding agents, static benchmark scores no longer tell the whole story. This article explains why the object of evaluation has shifted from the model in isolation to the "model × harness" combination, presents controlled experiments in which swapping the harness alone doubled pass rates while cross-model harness rankings stayed almost uncorrelated, breaks down what a harness actually contains, and lays out practical guidance for versioned, reproducible, multi-framework agent evaluation.
1. The shift in evaluation perspective: from “model” to “model × harness”
For a long time, we judged a model’s capability with a set of static benchmark scores—higher score, stronger model. But this logic starts to break down in the coding agent scenario.
The reason is that the object of evaluation has changed. When we ask a model to independently complete a closed loop of “understand requirements, locate code, modify files, run tests, and keep fixing based on errors,” the model itself is just one link in the chain. It is wrapped in an execution framework (the harness) that builds prompts, orchestrates tool calls, manages context, executes code, collects errors, and drives the next iteration. The task success rate we finally observe is the combined result of the model’s capability after being amplified or attenuated by this framework.
So at the agent stage, what should really be evaluated is no longer the isolated model, but the “model × harness” combination. Understanding this is the starting point for re-understanding differences in agent performance.
2. A revealing controlled experiment
An evaluation team ran a persuasive controlled experiment, whose core conclusion is: swapping the model won’t necessarily change rankings, but swapping the harness can double the score.
The variable chosen in the experiment was exactly the outer execution framework, with the model held constant:
- A mid-sized dense model, by only changing the harness, raised its Pass@1 on a real bug-fixing benchmark from about 23% to about 52%;
- A mixture-of-experts model with small activated parameters, similarly by only changing the harness, improved from about 15% to about 36%.
The two models differ clearly in architecture and parameter scale, yet their response to “changing the framework” was highly consistent—both achieved a large jump. This shows that the gain from the framework is not a special case for one model, but a general pattern.
Even more concerning is a second set of data. The evaluation team scored and ranked two models across 10 different harnesses, then computed the correlation between the two rankings. The correlation coefficient was only -0.05, almost completely uncorrelated. In other words: the harness that performs best on model A may drop straight to the bottom of the leaderboard on model B.
This conclusion directly overturns the intuition that “a universal best framework exists.” The quality of a framework is relative to a specific model; the two have a strong interaction effect and cannot be judged in isolation.
3. What the harness actually includes
To explain this clearly, we first need to define the composition of the harness. It is not a single component but a whole “scaffolding” built around the model, usually including:
- Instruction and prompt construction: how to organize the task description, code context, available tools, and output constraints into an input the model can understand correctly.
- Context and memory management: across multiple turns, deciding what information enters the context window, how to trim history, and how to compress overly long content, so context does not bloat or key information does not get drowned out.
- Tool and function-call orchestration: defining the operations the model can invoke (read files, edit code, run commands) and translating the model’s intent into executable actions.
- Execution environment and sandbox: providing an isolated environment for code execution, ensuring safety and faithfully returning run results and error information.
- Error recovery and retry strategy: when the model makes a mistake or a tool fails, how to feed the failure signal back to the model, whether to retry, and the maximum number of iterations.
- Result verification and iteration loop: how to determine whether the task is truly complete, and how to drive the “generate–verify–fix” loop.
The following pseudocode intuitively shows how these “knobs” are embedded in the execution loop:
def run_agent(task, model, tools, max_steps=30):context = build_initial_context(task) # Instruction and prompt constructionfor step in range(max_steps):response = model.generate(context, tools=tools)if response.is_final: # Task judged as completereturn verify_and_return(task) # Result verificationaction = parse_action(response) # Tool-call orchestrationresult = execute_tool(action, sandbox=True) # Isolated executioncontext = append_observation(context, action, result)context = trim_context(context, strategy="sliding_window") # Context trimmingreturn run_verification_with_retry(task) # Verification + retry
In this loop, the value of max_steps, the context-trimming strategy, the definition of the tool set, and the verification and retry logic are all part of the harness. When they are combined differently, the level the model can actually deliver can vary enormously.
4. Why the harness has such a large impact
Once you understand the composition, you can understand why the framework has such a large effect on the final score.
First, the framework determines what the model can “see.” The model’s performance depends heavily on the quality of the input context. For the same codebase, if context trimming is done poorly—key files truncated, error messages dropped—even the strongest model can only “fix blindly.” Good context management is like giving the model a clearer pair of eyes.
Second, the framework provides a feedback loop for correcting the model’s output. A single model often lacks the ability to “get it right on the first run”; the real gap comes from multiple iterations. By faithfully returning run errors, driving the model to re-analyze, and modifying again, the framework turns a one-shot “generation” into a converging “generate–verify–fix” process. The presence or absence of this loop is often the key to whether Pass@1 can double.
Third, the framework amplifies subtle differences between models. Different models vary in their sensitivity to tool-call formats, instruction following, and error feedback. One framework may fit model A’s calling habits very well yet interfere with model B’s behavior patterns. This is exactly what explains the near-zero ranking correlation coefficient in the experiment—there is a strong interaction between framework and model, and the optimal combination is “paired out” rather than naturally existing.
5. Implications for evaluation methodology
This experiment imposes three direct requirements on evaluation practice.
- Evaluation conclusions must be bound to the harness. When reporting “model X reaches score Y,” you must also state which version and configuration of the framework was used; otherwise the score lacks comparability.
- The harness needs versioning and freezing. The framework itself is continuously iterated; without locking the version, two evaluations of the same model are not reproducible. It is advisable to put the framework configuration under version control, just as you manage code.
- Beware of single-dimension rankings. A leaderboard given by only one framework may seriously mislead technology selection. The optimal framework across models is not universal, and a single-point ranking cannot reflect real applicable scenarios.
6. Practical recommendations
For teams moving toward deployment, the following practices can make agent capability assessment closer to reality:
- Fix and version the execution framework: specify the framework version, tool set, and key parameters used in the evaluation to ensure results are reproducible and traceable.
- Cross-validate with multiple frameworks: run the target model through at least two frameworks of different styles, and observe the range of score fluctuation rather than trusting a single result.
- Focus on combinations, not single points: treat “model + framework” as a whole when selecting, pairing the right framework to different models instead of assuming one framework fits all.
- Consider both cost and stability: besides success rate, also record the average number of iterations, execution time, resource consumption, and failure rate, to avoid trading an extremely high cost for a good-looking one-time score.
- Continuous regression testing: after a framework upgrade or a model switch, re-run the evaluation, because the interaction effect means any change on either side may alter overall performance.
7. Conclusion
Evaluation in the age of coding agents is shifting from “which is the strongest model” to “which combination best fits my scenario.” The two facts—the same model doubling its score with a different framework, and framework rankings being nearly unrelated across models—together show that the harness is not an accessory to model capability but an equal variable that decides final success or failure. Acknowledging and valuing the “model × harness” combination effect, and replacing score-only thinking with versioned, reproducible, multi-dimensional evaluation, is the right way to make agent capability assessment truly reliable.
