Coding LLM Capability Gaps: Code Repair, Complex Changes, and Terminal Execution

    This article breaks coding LLM evaluation into three dimensions—real-world issue repair, high-difficulty engineering changes, and terminal/agent execution—and explains why leaderboard scores alone are unreliable. It also offers practical guidance for task-tiered model selection, private evaluation sets, development-loop integration, and cloud infrastructure.

    Coding capability cannot be judged only by whether a model can generate a piece of runnable code. The more important question is whether it can understand a defect in a real repository, locate the relevant files, make a minimal and correct change, and pass tests. Can it stay consistent on large tasks that span multiple files and involve hundreds of lines of changes? Can it act like a developer in a command-line environment—configure dependencies, run scripts, analyze logs, and correct its own errors? Quantifying the gap requires examining these three dimensions.

    1. Three Key Dimensions of Coding Capability Evaluation

    1. Real-world engineering repair capability

    This dimension simulates the closed loop of everyday software development: receive an issue, fix the defect, and submit a change. Tasks usually come from real issues in open-source repositories. The model needs to read the code repository, locate the relevant modules, analyze test expectations, and then modify code in a constrained environment. Classic benchmarks began to gain popularity around 2023. Later, manual filtering removed samples with vague descriptions, unstable tests, or ambiguous evaluation criteria, forming a more stable validation set.

    For these tasks, most mainstream models can already achieve high scores, even approaching the pass line. This does not mean coding tasks are solved; it only shows that single-file small repairs lack sufficient discriminative power. A deeper problem is that test cases may misjudge: some incorrect modifications can still pass tests, allowing a model to earn a score even without truly understanding the issue. In addition, many problems in public datasets have already been seen by models during training, so scores risk being overstated.

    2. High-difficulty engineering change capability

    To create more separation, the industry has introduced more difficult evaluation benchmarks. Their core changes are threefold. First, the amount of code required for a single task increases significantly; some tasks span multiple files and rewrite hundreds of lines. Second, data visibility is controlled through a public subset under a strong copyleft license and an isolated subset, reducing the impact of training-corpus contamination on scores. Third, tasks often contain more complex dependencies, historical compatibility constraints, and boundary conditions.

    Based on current public evaluation trends, overall scores on these benchmarks are far lower than in the previous dimension. Most models cannot stably exceed a certain pass line, though a few top models can cross it. This dimension better reflects the real gap in complex refactoring and cross-module consistency. A model that can fix three lines of code may struggle to complete a refactor involving dozens of function signatures.

    3. Terminal and agent execution capability

    This dimension moves from writing code to getting things done. The evaluation environment gives the model a command-line terminal and a series of tasks, such as installing dependencies, starting services, running tests, locating failure causes, modifying configuration, rerunning validation, and outputting reports. These tasks test not only code generation but also:

    • Tool calling: whether the model can correctly use terminal commands, version control, package managers, and debuggers;
    • Planning and decomposition: whether it can list steps and validate them progressively on long-horizon tasks;
    • Error recovery: whether it can read errors after a command fails and adjust its strategy;
    • Environment understanding: whether it can perceive the current directory, file state, processes, port usage, and similar conditions;
    • Stability and cost: whether repeated execution produces loops, hallucinations, or invalid commands.

    Terminal execution capability is the touchstone for moving from a coding assistant to an autonomous agent, and it best demonstrates whether a model really works like an engineer.

    2. How Large Is the Gap Across the Three Dimensions?

    If we look only at whether a model can write code, the gap between mainstream models may have narrowed to differences in language style. But from the perspective of the real engineering loop, the gap remains significant:

    • On classic repair tasks, top models generally enter the high-score range. The gap often appears in whether they can pass on the first attempt, whether they introduce new defects, and whether the changes are readable and maintainable.
    • On high-difficulty change tasks, overall scores are low. Top and mid-tier models show gaps of more than ten points or even larger, indicating that robustness on complex tasks remains unsolved.
    • On terminal execution tasks, the longer the task chain and the more realistic the environment, the faster models drop off. Behind this is a combined gap in reasoning, context management, tool-calling strategy, and long-term memory.

    At the same time, differences between configurations within the same model family matter. High-capability variants usually use more inference compute and are suited to difficult problems; lightweight variants emphasize low latency and high concurrency and are suited to assisting daily coding. If a high-capability variant and a lightweight variant are given the same task, the gap may be larger than the average gap between vendors. Therefore, there is no single answer to “how large is the gap.” It depends on task complexity, environment constraints, and latency/cost requirements.

    3. Why a Single Leaderboard Is Not Enough

    Data contamination is severe. Once a public evaluation set is covered by training corpora, a model may memorize answers, inflating scores. Even if the model has never seen the original problem, code styles and common repair patterns may still be memorized.

    Test cases have blind spots. Many benchmarks validate only final functionality, not code quality, performance, or security. A model may bypass tests through hard-coding or special branches, yet the result is not usable in practice.

    Scores saturate. Once most models approach full marks, the leaderboard loses discriminative power. At that point, a one-point difference may be random fluctuation and cannot be used as a basis for selection.

    The dimension is too narrow. Programming work also includes code review, documentation, debugging, operations scripts, database migrations, and more. A model that excels at algorithm problems may not excel at handling production incidents.

    4. How Developers and Enterprises Should Select and Deploy Models

    1. Select by task tier

    • Daily completion and single-function generation: prioritize lightweight models with fast response and controllable cost;
    • Complex defect localization and cross-file refactoring: choose models that perform robustly on high-difficulty benchmarks;
    • Automated operations and batch scripts: focus on terminal execution capability rather than code completion speed.

    2. Build your own evaluation set

    Do not rely blindly on public leaderboards. Extract historical issues from real business repositories, label correct solutions and regression tests, and build a private evaluation set. Also pay attention to fixed dependency versions, network isolation, timeouts, and human or dual testing to confirm that modifications are valid.

    A reference evaluation task configuration is shown below:

    1. {
    2. "task_id": "repo_issue_001",
    3. "environment": "isolated_container",
    4. "setup": ["run_setup.sh", "start_test_db.sh"],
    5. "validation": ["run_test_suite", "check_code_quality"],
    6. "constraints": ["offline", "no_external_api"]
    7. }

    Such a configuration ensures that tasks can be repeatedly executed in the same environment and makes it easier to collect failure logs and conduct human review.

    3. Put models into the development loop

    A coding assistant should not output only code snippets. A more reasonable approach is:

    1. Generate patch → Apply patch → Run unit/integration tests → Collect failure logs → Model self-correction → Human review

    This forms an observable, rollback-capable workflow. When a model makes a wrong decision, it must be possible to undo and replan rather than letting the error enter the main branch directly.

    4. Integrate with general cloud infrastructure

    For enterprise applications, model capabilities can be integrated with general cloud capabilities such as container platforms, logging services, monitoring and alerting, and code repository pipelines. For example, execute model-generated commands in isolated containers, record the input and output of each tool call through a logging service, and monitor resource consumption and failure rates. This can leverage model efficiency while ensuring security and auditability.

    5. Trend: From Code Generation to the Engineering Loop

    The core competition for coding LLMs will no longer be about who writes prettier code, but about who can complete development tasks more reliably. Evaluation will continue to evolve: from single-point problems to real engineering involving multiple files, steps, and tools; from offline code changes to online issue localization and automatic repair; from single generation to long-running, self-iterating operation.

    The gap will ultimately show up in failure rate and human intervention rate. Whoever can push up the execution success rate of complex engineering tasks will be the true coding leader.