Evaluating LLM Coding Ability: Six Practical Dimensions for Engineering Teams

    This article breaks down the coding performance of a new-generation general-purpose LLM across six measurable dimensions: long-horizon task execution, code execution, code review, architecture design, stability, and quota cost. Based on heavy real-world usage, it explains where the model falls short and how to build a repeatable evaluation and engineering workflow using task contracts, layered validation, evidence-backed review, human-led architecture decisions, regression test sets, and budget guardrails. Readers will find practical methods, code snippets, and templates for turning an average model into reliable delivery output.

    Over a recent period, I used a new-generation general-purpose LLM with unprecedented intensity in real projects, consuming tokens in the tens of billions across code generation, defect review, architecture discussions, and refactoring. The conclusion from this high-intensity usage is straightforward: it is not impressive, and in several key capabilities it performs only average. The more valuable output is not complaints, but breaking down that feeling of mediocrity into a measurable and reproducible evaluation framework. Below are six dimensions I summarized, along with the corresponding practices.

    1. Long-Horizon Tasks: From Needing a Goal Anchor to Progressing Within a Single Turn

    A typical problem with earlier models was poor task persistence: even when the goal was repeatedly constrained in the prompt and acceptance criteria were provided, the model would still “finish early” midway and produce a half-finished result. The most practical improvement in the new generation is that it can advance tasks of relatively large granularity within a single conversation turn without explicitly maintaining goal state.

    This does not mean you can leave it unattended. A more reliable engineering practice is to externalize the goal as a verifiable “task contract”:

    1. task:
    2. goal: "Add idempotent writes to the order module"
    3. constraints:
    4. - "Do not change public API signatures"
    5. - "New logic must have a failure rollback path"
    6. acceptance:
    7. - "Submitting the same request_id repeatedly results in only one database write"
    8. - "Under 50 concurrent requests, unique constraint conflict rate < 0.1%"
    9. stop_condition: "All acceptance items pass or no progress for two consecutive rounds"

    Write acceptance conditions as executable assertions, and let the pipeline judge the model output rather than relying on the model’s self-discipline. This way, even if the model “wants to clock out,” the process will not lose focus.

    2. Code Execution: Limited Progress, Persistent Weaknesses

    In real repositories, the weaknesses in code execution capability concentrate in three areas: insufficient cross-file dependency reasoning, incomplete recognition of implicit conventions (convention over configuration), and a test coverage strategy biased toward “piling up useless unit tests.” Typical manifestations include spending effort generating large numbers of low-value unit tests while truly important boundary issues are deferred indefinitely; or introducing regressions when fixing a simple defect, only to discover them hours later.

    Improvement suggestions:

    • Narrow the context radius: feed only the files and call chains directly related to the change to reduce noise interference.
    • Enforce reproduce-before-fix: require a minimal reproduction case first, then submit the patch.
    • Use the pipeline as a safety net: run compilation, static checks, unit tests, and integration tests in layers, with rollback triggered if any layer fails.
    1. # Example: layered validation, terminate if any layer fails
    2. run() { echo "== $1 =="; shift; "$@" || exit 1; }
    3. run "build" make build
    4. run "lint" make lint
    5. run "unit" make test-unit
    6. run "e2e" make test-e2e

    3. Code Review: The Stage Most Prone to “Confident Misjudgment”

    Degradation in review capability is more dangerous than in generation capability, because it outputs judgments in a conclusive tone. Two common problems arise: first, missed detections, where defects that others can catch go unnoticed; second, misjudgments, where conclusions are drawn without reading the relevant code, even including basic errors such as failing to distinguish the order of two lines of code. The occurrence of such issues even at high reasoning tiers suggests possible fluctuations in server-side reasoning quality.

    A practical review process design:

    1. Enforce an evidence chain: every comment must include the file path, line range, and call chain basis; comments without evidence are discarded outright.
    2. Cross-review with two models: have different models review independently, keep only the intersection of issues as high-confidence, and send the difference set to a manual review queue.
    3. Put rules first: write team conventions (null pointers, resource release, concurrency visibility, string comparison, etc.) as deterministic checks, and let the model handle only what the rules cannot cover.
    1. [High confidence] Basis: src/order/repo.java:120-138 Call chain: Service->Repo
    2. [Needs manual review] Missing basis, the model did not reference a specific code location

    A special reminder: basic issues such as string equality comparison, collection emptiness checks, and floating-point comparison should not be left to a probabilistic model as the gatekeeper, but should be intercepted by deterministic tools before commit.

    4. Architecture Design: The Core Decision That Cannot Be Outsourced

    Architecture design is currently the part where you should least expect the model to work independently. If left to design freely, the output often has obvious defects in extensibility, failure handling, and data consistency. A reasonable positioning is to treat it as a “solution diverger” and a “review sparring partner,” not a decision maker.

    Recommended human-AI division of labor:

    • Humans handle: boundary division, consistency models, fault domains and degradation strategies, and evolution roadmaps.
    • The model handles: candidate solution enumeration, trade-off table organization, interface drafts, boilerplate code, and first drafts of documentation.
    1. | Option | Consistency | Operational Complexity | Evolution Cost | Prerequisites |
    2. |------|--------|-----------|---------|---------|
    3. | A | Strong | High | Medium | Clear transaction boundaries |
    4. | B | Eventual | Low | Low | Tolerable latency |

    When the model’s design has defects, the most effective intervention is not to rewrite the prompt, but to clearly point out the violated constraint items and have it produce a new version according to the constraints.

    5. Stability and “Dumbing Down”: Design for Fluctuation as the Norm

    The phenomenon of performing well at launch and then declining in quality afterward is not uncommon in the industry, and may be related to server-side load scheduling, reasoning tier degradation, and context compression strategies. The takeaway for users is: do not bind critical workflows to a single model’s “peak state.”

    Engineering recommendations:

    • Build a regression evaluation set: use 50–100 real historical defects as a fixed question set, and run it whenever it “feels dumber,” replacing subjective perception with data.
    • Make critical paths switchable: abstract a unified model invocation layer that supports rapid switching between different capability tiers and different vendor solutions.
    • Make results replayable: save prompts, parameters, and outputs for version comparison and problem localization.
    1. # Example: unified invocation layer that abstracts away implementation differences
    2. def review(diff, model="default", effort="high"):
    3. return client.chat(
    4. model=model,
    5. reasoning_effort=effort,
    6. messages=[{"role": "user", "content": build_prompt(diff)}],
    7. )

    6. Quota and Cost: Spend Compute on the Problems That Matter

    High-tier reasoning quota is consumed far faster than intuition suggests. Previously, only high-speed mode was tight, but in the highest tier under normal mode, the weekly quota may only support about three days of high-intensity usage. By public order-of-magnitude estimates, tens of billions of tokens represent a considerable overall cost even if all of them hit the cache.

    Cost control strategies:

    • Tiered routing: use lower tiers for boilerplate code, higher tiers for defect localization and review, and keep casual brainstorming out of the billing path.
    • Context slimming: deduplicate, trim history, and keep only necessary files to improve both cache hit rate and signal-to-noise ratio.
    • Budget guardrails: set token limits and timeouts for each task, with automatic degradation or escalation to humans when exceeded.
    • Unified measurement: record input, output, cache hits, and end-to-end latency together, avoiding reliance on a single metric.

    7. Conclusion: Absorbing “Mediocrity” with Engineering Methods

    For high-intensity users, whether a model is impressive does not matter; what matters is whether it can be stably embedded into the development workflow. Making long-task goals contractual, making review conclusions evidence-based, leaving architecture decisions to humans, incorporating stability fluctuations into regression evaluation, and bringing quota costs under budget guardrails—this set of methods can make a “mediocre” model produce delivery results close to excellent. In a real-world environment where multiple clouds and multiple models coexist, keeping the invocation layer replaceable and the evaluation set sustainable is the key to turning tokens into real productivity.