Coding Agent Evaluation: How to Test New LLMs and Avoid Common Pitfalls

    Evaluate new large language models on real engineering work, not just polished demos. This guide outlines a reusable coding-agent evaluation framework covering task design, execution traces, weighted scoring, automated acceptance checks, and common failure modes, with consistent retry budgets for fair comparisons.

    1. Why a Successful Demo Does Not Prove Engineering Readiness

    New model launches often emphasize visually impressive demonstrations: lighting effects, particles, ink-wash rendering, and 3D scenes. These examples can showcase a model’s generation capabilities, but developers need to evaluate it in an engineering context: given clear requirements and an existing codebase, can it understand the context, plan the work, make changes, verify its implementation, and pass the tests?

    One hands-on evaluation illustrates the gap. With the same codebase and task plan, several widely used models passed on their first attempt. A newly released model, however, changed thousands of lines over two hours and still failed to compile. The issue was not simply an inability to write code. Its behavior exposed several common coding-agent weaknesses:

    • Blaming the environment: When compilation failed, the model claimed that the build cache was broken and requested human intervention instead of examining its changes.
    • Shotgun edits: It modified code across the repository without identifying the root cause, producing a large diff without converging on a solution.
    • Missing verification: It claimed to have completed steps without actually running builds or tests.
    • A disconnect between planning and execution: It outlined six major steps, then quickly declared completion without evidence of intermediate progress.

    2. Build a Reusable Evaluation Task Set

    An objective evaluation should test both a model’s capability ceiling and its baseline reliability.

    1. Multi-step engineering tasks: Ask the model to implement a feature in a real codebase that requires changes across multiple files and depends on build and test workflows. Assess whether its plan is executable, whether it understands the context, and whether it can recover from failures.
    2. Constraint-following tasks: Specify clear stylistic or technical constraints, such as a rendering style or performance threshold. Check that the implementation satisfies them, rather than merely mentioning them in its reasoning.
    3. Common-sense and domain-reasoning tasks: Test judgments such as whether object sizes and spacing are plausible in a physics simulation, or whether reinforcement learning training has converged.
    4. Interaction quality: Observe whether the model asks useful clarification questions when information is missing instead of proceeding blindly.

    One revealing pattern in testing was that some models described an intended visual effect in their reasoning but never implemented it in the final output. This kind of plan hallucination can be hidden by attractive screenshots. Detecting it requires checking each requirement against the actual result.

    3. Inspect the Execution Process, Not Just the Result

    Record the complete trace of each run and highlight these signals:

    • Self-verification: Does the model run a build, unit tests, or rendering checks before claiming completion?
    • Error attribution: Does it first investigate its own changes, or immediately blame the environment, cache, or toolchain?
    • Convergence of changes: In a healthy workflow, edits become smaller as the model approaches the target. In an uncontrolled workflow, the diff grows rapidly and the model repeatedly changes direction.
    • Context retention: Does it remember earlier constraints and completed steps throughout a long task?

    A practical approach is to score each run using a weighted rubric:

    Dimension What to Observe Weight
    Plan quality Whether the task breakdown is executable 20%
    Self-verification Whether builds and tests are actually run 25%
    Error recovery Whether the model identifies root causes after failures 25%
    Result correctness Whether the final implementation passes the tests 20%
    Interaction efficiency Whether clarification and confirmation are appropriate 10%

    4. Make Automated Acceptance Checks the Final Authority

    Manual observation can become tiring and subjective. Script the acceptance process wherever possible. The following pseudocode illustrates the workflow:

    1. def evaluate(model_runner, task):
    2. session = model_runner.start(task)
    3. for step in range(MAX_STEPS):
    4. action = session.next_action()
    5. log(action) # Record the trace for later analysis
    6. if action.requests_user_input:
    7. session.reply(task.clarify(action.question))
    8. if action.claims_done:
    9. result = task.verify() # Require build, tests, and rendered screenshot comparison
    10. if result.passed:
    11. return score(session, result)
    12. session.report_failure(result.details)
    13. return score(session, failed=True)

    The central rule is simple: when the model claims completion, the external verifier determines whether the task is complete.

    The verifier should include compilation, unit tests, integration tests, and programmatic checks on generated output. Depending on the task, these checks might assess collision clearance between generated objects or whether training curves have converged.

    5. Address Common Failure Modes

    Claims That the Environment Is Broken

    For an evaluation in a verified environment, state upfront that the build environment has been checked and that failures must be investigated at the code level. Add a system-level instruction prohibiting the model from attributing errors to the environment. If it continues to insist on an environmental explanation, terminate the run and record a failure.

    Shotgun Edits

    Limit the number of lines or files that can be changed in each iteration. Require a root-cause analysis and a minimal repair plan before further edits.

    Completion Claims Without Verification

    Define completion in the evaluation protocol as requiring build and test output. Without that evidence, the task remains incomplete.

    Plan Hallucinations

    Require the model to map every constraint to a specific implementation location. Check those mappings individually during acceptance testing.

    Unequal Retry Budgets

    Give every model the same maximum number of attempts and the same feedback format. Extra retries for one model can distort the comparison.

    In the hands-on evaluation, one model failed even after four opportunities, while others passed on the first attempt. That difference should be measured under a consistent budget rather than obscured by uneven allowances.

    6. What an Evaluation Report Should Include

    A credible report should document:

    1. Task descriptions and acceptance criteria: Provide reproducible inputs and the initial codebase state.
    2. Execution summaries for each run: Record step counts, the scale of changes, and key decision points.
    3. Failure-mode classifications: Identify environmental blame, shotgun edits, missing verification, omitted constraints, and similar patterns.
    4. Quantitative comparisons: Report pass rates, average retry counts, average time to acceptance, and the number of human interventions.
    5. Conclusions and applicability limits: Explain where the model appears suitable, such as creative visual generation, and where it struggles, such as multi-file engineering changes or strict constraint adherence.

    7. Conclusion

    Expectations for new models should rest on verifiable evidence. The hands-on evaluation showed that strong visual generation does not necessarily translate into the engineering discipline required for coding tasks.

    At the same time, a single failure does not fully characterize a model. Meaningful comparisons require a shared task set, equal retry budgets, and automated acceptance criteria.

    Rather than relying on impressive launch demonstrations, developers can spend half an hour setting up this evaluation workflow and run it against a real codebase with real tests. The resulting evidence is often more useful than promotional claims.