The Evolution and Practice of Evaluating LLM Coding Capabilities

    High scores on public coding benchmarks often fail to predict real engineering performance. This article explains why benchmark saturation and data contamination undermine single-score evaluation, outlines the design of newer high-difficulty and isolated benchmarks, and details terminal and command-line agent evaluation with four key metrics. It closes with a reusable three-layer practice—task tiering, data isolation, and regression hardening—for building a reproducible private evaluation pipeline.

    1. The Starting Problem: Why “High Scores” Still Mean Poor Usability

    Many engineering teams have run into the same frustration: a model scores well on public code evaluation leaderboards, but once it is wired into a real development workflow, it frequently edits the wrong file, misses boundary conditions, and fails regression tests. This is not simply a case of “the model is bad.” It reflects a structural mismatch between how coding ability is measured and what real engineering work actually demands.

    Understanding this requires one premise: coding ability is not a single dimension. It spans at least requirement comprehension, code localization, cross-file modification, dependency reasoning, command execution, and test verification. A single score can only reflect performance on one class of tasks; it cannot cover the full development chain.

    2. The Capability Limits of Classic Code-Repair Benchmarks

    The code-repair evaluation long used in the industry was first proposed by a research institution in 2023. Its core idea was to extract tasks from real defects and merge requests across a large number of open-source repositories. Each task typically contains four elements: a real code repository, a text description of the defect or feature requirement, a pre-fix code snapshot, and test cases used for judgment. The model must read the requirement, locate the problem, modify the code, and ultimately make the tests pass.

    A later “human-filtered version” cleaned the original data by removing samples with vague descriptions, unstable tests, or disputed judgment criteria. The sample set was compressed to a few hundred entries, making results more stable and more credible. The value of such benchmarks is that they pull “writing code” back from an isolated, algorithm-puzzle-style activity into the real context of “making incremental changes within an existing project.”

    But problems soon surfaced. On one hand, as models iterate, most participating models now score above 80 on this class of benchmark. The metric is approaching saturation, discriminative power has dropped significantly, and only a very small number of top models still hold a clear lead. On the other hand, later reviews found two inherent flaws in the benchmark:

    • False negatives in judgment: the test cases of some tasks mark correct solutions as failures, causing scores to underestimate real capability;
    • Data contamination: public data may enter training corpora, so high scores do not come entirely from reasoning ability but partly from memorization.

    As a result, the industry has gradually reduced the weight of this benchmark in core evaluation and shifted toward harder, better-isolated alternatives.

    3. The Design of High-Difficulty Benchmarks: Difficulty and Isolation Together

    A new generation of high-difficulty code evaluations appeared in the second half of 2025. Its design logic can be summarized in two points.

    The first is lowering contamination risk. The public subset and the isolated subset generally adopt open-source licenses with strong copyleft terms. Any approach that wants to use the data must follow equivalent open-source obligations, which raises the cost—at the institutional level—of quietly folding evaluation data into training corpora.

    The second is raising task complexity. Tasks are no longer mostly “change a few lines.” Each task must modify at least ten lines of code, and a substantial share require changes of over a hundred lines, involving multi-file coordination and deeper dependency reasoning. As a result, scores across vendors have generally fallen below 60, with only a very small number of models clearing that bar.

    The direct takeaway: when a benchmark saturates, score differences no longer carry decision value, and model selection must switch to evaluation methods with higher discriminative power.

    4. Terminal and Command Line: An Underrated Real Capability

    The third class of evaluation focuses on an agent’s real execution ability in a command-line environment. It no longer examines only whether the model can “write correct code,” but whether it can complete a full sequence of actions in a real terminal: reading directory structure, searching files, installing dependencies, running scripts, iteratively fixing issues based on errors, and finally producing a usable result.

    This capability has a major impact on development efficiency, because real workflows rely heavily on command execution and feedback loops. Evaluation should focus on four metrics:

    1. Task completion rate: whether the goal is actually achieved, rather than only outputting steps that look reasonable;
    2. Step efficiency: the number of interaction rounds and commands needed to complete the same task;
    3. Error recovery: whether the model can self-correct when facing errors, timeouts, or permission problems;
    4. Safety: whether it runs destructive commands or changes critical configuration without confirmation.

    A sample evaluation record can look like this:

    1. task_id: terminal-017
    2. goal: Add a runnable command-line entry point to an existing project
    3. steps:
    4. - Read the project structure and identify the build method
    5. - Modify configuration and add the entry file
    6. - Run the build and self-test
    7. result: pass
    8. rounds: 6
    9. risk_events: 0

    5. A Reusable Evaluation Practice

    If a team wants to build its own evaluation system, the recommended path is “tiering + isolation + regression,” in three steps.

    Layer one: task tiering. Split tasks into three classes: small single-file fixes, medium cross-file changes, and end-to-end tasks that require command execution and debugging. Track the three separately so a total score does not mask weak spots.

    Layer two: data isolation. Build a private task set, prioritizing internal real defects and internal repositories, and keep a holdout set that is never made public, used to periodically detect contamination and overfitting.

    Layer three: regression hardening. Wire evaluation into the continuous integration pipeline and run it on every model or prompt-strategy change, producing a trend curve rather than a single-point score. Logging services and monitoring alerts can be added to cluster failure causes across evaluation tasks.

    Architecturally, an evaluation system typically consists of four parts: task scheduling, a sandboxed execution environment, result judgment, and a metrics dashboard. The sandbox can be built on a container platform to ensure environment consistency and resource isolation, and evaluation artifacts are archived uniformly to object storage for reproducibility and auditing.

    6. Selection Conclusion: From “Looking at Scores” to “Looking at Scenario Fit”

    Overall, a few stable judgments emerge:

    • A high public leaderboard score does not equal engineering usability; watch for saturation and contamination;
    • High-difficulty code benchmarks better reflect long-chain modification ability and are currently a more valuable dimension to reference;
    • Terminal execution ability is a key variable for real-world results and must be evaluated separately;
    • The best strategy is to build a private evaluation set aligned with your own codebase and toolchain, and to make decisions from trends rather than single-point data.

    For most teams, rather than chasing leaderboard rankings, it is better to invest effort in the infrastructure of “reproducible private evaluation + continuous regression.” In its related engineering practice, Baidu AI Cloud also recommends that enterprises build their own evaluation loop on foundational capabilities such as a general-purpose container platform, logging services, and monitoring alerts, bringing model selection back to real business returns.