Why Model and Framework Combinations Matter in the Agent Era
Choosing a coding agent is no longer about picking the single strongest model. This article explains why the evaluation unit should be the model-plus-harness combination, breaks down the five framework dimensions that drive large performance gaps, outlines a four-layer evaluation design, recommends metrics beyond pass rate, and describes a practical selection, rollout, and security workflow.
1. The Question Is Framed Wrong: We Have Been Evaluating Half a System
For the past two years, the most common question in technology selection has been: “Which model is stronger?” That question holds for single-turn Q&A and text generation, where the model is nearly the entire system. In agentic coding, that premise no longer holds.
An agentic coding system actually runs like this: receive a task description → search and read the repository → draft a modification plan → call tools to read and write files, run commands, and execute tests → observe results → revise the plan → iterate until validation passes. The model only handles the “decision and generation” stage. Everything else is handled by an external execution framework, commonly called a harness or agent runtime: how context is organized, how tools are defined, how failure information is fed back, when the loop terminates, and how concurrency and retries are handled.
This means the final score is the product of the two, not an attribute of the model alone. A public set of controlled tests makes the point: with the same model and only the outer harness swapped, Pass@1 on real repository-level repair tasks rose from about 23% to about 52%; a smaller model rose from about 15% to about 36%. More striking, the rank correlation of ten harnesses across the two models is about -0.05, essentially unrelated—the harness that performs best on one model may land last on another.
The conclusion is not the slogan “frameworks matter more than models,” but rather: the minimum unit of evaluation has changed.
2. Why Frameworks Produce Multiplicative Differences
The framework’s impact is not magic; it can be broken into five explainable dimensions.
Context budget and retrieval strategy. The hard part of repository-level tasks is “finding the few files that need to be read.” Stuffing everything in inevitably truncates, while pure vector retrieval easily misses call chains. The framework decides retrieval granularity, ranking, and whether to re-retrieve after a failure, which directly determines whether the model sees the key evidence.
Clarity of the tool contract. Whether tool names, parameter schemas, and return structures are stable determines whether the model can form correct calling priors. Whether return values are plain text, structured objects, or carry error codes significantly changes the model’s error-correction efficiency.
Quality of the feedback loop. Whether test failure information is passed back verbatim or is trimmed, aggregated, and localized to a specific assertion makes a huge difference. High-quality feedback turns “guess-based code changes” into “evidence-based fixes.”
Loop control and termination conditions. Maximum rounds, repeated-action detection, no-progress exit, and budget-exhaustion policy determine whether the model converges or spins in place.
State and concurrency management. Consistency of multi-file changes, rollback capability, and how parallel subtasks are merged affect completion rates on long tasks.
Put these five together and the “uncorrelated ranking” phenomenon makes sense: different models have different strength distributions. Some models use long context well and benefit from aggressive retrieval; some follow tool-call formats well and benefit from complex tool sets; some are less robust under weak feedback and must rely on structured error reporting. There is a clear fit relationship between harness and model, not a universal better-or-worse.
3. Redesigning Evaluation Around the “Combination”
Reliable decisions require a layered evaluation plan.
Layer 1, model baseline. Use a fixed minimal execution environment to measure the model’s own capability ceiling—for example, given the files and a failing assertion, allow only a single patch output. This layer removes the framework variable.
Layer 2, harness ablation. Fix the model and swap harnesses one by one, observing the score range and variance. The focus is not the top score but the distribution: mean, worst case, and the probability of reaching a given threshold.
Layer 3, cross matrix. Run the full combination of multiple models × multiple harnesses, and compute rank correlation and interaction effects. If the correlation is near zero, selection must be done per combination; others’ conclusions cannot be reused.
Layer 4, real regression. Build a private set from your team’s historical tickets, covering different languages, build systems, and failure types, to avoid bias from differences between public leaderboards and internal code style.
An illustrative way to organize the evaluation matrix:
candidates = [model_a, model_b, model_c]harnesses = [h1, h2, h3, h4]matrix[model][harness] = run_suite(tasks, model, harness, repeats=3)# Output: mean, variance, pass-rate confidence interval, rank correlation
Three engineering practices are worth emphasizing. The task set must be stratified, split by “localization difficulty × modification scope × verification cost,” otherwise the total score is diluted by a large number of easy samples. Runs must be repeated and variance reported; agentic coding tasks are highly random, and a single result has almost no reference value. Scoring must be automated; relying on human judgment introduces inconsistency and cannot support the experiment volume a matrix requires.
4. Metrics Should Go Beyond Pass Rate
A single Pass@1 hides cost problems. Add at least four categories of metrics.
Effectiveness: Pass@1, Pass@k, and “partial correctness rate” (for example, the share where tests pass but style does not match).
Efficiency: average rounds, number of tool calls, token consumption, end-to-end latency. Two combinations both at 50% pass rate may differ in cost by several times.
Stability: variance across random seeds, and failure-mode clustering (localization errors, compile failures, unmet assertions, timeouts).
Operability: log traceability, failure reproducibility, and whether permission and sandbox isolation are complete. In enterprise adoption, this group is often a veto item.
5. Selection and Rollout Process
A repeatable loop is recommended: first use public tasks for coarse screening, keeping three or four candidate combinations; then use an internal private set for fine testing, narrowing to one or two; then observe real pass rate and cost in a small-traffic canary; finally freeze it as a regression baseline, running the matrix on every model or harness upgrade to prevent capability regression.
Architecturally, make the execution framework a replaceable layer, isolating model calls, tool registration, and sandbox execution behind a unified interface, so business code is not tightly coupled to a specific framework. Reusable general cloud capabilities include container platforms (hosting isolated sandboxes), object storage (storing task and patch artifacts), message queues (decoupling long-task scheduling), and logging services with monitoring and alerting (observing cost and failure rate). These are general categories; refer to each cloud provider’s official documentation for specific implementations.
Security boundaries must also be set up front: least-privilege tokens, read-only by default, a write-operation allowlist, network egress restrictions, and rollback-able changes. The essence of an agentic coding system is “letting the model take actions in your codebase,” and the risk of poor permission design is far higher than that of missing effectiveness targets.
6. Common Pitfalls
First, copying others’ leaderboard conclusions while ignoring model-harness fit; second, testing only public sets, which systematically amplifies or masks internal style differences; third, treating a single result as a conclusion and ignoring high variance; fourth, optimizing only pass rate and ultimately being dragged down by inference cost and human review cost; fifth, coupling the framework with business logic, making upgrades difficult.
7. Conclusion
In the agentic coding stage, the right question shifts from “which model is strongest” to “under my task distribution, cost constraints, and security boundaries, which combination of model and execution framework is most stable.” Make the evaluation unit the combination, expand metrics from a single point to multiple dimensions, and make the framework a replaceable layer—do these three things, and selection turns from experience-based judgment into an engineering conclusion.
