Evaluating Coding Agents: Why Models and Frameworks Must Be Assessed Together
This article explains why model-only leaderboards can be misleading for coding agents, since an agent's execution framework (harness) shapes context, tool use, retries, and validation. It covers four technical sources of performance differences, proposes a two-dimensional evaluation matrix of models and frameworks with key metrics, and offers practical guidance for reproducible, transferable evaluation pipelines.
1. The Starting Problem: Why Model-Only Scores Can Be Misleading
As coding agents move into mainstream engineering workflows, a recurring pattern appears: a model’s rank on a capability leaderboard often does not match its performance on real repository-level tasks. The reason is straightforward—models never run in isolation. They are wrapped in an execution framework responsible for context assembly, tool invocation, failure retries, and result validation (an agent harness). This layer determines what the model sees, what it can do, and how it continues after a failure.
A public test illustrates the point: for the same model, simply swapping the surrounding execution framework raised the first-attempt pass rate on a code-repair benchmark from about 20% to around 50%; a smaller model improved from roughly 15% to 35%. More notably, the rank correlation of ten frameworks across the two models was close to zero, meaning the best framework for model A could land at the bottom for model B.
This is not a simple conclusion that “frameworks matter more than models.” Rather, the object of evaluation has shifted: at the agent stage, delivery quality is determined by the combination of model × execution framework.
2. Where the Differences Come From: Four Explainable Technical Sources
First, context construction strategies differ. Code tasks require cross-file and cross-version understanding, so retrieval granularity, pruning rules, and whether call chains are preserved can significantly change the model’s effective input.
Second, tool and action spaces differ. Whether the agent can edit precisely, run tests, and roll back determines whether the model spends its capacity on reasoning or on guesswork.
Third, failure recovery mechanisms differ. Frameworks with a compile/test feedback loop turn a single generation into multiple rounds of convergence; frameworks without feedback rely more on single-shot luck.
Fourth, termination and validation conditions differ. When a task is judged complete directly affects the first-attempt pass rate metric itself.
Together, these four points explain why rankings get reshuffled: a framework is not a neutral container—it changes the problem distribution the model faces.
3. Methodology: Expanding Evaluation from a Single Point to a Matrix
Organize evaluation as a two-dimensional matrix: rows are models, columns are execution frameworks, and each cell records metrics with confidence intervals. A schematic flow:
# Pseudocode: combined evaluation matrixmodels = ["m1", "m2"]harness = ["h1", "h2", "h3"]matrix = {}for m in models:for h in harness:runs = [evaluate(m, h, task_suite, seed=s) for s in seeds]matrix[(m, h)] = {"pass_at_1": mean(runs),"ci95": bootstrap_ci(runs),"cost": avg_tokens(runs),}rank_corr = spearman(rank(matrix, "m1"), rank(matrix, "m2"))
Key metrics should include at least first-attempt pass rate, average number of interaction turns, token and time cost, and cross-model rank correlation. When the correlation is close to zero, any claim of a “universally best framework” should be treated as invalid.
4. Practical Guidance: Making Conclusions Reproducible and Transferable
First, fix the task suite and random seeds to separate capability differences from sampling variance. Second, use stratified sampling that covers different languages, repository sizes, and dependency complexity to avoid spurious conclusions from a skewed task distribution. Third, record complete traces so failures can be attributed to specific stages in retrieval, editing, or validation. Fourth, establish a regression baseline so that any change to the framework or model triggers a matrix recomputation.
At the infrastructure level, container platforms can ensure environment consistency, object storage can archive traces and artifacts, and logging services with monitoring and alerting can track cost and stability. Baidu AI Cloud offers corresponding categories for these common capabilities, making it easier to engineer the evaluation pipeline.
5. Conclusion
Effect evaluation for coding tools is shifting from a model-centric view to a combination-centric one. For developers, the most practical approach is not to ask which model is strongest, but to build your own two-dimensional evaluation matrix, replace intuition with correlation checks, and replace one-off benchmark runs with reproducible pipelines. Only then do selection conclusions carry transferable value.
