LLM Coding Ability Evaluation: SWE-Bench Verified, SWE-Bench Pro, and Terminal Bench 2.0

    As LLMs are increasingly used for code generation, bug fixing, and agent automation, teams need reproducible benchmarks to compare coding ability. This article reviews three major benchmarks—SWE-Bench Verified, SWE-Bench Pro, and Terminal Bench 2.0—explaining what each measures, how they are designed, what their limitations are, how to interpret score gaps, and how developers and enterprises can build a multidimensional evaluation framework for model selection.

    1. Introduction: Why Coding Ability Comparisons Need Benchmarks

    As large models are increasingly applied to code generation, defect repair, agent automation, and similar scenarios, “which model has stronger coding ability” has become one of the key questions for developers and enterprises when selecting models. However, subjective user experience is often affected by task type, prompt style, sampling randomness, and other factors, making reliable conclusions difficult to form. The common industry practice is to rely on standardized benchmarks and use reproducible, comparable quantitative metrics to characterize a model’s real engineering capability.

    At present, three mainstream coding ability benchmarks are SWE-Bench Verified, SWE-Bench Pro, and Terminal Bench 2.0. They focus on different areas: the first two emphasize the ability to “fix real software engineering problems,” while the latter emphasizes agent ability to “autonomously execute tasks in a terminal environment.” Understanding their design principles and limitations is a prerequisite for correctly interpreting model results and judging the real gaps between models.

    2. SWE-Bench Verified: A Classic but Increasingly Saturated Benchmark

    2.1 Design Principles

    SWE-Bench Verified is a classic benchmark that has long been used in the industry. Its tasks all come from issues and pull requests in real open-source projects. Each task usually contains the following elements:

    • A real code repository snapshot, representing the version before the fix;
    • An issue text describing a bug or feature requirement;
    • A corresponding set of test cases.

    The model needs to read the issue, locate the relevant code, complete the modification, and make the test cases pass before the task is considered solved. This process is highly close to daily software engineering work, so it is widely recognized.

    2.2 What “Verified” Means

    The original SWE-Bench tasks vary in quality and include problems such as vague descriptions and unstable tests. The “Verified” version adds manual review and cleaning on top of the original version. After removing unqualified samples, it retains about 500 high-quality tasks, making evaluation results more stable and credible.

    2.3 Saturation and Contamination Issues

    As model capabilities improve rapidly, most mainstream models now achieve pass rates above 80% on this benchmark, and the metric is clearly approaching saturation—models with similar scores are difficult to distinguish. In addition, the benchmark has been noted to have two types of defects:

    1. Some task test cases misjudge correct solutions, causing distorted scores;
    2. Training data contamination risk: because tasks come from public repositories, models may have seen related code and fix patches during training.

    Therefore, the industry has gradually stopped using it as a core evaluation standard and has turned to newer benchmarks that are more difficult and more resistant to contamination.

    3. SWE-Bench Pro: A More Difficult and More Contamination-Resistant Advanced Benchmark

    SWE-Bench Pro can be seen as a high-difficulty evolution of the Verified version, with improvements mainly reflected in two areas.

    3.1 Reducing Data Contamination Risk

    In its dataset design, this benchmark uses strong copyleft licenses, such as GPL-family licenses. Both the public subset and the held-out subset use license constraints to reduce the likelihood of data entering training corpora, thereby improving the authenticity of evaluation results.

    3.2 Significantly Increasing Task Difficulty

    Its task scale threshold is much higher than that of older benchmarks:

    • Each task requires at least 10 lines of code changes;
    • More than 100 tasks require changes to more than 100 lines of code.

    This means models cannot get by with “one-line patch” local repairs; they must truly understand cross-file and cross-module code structure and make larger-scale coordinated modifications. Because of this, current model scores on this benchmark are generally below 60, with only a very small number of top models crossing the 60-point threshold. Its discriminative power is much higher than that of older benchmarks.

    3.3 How to Interpret Score Gaps

    On a high-difficulty benchmark, a gap of a few percentage points often implies a substantive difference in capability:

    • Near or above 60: The model can handle complex, large-scale code modifications and can be used for more demanding engineering tasks;
    • 50–60 range: The model can stably handle medium-complexity tasks and represents the main level of current open-source and commercial models;
    • Below 50: The model still tends to make errors in long-chain modifications and multi-file coordination, requiring human fallback.

    Measured by this benchmark, the gap between current leading open-source models and the most advanced closed-source models is roughly on the order of 5–15 percentage points, and the gap becomes more obvious on higher-difficulty tasks.

    4. Terminal Bench 2.0: Evaluating Agent Ability in Terminal Environments

    The first two benchmarks evaluate the ability to “produce a patch,” while Terminal Bench 2.0 focuses on another dimension: the ability of a model, as an agent, to autonomously complete tasks in a real command-line/terminal environment.

    A typical task flow includes:

    1. The agent enters an isolated shell environment;
    2. It autonomously explores the environment, installs dependencies, writes scripts, and runs commands;
    3. A series of check scripts verify whether the final state meets the requirements.

    This type of evaluation better reflects the model’s comprehensive ability in the following areas:

    • Tool invocation and command proficiency: Whether it can correctly use common command-line toolchains;
    • Long-horizon planning and error recovery: Whether it can autonomously diagnose and retry after a command fails;
    • Environment awareness: Whether it can understand the current system state by reading files and logs.

    For teams that want to use models for CI/CD automation, operations scripts, development environment configuration, and similar scenarios, Terminal Bench-style evaluation is more relevant than pure code repair benchmarks.

    5. Building a Scientific Model Evaluation Framework: Recommendations for Developers and Enterprises

    Scores from a single benchmark are not enough to fully characterize model capability. It is recommended to evaluate models comprehensively from the following dimensions:

    1. Match the benchmark to the scenario: For code repair selection, use SWE-Bench Pro; for agent automation selection, use Terminal Bench;
    2. Focus on performance on high-difficulty subsets: Small score differences on saturated benchmarks are not statistically meaningful;
    3. Be alert to data contamination: Prioritize results that use isolated data and recently released tasks;
    4. Combine with internal evaluations: Use real internal tickets and private code repositories to build a small-scale internal benchmark, which is often closer to actual needs than public leaderboards;
    5. Examine engineering metrics: In addition to pass rates, pay attention to deployment factors such as inference cost, response latency, context length, and concurrency stability.

    A simple internal evaluation process can be referenced as follows:

    1. 1. Sample 30–50 recent real defect tickets (anonymized)
    2. 2. Build a runnable test environment for each ticket
    3. 3. Use consistent prompts and sampling parameters; run multiple rounds and average the results
    4. 4. Track pass rate, average lines changed, and manual rework rate
    5. 5. Analyze strengths and weaknesses by task type

    6. Conclusion

    From the saturation of SWE-Bench Verified to the differentiation provided by SWE-Bench Pro, and then to Terminal Bench 2.0 filling in the agent dimension, the coding ability evaluation system is continuously evolving. For developers and enterprises, the important thing is not to memorize a particular leaderboard ranking, but to understand what each benchmark “measures and does not measure,” and then build a multidimensional evaluation system based on their own business scenarios. Only in this way can they make truly reliable technical selection decisions.