Why Model and Framework Combinations Matter in the Agent Era
This article explains why model scores alone can no longer predict real coding agent delivery, and why the combination of model and execution harness determines task success. It covers what a harness actually does, why most tokens are spent locating code rather than writing patches, what near-zero framework ranking correlation implies, how to design a trustworthy combination matrix evaluation, and practical engineering recommendations for retrieval, feedback loops, stopping conditions, and observability.
Introduction: From Choosing a Model to Choosing a Combination
In coding agent scenarios, one fact is becoming increasingly clear: model scores alone are no longer enough to judge real delivery capability. What actually determines whether a task succeeds is the overall combination of “model × execution harness.” A harness is the full set of engineering mechanisms wrapped around the model that drives it through multi-step tasks, including tool scheduling, context organization, code retrieval, execution feedback, and termination decisions.
Two observations from the original data stand out. After swapping the external harness, one model’s Pass@1 on a certain class of repository-level coding benchmarks rose from roughly 23% to roughly 52%; a smaller model rose from roughly 15% to roughly 36%. More importantly, the rank correlation of ten different harnesses across the two models was about -0.05, essentially no correlation. In other words, there is no universally best harness: a harness that performs best on model A may land at the bottom on model B.
This article does not focus on any specific product or project. Instead, it abstracts the phenomenon into a general engineering question: why does the harness matter so much, what exactly does it change, and how should teams redesign their evaluation and deployment strategy.
1. What an Execution Harness Actually Does
Breaking a coding agent system apart, the model is more like the “brain,” responsible for reasoning and generation, while the harness takes on the roles of “eyes, hands, workbench, memory system, and project manager” at the same time. After a user submits a task (for example, a repository bug description), the model by itself cannot actually open the repository, search the code, read files, modify files, run tests, read errors, revise again, inspect diffs, and confirm the fix. The harness is what chains these actions into a closed loop.
Its core responsibilities include at least four areas:
- Context management: deciding which parts of the message history are retained and which are compressed or dropped, directly affecting the model’s understanding of task state.
- Code retrieval and presentation: deciding which files and snippets the model sees first; retrieval quality determines whether the model can “see” the key clues.
- Tool and action orchestration: exposing capabilities such as reading files, searching, executing commands, and running tests to the model through stable interfaces, and parsing their output.
- Stopping conditions: judging when the task is complete; stopping too early leaves half-finished work, while stopping too late wastes budget and may even introduce regressions.
The harness is therefore not a “UI shell” but an amplifier that determines how much of the model’s intelligence can actually be realized. The same model receives different information, has different actions available, and gets feedback of different quality under different harnesses, so performance naturally differs by multiples.
2. Why Tokens Are Spent Mainly on Finding Code, Not Writing Code
A counterintuitive but important conclusion is that in coding agent systems, a large share of tokens is not used to generate the final patch but is consumed by reading, locating, and exploring the codebase. Related experiments show that under a certain lightweight harness paired with different models, read operations accounted for about 76.1% and about 67.5% of total token consumption.
This means that “how the model obtains context” is itself part of capability. If the retrieval strategy is crude, the model repeatedly reads large files, repeats searches, and wanders through irrelevant directories, producing large amounts of low-value context that both drive up cost and dilute key information, ultimately lowering the success rate. Conversely, good retrieval and context compression let the model hit the truly relevant code paths with fewer tokens.
The harness’s context assembly process can be understood with the following illustrative logic:
task = read_task_description()repo_index = build_or_reuse_code_index()candidates = retrieve(task, repo_index, top_k=8)context = compress(candidates, budget=model_context_window * 0.6)history = maintain_conversation_state(keep summaries of decisions and failed attempts)loop:action = model_decide(context + history + available_tools)result = execute(action)if stopping_condition_met(result): breakcontext, history = update(context, history, result)
Here top_k, the compression budget, the history retention policy, and the stopping conditions are all harness-level parameters, and different values can significantly change the performance of the same model.
3. What Near-Zero Ranking Correlation Means
If harnesses were only slightly better or worse than one another, harness rankings across different models should be highly consistent. But a near-zero correlation coefficient shows that there is strong coupling between harness and model. The reasons can be summarized in three points:
- Different instruction-following styles. Some models prefer concise instructions, while others are more stable in long contexts; the harness’s way of organizing prompts amplifies this difference.
- Different tool-calling habits. Models differ in their sensitivity to tool descriptions, parameter formats, and error messages, and the harness’s interface design determines whether they can call tools reliably.
- Different context capacity and compression preferences. A harness’s trimming strategy may happen to preserve or discard exactly the information a certain model relies on most.
The conclusion is direct: there is no universally strongest harness, and evaluation must be done per combination.
4. How to Design a Trustworthy Combination Evaluation
Teams are advised to upgrade evaluation from a “model leaderboard” to a “combination matrix,” with the following core practices:
- Build a two-dimensional matrix: candidate models as rows, candidate harnesses as columns, with each cell recording Pass@1, average tokens, average latency, and the distribution of failure types.
- Fix the task set and execution budget: unify repository snapshots, dependency environments, timeouts, and maximum steps to avoid budget differences contaminating the conclusions.
- Layered metrics: distinguish “localization accuracy,” “patch correctness rate,” “test pass rate,” and “regression introduction rate”; inaccurate localization is often the root cause.
- Multiple sampling: Pass@1 is sensitive to randomness, so run multiple times and report confidence intervals.
- Failure attribution: classify failures into retrieval failure, context loss, tool-calling failure, premature stopping, and genuine reasoning shortfall.
A simplified evaluation pseudocode is as follows:
for model in models:for harness in harnesses:results = []for task in tasks:run = run_combination(model, harness, task,budget=unified_budget, timeout=unified_timeout)results.append(analyze_result(run))record(matrix[model][harness], summarize(results))
5. Engineering Deployment Recommendations
- Prioritize retrieval and context: investing in code indexing, semantic retrieval, and context compression often yields more certain returns than switching models.
- Strengthen the feedback loop: feed test output, static checks, and diff views back to the model in a structured form to reduce blind edits.
- Design stopping conditions carefully: use “tests pass with no new warnings” as the main condition, backed by maximum steps and a budget cap.
- Build observability: use logging services and monitoring alerts to track token distribution, tool success rates, and per-stage latency, and to locate bottlenecks.
- Keep combinations replaceable: decouple model integration from harness capabilities so combinations can be selected dynamically by task type.
- Make good use of general cloud capabilities: container platforms host isolated execution environments, object storage holds repository snapshots and artifacts, and message queues smooth out task scheduling peaks.
Conclusion
The focus of coding agent evaluation is shifting from “model capability” to “combination capability.” When harness differences can produce multiples in pass rate and rankings are nearly uncorrelated, any conclusion about model quality that ignores the harness is no longer reliable. For developers and enterprises, the pragmatic path is to build a combination matrix evaluation, focus optimization on context and retrieval, refine feedback and stopping mechanisms, and keep iterating with observability. Only then can the value of coding agents be reliably realized in real business settings.
