Evaluating Coding Agents: Why Models and Runtime Frameworks Must Be Assessed Together

    Coding agent performance depends not only on the underlying model, but also on the runtime framework that manages context, tools, execution, recovery, and termination. This article explains why the evaluation target has shifted from isolated models to model–framework combinations, how framework–model interaction affects rankings, and how to build reproducible evaluation systems for engineering decisions.

    1. The Evaluation Target Has Changed

    In traditional model evaluation, the model is treated as a relatively independent subject: provide an input, observe the output, and calculate accuracy, pass rate, or human ratings. This perspective becomes inadequate for coding agents.

    A coding agent does not simply answer a question directly. Instead, the model repeatedly executes a loop:

    understand the task → plan the next steps → call tools → read results → revise the approach → decide whether to stop

    The runtime framework determines what context the model can see, which tools it can use, how failures are handled, when execution stops, and how the final result is judged.

    As a result, when the same model shows significantly different performance after switching runtime frameworks, this should not be dismissed as test noise or benchmark instability. The evaluation target has effectively changed from an individual model to a combined system:

    model × runtime framework

    Public experiments have shown that the same model can achieve very different pass rates under different frameworks. They have also shown that framework rankings across different models can have near-zero or even negative correlation.

    The key lesson is not the simplistic conclusion that “the framework matters more than the model.” Rather, these results show that in coding-agent scenarios, model capability cannot be evaluated independently of the runtime framework. Conclusions drawn from one framework may not transfer to another.

    2. What Does a Runtime Framework Actually Change?

    A runtime framework is more than a wrapper around a model. It can reshape model behavior across several dimensions.

    2.1 Context Construction and Compression

    Coding tasks often involve multiple files, several rounds of edits, and long interaction histories. The framework’s choices about the initial context, irrelevant-file removal, history compression, and error feedback after failures directly affect the model’s decisions.

    For example, one framework may preserve the latest compilation error in full, while another may keep only a summary. One may proactively retrieve relevant files, while another may require the model to infer which files it needs.

    Different context strategies give the model different views of the task environment.

    2.2 Tool Interfaces and Execution Environments

    Tool definitions, parameter schemas, return formats, error codes, file-system permissions, dependency installation methods, and sandbox isolation can all affect task completion rates.

    Clear tool descriptions and structured results make it easier for a model to produce reliable calls. Ambiguous interfaces or incomplete error messages can turn framework limitations into what appears to be a model failure.

    The execution environment also matters. Reproducibility, preinstalled dependencies, and network restrictions can cause the same model to perform very differently across frameworks.

    2.3 Planning Loops and Error Recovery

    Some frameworks use single-step execution with immediate feedback. Others encourage the model to create a plan before making changes. Some automatically roll back and retry after test failures, while others allow only a limited number of corrective attempts.

    Error recovery is especially important because coding tasks naturally involve compilation failures, test failures, and localized fixes. A framework’s ability to convert failure signals into actionable next steps may determine the final pass rate more strongly than the quality of any single model-generated response.

    2.4 Constraints, Termination Conditions, and Evaluation Logic

    Maximum steps, timeouts, whether test files may be modified, whether a patch must be generated, and when a task is considered complete can all change evaluation results.

    Overly permissive termination conditions may allow an agent to declare success too early. Overly strict conditions may cause it to spend its remaining steps on irrelevant details. If the evaluation logic does not match the actual engineering objective, it may either exaggerate or conceal differences between models.

    2.5 Observability and Retry Mechanisms

    The final metrics are also affected by whether the framework records intermediate states, classifies tool errors, provides fallback behavior after timeouts, or samples the same task multiple times.

    Without sufficient observability, it is difficult to determine whether a failure was caused by insufficient model capability or by a framework design flaw.

    3. Weak Ranking Correlation Reveals Interaction Effects

    When framework rankings have low correlation across different models, this indicates a significant interaction effect between models and frameworks.

    A context strategy, tool description, or retry mechanism that works well for one model may not work equally well for another. Different models have different sensitivities to instruction length, tool-call formats, error-feedback density, and planning granularity.

    One model may benefit from long-context reasoning, while another may perform better with short and explicit tool outputs. One model may improve with repeated retries, while another may become confused as the interaction history grows.

    This leads to two important conclusions.

    First, a model’s score under a particular framework should not be treated as an absolute measure of its inherent capability.

    Second, the best framework configuration for one model should not automatically be transferred to other models.

    Model selection should treat the following as a joint configuration:

    model × runtime framework × task distribution

    Teams should use cross-evaluation to identify stable combinations rather than relying on a single leaderboard ranking.

    4. How to Build a Combined Evaluation System

    4.1 Define the Minimum Evaluation Unit

    An evaluation report should record at least the following:

    • Model version
    • Runtime framework version
    • Tool set
    • Context strategy
    • Maximum number of steps
    • Timeout settings
    • Task-set version
    • Evaluation-script version

    Only when these variables are included in the evaluation unit can the results be interpreted reliably.

    4.2 Use Controlled Variables and a Cross-Evaluation Matrix

    A matrix-based evaluation is recommended. Keep the task set and evaluation logic fixed while covering multiple models and runtime frameworks. Then evaluate key configuration switches across the matrix.

    For each combination, report metrics such as:

    • First-attempt pass rate
    • Pass rate across multiple samples
    • Average number of steps
    • Average execution time
    • Tool-call failure rate
    • Human intervention rate

    Do not report only a single average. Include confidence intervals and results segmented by task category.

    4.3 Perform Ablation Studies and Classify Failures

    When a combination produces unexpected results, perform ablation studies. For example:

    • Remove context compression
    • Replace tool descriptions
    • Disable automatic retries
    • Reduce the maximum number of steps

    Then observe how each change affects the metrics.

    Failure categories should distinguish at least between:

    • Misunderstanding the task
    • Incorrect file or code localization
    • Tool-call errors
    • Environment or dependency failures
    • Incorrect test judgments
    • Premature termination
    • Exhausted timeout or step limits

    Only a clear failure structure makes it possible to determine whether the primary issue lies with the model or the framework.

    4.4 Ensure Reproducibility

    Evaluation environments should be containerized or snapshot-based. Task dependencies, test commands, and evaluation logic should be version-controlled.

    Each evaluation should retain the complete execution trace, including:

    • A summary of the input context
    • The sequence of tool calls
    • Key tool outputs
    • The final patch

    Without execution traces, an evaluation can produce a score but cannot provide the information needed for engineering improvements.

    5. Recommendations for Engineering Adoption

    First, create an adapter layer for runtime frameworks. Separate model invocation, tool registration, context construction, execution environments, and evaluation logic so that the evaluation code does not become tightly coupled to a single framework.

    Second, establish regression gates. Model upgrades, framework changes, and tool-schema modifications should all trigger combined regression tests against historical baselines.

    Third, include cost and latency in model selection. A higher pass rate may not be suitable for production if it requires an unacceptable number of steps, excessive latency, or excessive tool-call costs.

    Fourth, use staged rollout and online observability. Even after a combination passes offline evaluation, monitor failure rates and human takeover rates on real-world task distributions.

    A simplified example is shown below:

    1. def evaluate_combo(model, runtime, tasks):
    2. results = []
    3. for task in tasks:
    4. env = runtime.reset(task)
    5. ctx = runtime.build_context(task)
    6. for step in range(runtime.max_steps):
    7. action = model.decide(ctx, tools=runtime.tools)
    8. observation = runtime.execute(action, env)
    9. ctx = runtime.update_context(ctx, observation)
    10. if runtime.should_stop(observation):
    11. break
    12. results.append(runtime.judge(env, task))
    13. return aggregate(results)

    The purpose of this pseudocode is not to prescribe a specific implementation. It highlights that an evaluation must fix the model, runtime framework, task set, and evaluation logic together, while preserving observations from every step.

    6. Conclusion

    The central change in coding-agent evaluation is the shift from evaluating models in isolation to evaluating the combination of models and runtime frameworks.

    Large performance differences for the same model across frameworks, along with weak framework-ranking correlations across models, are normal expressions of the complexity of combined systems.

    For enterprises and developers, a more reliable approach is to build a combined evaluation matrix, control variables, perform ablation studies, classify failures, preserve reproducible execution traces, and include cost, latency, and maintainability in selection criteria.

    Only by doing so can teams avoid being misled by a single leaderboard and turn evaluation results into practical engineering decisions.