Evaluating Coding Agents: Look Beyond the Model to the Combination
The evaluation of coding agents has shifted from assessing standalone models to evaluating composite systems that integrate models with execution frameworks. This article explores why execution frameworks can cause multi-fold differences in Pass@1 scores and why framework rankings often fail to transfer across different models. It outlines how to build a "Model x Execution Framework" evaluation matrix, establish a continuous evaluation pipeline, and provides a practical checklist for engineering teams to select the right coding agent system for their specific scenarios.
Evaluating Coding Agents: Look Beyond the Model to the Combination
1. The Core Shift: From Evaluating Models to Composite Systems
In traditional model evaluation, we are accustomed to treating the model as a relatively independent subject under test: given an input, observe the output, and calculate accuracy, pass rate, or human preference score. In the era of coding agents, this perspective begins to fail. Whether a coding agent can complete a task depends not only on the underlying model’s generation capability but also on how the outer execution framework organizes context, exposes tools, parses actions, runs tests, retries based on feedback, and determines when to terminate.
Therefore, the more reasonable evaluation target is not a single “model,” but a combination:
Final Performance = f(Model, Execution Framework, Task Distribution, Runtime Environment, Evaluation Criteria)
A noteworthy phenomenon has appeared in public experiments: simply replacing the outer execution framework for the same model can boost Pass@1 on a software engineering benchmark for code repair from approximately 23% to 52%; another model jumped from 15% to 36%. More critically, the rank correlation coefficient of multiple execution frameworks across two models approached zero. This means the best framework for Model A might drop to the bottom when switched to Model B.
The crucial takeaway from these phenomena is not the simplistic conclusion that “frameworks matter more than models,” but rather that in the coding agent stage, single-model leaderboards are no longer sufficient to support engineering selection. We need to evaluate the combined effect of “Model × Execution Framework” and verify the stability of this effect under specific task distributions and runtime environments.
2. Why Execution Frameworks Cause Multi-Fold Differences
An execution framework is not merely a “prompt wrapper.” It defines the interaction contract between the agent and the codebase, toolchain, and test environment. The following mechanisms significantly impact the final pass rate.
1. Tool Interface and Action Space Design
Models need to know what tools are available, how to fill in parameters, and how to interpret return values. If tool descriptions are vague, parameter constraints are unclear, and error messages are unreadable, a model with the right knowledge may still fail to perform effective operations. Conversely, clear tool contracts, stable return structures, and recoverable error prompts can significantly reduce the rate of invalid actions.
2. Context Management and Information Compression
Code repair tasks often involve multiple files, long call chains, and extensive test outputs. How the execution framework selects files, truncates logs, summarizes failure information, and retains key state across multi-turn interactions directly affects the model’s ability to locate issues. A larger context window is not always better; the key is allowing the model to see the most relevant information for the current decision within a limited context.
3. Planning, Retry, and Termination Strategies
The same model can perform completely differently between a “one-shot patch generation” and a “generate-execute test-read failure-fix-re-execute” loop. Retry limits, failure classification, rollback strategies, and termination conditions all alter the final result. Over-retrying can amplify errors, while premature termination may miss repair opportunities.
4. Patch Format and Verification Loop
A coding agent must ultimately produce applicable, compilable, and test-passing changes. Whether the execution framework enforces patch formats, performs syntax checks, runs target tests, isolates failed cases, and prevents irrelevant modifications all impact Pass@1. A framework with a verification loop can transform some generation risks into observable, correctable engineering issues.
5. Sandbox Isolation and Environment Consistency
Inconsistent runtime environments introduce significant noise. Dependency versions, file permissions, test data, timeout settings, and network isolation all affect results. If the execution framework cannot provide a stable sandbox and a reproducible environment, the evaluation results become difficult to compare.
3. Implications of Near-Zero Rank Correlation
Near-zero rank correlation means “framework rankings” are almost non-transferable across different models. This stems from clear interaction effects: a particular framework’s prompt structure, tool protocol, or retry strategy might perfectly align with one type of model’s output habits; when switched to another model, this alignment no longer holds.
For engineering teams, this leads to three direct conclusions:
First, do not make general selections based on framework rankings from a single model. A framework leading on Model A does not mean it will lead on Model B.
Second, do not simply attribute framework gains to model capabilities. The improvements brought by the framework may come from tool contracts, verification loops, or context management, rather than the model itself becoming stronger.
Third, selection must be scenario-based. Code completion, single-file bug fixing, multi-file refactoring, test generation, and defect localization have different requirements for execution frameworks, leading to varying combination rankings.
4. Establishing a “Model × Execution Framework” Evaluation Matrix
To implement composite evaluation, it is recommended to use cross-matrix experiments rather than single-point comparisons. The core principle is: fix the task set and environment, cross models and execution frameworks, repeat runs, and record complete traces.
experiment:models: [model_a, model_b, model_c]harnesses: [harness_a, harness_b, harness_c]tasks:- single_file_bug_fix- multi_file_refactor- test_generationmetrics:- pass_at_1- pass_at_k- cost_per_task- latency_p95- invalid_action_raterepeats: 5seed: 42environment_lock: true
The experimental design should include at least the following layers:
- Variable Control: Lock model versions, execution framework versions, task set versions, dependency environments, and timeout settings.
- Repeat Runs: Generative systems exhibit variance. Single-run results are insufficient for ranking. Report means, confidence intervals, and failure distributions.
- Task Stratification: Segment statistics by difficulty, file count, language, and test coverage to prevent overall averages from masking local differences.
- Cost Metrics: In addition to Pass@1, track token consumption, tool call count, end-to-end latency, and human intervention rate.
- Trace Logs: Save actions, tool returns, error messages, retry reasons, and final patches for each turn to facilitate failure attribution.
- Ablation Analysis: Disable modules like retry, verification loops, or context compression individually to determine the source of gains.
5. Engineering Implementation: Making Evaluation a Continuous Pipeline
When deploying an evaluation pipeline on cloud platforms like Baidu AI Cloud, you can utilize general capabilities such as container platforms, object storage, logging services, and monitoring alerts to ensure environment reproducibility, trace retention, and result observability. Engineering-wise, it is recommended to divide the evaluation into four layers:
- Task Layer: Maintain versioned task sets, annotating difficulty, language, dependencies, and expected tests.
- Execution Layer: Create isolated sandboxes for each “Model × Framework” combination, locking dependencies and timeouts.
- Observation Layer: Collect pass rates, costs, latency, invalid action rates, failure types, and complete traces.
- Gate Layer: Integrate regression results of key combinations into release gates to prevent hidden degradations caused by framework upgrades.
Be particularly wary of overfitting benchmarks. If an execution framework implements excessive special handling for the evaluation set, short-term pass rates will rise, but it may fail when migrated to real codebases. Therefore, the evaluation set should retain a certain proportion of private tasks and online backflow tasks, and be updated regularly.
6. Common Pitfalls and Selection Checklist
Common pitfalls include: looking only at single-model leaderboards; ranking based on single-run results; ignoring framework version differences; tracking only Pass@1 while ignoring cost and latency; blaming the model for all failures; and drawing universal conclusions from a single task type.
A more robust selection checklist is:
- Define business task distribution and success criteria.
- Select 2-3 candidate models and 2-3 candidate execution frameworks for a cross-matrix.
- Repeat runs for each combination and report confidence intervals.
- Compare by task stratification rather than just overall averages.
- Simultaneously evaluate pass rate, cost, latency, stability, and maintainability.
- Conduct ablation experiments on leading combinations to confirm the source of gains.
- Establish continuous regression gates; re-validate after framework or model upgrades.
Conclusion
The core shift in coding agent evaluation is moving from “evaluating models” to “evaluating composite systems.” The multi-fold differences in Pass@1 for the same model across different execution frameworks, coupled with the near-zero transferability of framework rankings across models, demonstrate that single-model leaderboards can no longer answer engineering selection questions. A more professional approach is to build a cross-evaluation matrix of “Model × Execution Framework × Task × Environment,” supported by reproducible environments, repeated experiments, stratified metrics, and trace logs. Only by including the execution framework in the tested system can evaluation results truly guide the selection, optimization, and continuous delivery of coding agents.
