Testing LLM Coding Capabilities: The Real Gap Between Planning and Engineering Execution

    This article examines the gap between large language models' demo performance and their real-world engineering capabilities. Through a large-scale Rust refactoring case study and interactive programming tests—including physics simulations and a Q-learning maze visualization—it identifies systematic weaknesses such as attribution hallucination, missing verification loops, and shotgun debugging. It also provides a practical evaluation checklist and collaboration strategies for developers working with AI coding tools.

    1. Why “Demo Performance” Doesn’t Equal “Engineering Capability”

    Progress in LLM code generation over the past two years has been visible to everyone: front-end pages look increasingly polished, interactive effects are more convincing, and the particle effects and animations in official demos are almost indistinguishable from hand-crafted work. But any developer who has actually put these models into production-grade engineering knows that there is a huge gap between demo capability and engineering capability.

    Real engineering scenarios are characterized by strong constraints from existing code, complex build pipelines, dependencies between task steps, and objective, rigid verification criteria. These are precisely the weaknesses that demo scenarios never expose. Using a real large-scale refactoring task and several typical interactive programming tests as samples, this article discusses how to evaluate and measure LLM coding capabilities properly.

    2. A Typical Case: When Even a Detailed Plan Can’t Prevent Execution Collapse

    2.1 Scenario Setup

    A structurally complex Rust project required a fairly large-scale change. To reduce risk, the developer first used an auxiliary tool to generate an extremely detailed execution plan—down to “what to do at each step and how to verify it.” Multiple mainstream models were then asked to execute the same plan on the same codebase.

    The results diverged noticeably:

    • Some models passed in one shot: they executed all steps completely, produced comparable code quality, passed all tests, and didn’t even ask a single clarifying question along the way;
    • Some models proactively asked for clarification: they raised questions about ambiguous points mid-execution and ultimately delivered successfully;
    • One model failed spectacularly, and the way it failed was highly representative.

    2.2 Anatomy of the Failure

    The failing model’s trajectory went roughly as follows:

    1. The plan had six major steps. It claimed to have “completed” the first two in under five minutes—that speed alone should have raised suspicion;
    2. It then reported that “compiler cache issues” prevented correct compilation and asked for human intervention;
    3. After the human suggested the standard cache-clearing command, it didn’t actually verify whether compilation recovered and simply moved on to the next step;
    4. The next step also failed to compile, and it again attributed the failure to “severe cache problems,” entering an attribution loop;
    5. After being explicitly told “the problem is that your code is wrong—you must write correct code and pass the tests before continuing,” it fell into classic shotgun debugging: changing a line here, a line there, producing over three thousand meaningless edits in two hours before finally giving up.

    2.3 What This Reveals

    This case deserves reflection from every developer using AI coding tools. It exposes several systematic weaknesses in how models execute engineering tasks:

    • Attribution hallucination: When a task fails, the model tends to fabricate a plausible-sounding external cause (like cache issues) instead of reviewing its own output. Once formed, this attribution reinforces itself.
    • Missing verification: Sound engineering practice is “verify after every atomic operation” (compile immediately after changing code), but models tend to skip verification and push forward, causing errors to accumulate layer by layer.
    • Directionless patching: Lacking root-cause analysis capability, the model degenerates into random perturbation—massive edit volume with near-zero probability of convergence.
    • Overconfident progress reporting: Claiming to finish two major steps in five minutes, severely disconnected from actual state, shows its self-assessment mechanism is unreliable.

    The takeaway for developers: when using these tools, verification checkpoints must be written explicitly into instructions—for example, requiring compilation results at the end of each step, running tests, and pasting key logs—turning implicit self-assessment into explicit external validation.

    3. Interactive Programming Tests: The Devil in the Details

    Beyond heavy engineering tasks, another common test category is having models generate visual interactive programs. These tests look simple but precisely expose a model’s “common sense layer.”

    3.1 Visual Presentation: Generally Passing, Style Questionable

    At the visual level, most models currently deliver acceptable results—lighting, particles, and layouts all look reasonably good. But comparison revealed an interesting phenomenon: one model explicitly stated in its chain of thought that it would render an “ink wash painting style,” yet the final output contained no such elements. This shows the chain-of-thought content can be disconnected from the final output—the model “states” a goal it cannot actually achieve. This kind of chain-of-thought hallucination deserves vigilance.

    3.2 Physical Common Sense: The Simulation Works, But Not Well

    Take a bowling simulation as an example: the model gets basic rendering working, but the pin spacing is too large, making it physically impossible to achieve a reasonable “strike” outcome; meanwhile, the scene lighting is too dim, severely hurting playability. These issues show models lack internal constraints on “reasonable real-world parameter ranges.” Developers need to specify key parameters explicitly in requirements—spacing, size ratios, lighting intensity.

    3.3 Complex Interactive Tasks: Stability Is the Biggest Weakness

    The most differentiating test is maze reinforcement learning (e.g., Q-learning visualization), which simultaneously requires terrain rendering, agent drawing, coordinate alignment, an interaction loop, and training convergence. Typical failure modes observed across multiple rounds include:

    • Agent size out of control, occupying half the maze;
    • Core scene completely failing to render;
    • Page rendering successfully but interaction logic broken—unplayable;
    • Agent action layer and terrain layer coordinates misaligned, visually “floating” or “offset.”

    Notably, even after multiple failures, one model still showed potential in training convergence—Q-values correctly converged onto the floor visualization, which is rare in small-sample comparisons. In other words, a model’s maturity at the algorithm layer and the engineering integration layer is uneven: algorithmic understanding may already be adequate, but turning it into a complete program that runs, plays, and has no bugs remains the hardest last mile.

    4. Building Your Own Model Evaluation Checklist

    Based on the practices above, developers are advised to evaluate coding LLMs systematically along the following dimensions, rather than relying on official demos or others’ impressions:

    1. Plan adherence: Given a detailed execution plan, can it proceed step by step without skipping steps or falsely reporting progress?
    2. Verification loop capability: After failure, can it proactively run compilation/tests and correct based on real feedback, instead of blaming the environment?
    3. Root-cause analysis: Facing compile errors, does it analyze error messages to locate code defects, or resort to random perturbation?
    4. Restraint in modification: Are changes concentrated in the problem area, rather than large-scale rewrites or shotgun patching?
    5. Common-sense constraints: Do generated simulations, games, and visualizations conform to physical and experiential common sense?
    6. Long-task stability: In multi-step, long-chain tasks, do early errors contaminate all subsequent steps?
    7. Willingness to clarify: Facing ambiguous requirements, does it silently guess or proactively ask for confirmation? The latter is far more valuable in real collaboration.

    5. Engineering Collaboration Advice: Make Humans “Verifiers,” Not “Firefighters”

    Given current capability levels, the core strategies for using AI coding tools well are:

    • Break tasks into small units: Deliver one independently verifiable atomic task at a time, avoiding error accumulation across long chains;
    • Enforce verification checkpoints: Explicitly state in instructions that “each step must end with compilation/testing and a results report,” making verification a hard requirement;
    • Limit modification scope: Clearly state “only modify files/functions related to the current task” to suppress shotgun behavior;
    • Cut losses promptly: When the model enters an attribution loop or ineffective patching, terminate and roll back decisively rather than burning two hours with it;
    • Keep human review: Critical-path code must go through human review. Model output should be treated as a “high-quality draft,” not a “deliverable product.”

    6. Conclusion

    Between the marketing of LLM coding capabilities and real-world testing, there is often the distance of a real engineering project. No matter how dazzling the particle effects in demos, they can’t replace the fundamentals: writing correct code, compiling successfully, and turning tests green. For developers, rather than asking “which model is the strongest,” it’s better to build an objective, reproducible evaluation process and let models prove themselves on your actual workloads—this is being responsible both to the tools and to the bottom line of engineering quality. As models continue to iterate on verification loops and long-task stability, we have reason to expect that someday “passing on the first try” will no longer be the luck of a minority, but an industry standard.