Evaluating the Coding Ability of New LLMs: A Practical Assessment Framework

    With new flagship LLMs released every few months, choosing whether to upgrade from a stable production model is difficult using public benchmarks alone, which are vulnerable to data contamination and ignore your own code style and engineering constraints. This article explains how to build a reproducible internal evaluation pipeline: decompose capability into three orthogonal dimensions—code generation, long-horizon planning and agentic collaboration, and tool use with reasoning; design a tiered question bank from real anonymized tickets; run blind, standardized tests in a fixed environment; score with explicit weighted rubrics; track inference overhead such as turn counts and token consumption; and assess front-end and content generation quality through structural and visual criteria. By integrating the evaluation into CI, model selection becomes a continuous, evidence-based process rather than a one-off decision.

    1. Problem: Model Releases Are Accelerating, But Choosing One Is Harder

    Over the past couple of years, flagship large language models have been released at an increasingly rapid pace, with nearly every quarter bringing a new version that claims to set new records on public coding, reasoning, and agentic benchmarks. For developers and technical decision-makers, the real challenge is no longer a lack of new models—it is deciding whether a new version is worth replacing an older one that is already running reliably in production.

    Vendor-published scores usually come from public benchmarks, which have two inherent limitations: first, the risk of training data contamination, meaning the model may have seen the problems during pre-training; second, scores are single aggregated values that say nothing about your team’s code style, dependency versions, or engineering constraints. A self-built, reproducible evaluation pipeline is therefore the only reliable basis for model selection.

    2. Decomposing Capability: Three Dimensions That Must Be Tested Separately

    Treating “is this model strong” as a single question produces answers with no engineering value. Break it into three orthogonal dimensions and design test cases for each.

    2.1 Code Generation and Multilingual Implementation

    The question is not just “can it write correct code,” but:

    • Cross-language portability: implement the same requirement in mainstream backend languages, scripting languages, and systems programming languages, and check whether performance degrades noticeably in any one of them;
    • Runnability: generated code must compile and pass unit tests in a real dependency environment on the first try, not merely “look correct”;
    • Constraint adherence: whether it respects existing interface signatures, error-handling conventions, and logging standards.

    2.2 Long-Horizon Planning and Agentic Collaboration

    This is the area where new versions iterate most aggressively. Focus evaluation on task decomposition and state maintenance:

    • Give a requirement that requires changes across multiple files and observe whether the model outputs a plan before making changes;
    • Inject a compilation error midway and see whether the model corrects itself based on the feedback or repeats the same failed approach;
    • Track the number of interaction turns needed to reach the goal—turn inflation often signals unstable planning ability.

    2.3 Tool Use and Logical Reasoning

    This covers multi-step tool orchestration (querying, computing, writing files, then running tests), parameter extraction accuracy, and math/logic problems requiring multi-hop reasoning. Record tool-call success rate and parameter error types; these two metrics localize problems better than a final answer-correctness rate.

    3. Evaluation Method: Tiered Question Bank + Blind Testing + Fixed Scoring Rules

    A reusable process has four steps.

    Step 1: Build a tiered question bank. Group questions by dimension—for example, logic and math, human intuition and common sense, and programming simulation—with a fixed number of questions per bucket (e.g., 10 / 7 / 12). Source all questions from your team’s real tickets and incidents, anonymized and rewritten, to avoid contamination.

    Step 2: Standardize the execution environment. Use the same container image, the same locked dependency files, and the same timeout and maximum-turn limits. If the environment varies, scores are not comparable.

    Step 3: Blind testing and de-identification. Hide model identities, randomize output order, and have two or more independent reviewers score each response and average their scores, reducing brand bias.

    Step 4: Fix scoring rules and keep records. Use a scoring table like the following:

    Dimension Cases Scoring criteria Weight
    Logic and math 10 Correct conclusion + verifiable derivation 30%
    Human intuition 7 Common-sense validity, boundary handling 20%
    Programming simulation 12 Compiles, passes tests, follows constraints 50%

    4. Sample Evaluation Skeleton Code

    1. # Minimal evaluation driver: fixed environment, persisted results, multi-model comparison
    2. import json, subprocess, time
    3. from pathlib import Path
    4. def run_case(model_client, case, timeout=180, max_turns=8):
    5. """Run a single case and return a structured result."""
    6. start = time.time()
    7. turns, transcript = 0, []
    8. try:
    9. for _ in range(max_turns):
    10. turns += 1
    11. resp = model_client.chat(case["prompt"], history=transcript)
    12. transcript.append(resp)
    13. if resp.get("tool_calls"):
    14. # Feed tool execution results back to test multi-step orchestration
    15. transcript.append(exec_tools(resp["tool_calls"]))
    16. continue
    17. break
    18. passed = verify(case, transcript[-1]) # compile + unit tests + assertions
    19. return {"id": case["id"], "bucket": case["bucket"],
    20. "passed": passed, "turns": turns,
    21. "latency": round(time.time() - start, 2)}
    22. except subprocess.TimeoutExpired:
    23. return {"id": case["id"], "bucket": case["bucket"],
    24. "passed": False, "turns": turns, "error": "timeout"}
    25. def aggregate(results):
    26. """Aggregate by bucket with weights and output a comparable report."""
    27. score, total = {}, {}
    28. for r in results:
    29. b = r["bucket"]
    30. total[b] = total.get(b, 0) + 1
    31. score[b] = score.get(b, 0) + int(r["passed"])
    32. return {b: round(score[b] / total[b], 4) for b in total}

    For engineering practice, archive the question bank and results to object storage with versioning, launch evaluation jobs on a container platform to ensure environmental consistency, and route logs to a logging service with monitoring and alerting for failure rates and latency. These are generic cloud capabilities and vendor-agnostic.

    5. Don’t Ignore Inference Overhead

    New versions commonly introduce mechanisms such as “think before acting,” interleaved thinking, and turn-level reasoning, which effectively turn the reasoning budget into a tunable parameter. Evaluation must simultaneously record three cost metrics: average interaction turns, total output tokens, and end-to-end latency.

    A practical recommendation is tiered configuration: disable or reduce reasoning effort for simple changes, and enable it only for complex refactors and cross-module tasks. If a version improves accuracy by only two or three percentage points while doubling token consumption, it is not a worthwhile trade-off for cost-sensitive workloads.

    6. How to Evaluate Front-End and Content Generation Quality

    Web pages, slides, and poster generation tasks cannot be judged by unit tests. Use a dual “structure + visual” scoring approach: on the structural side, check that semantic tags are complete and layout uses grid or flexbox rather than absolutely positioned stacks; on the visual side, have reviewers rate layout consistency, color harmony, and whitespace balance on a five-point scale, and require that outputs be usable in standard viewports without manual patching.

    7. Conclusion and Selection Recommendations

    When a new version is released, the right approach is not to chase leaderboards but to build your own evaluation loop: decompose dimensions finely enough, keep the environment consistent enough, make scoring rules rigorous enough, and record cost metrics alongside accuracy. A replacement is only justified when the new model consistently outperforms the incumbent on your question bank in key dimensions and the cost per task does not increase. By integrating the evaluation scripts into continuous integration and running a regression automatically on every model upgrade, model selection shifts from a one-off decision into a continuously maintainable capability.