LLM Coding Ability Evaluation: Separating Model and Harness Effects
This article explains why evaluations of new LLMs’ coding ability can be misleading and presents a controlled method for separating model, harness, and environment variables. It covers variable decomposition, evaluation steps, result interpretation, acceptance checks for frontend and visualization tasks, common pitfalls, and practical recommendations for internal evaluation sets and CI.
1. Why Evaluations of New Models Are Easily Distorted
After a new model is released, two opposite kinds of feedback often appear in the community: some people believe its coding ability has improved significantly, while others report frequent errors in real projects. Both conclusions may be based on real observations, and the difference often comes from the test environment itself.
In coding scenarios, a model usually does not work alone. The outer runtime harness receives tasks, calls tools such as file read/write and command execution, reads error messages, and decides the next action. The harness also organizes system prompts, manages context length, defines tool parameter formats, and sets retry counts and stopping conditions. If any part is configured improperly, the final result can suffer, and this degradation is easily mistaken for insufficient model capability.
The core of evaluation work is therefore to separate “model capability” from “harness capability” and observe them independently.
2. Breaking Down the Variables That Affect Results
The variables involved in evaluation can be divided into three layers:
| Layer | Typical Variables | Primary Impact |
|---|---|---|
| Model layer | Basic reasoning, code understanding, long-context utilization, instruction following | Determines the upper bound of solution quality |
| Harness layer | System prompts, tool definitions, context compression, error feedback, planning loops | Determines whether the model can perform consistently |
| Environment layer | Runtime version, dependency installation, timeout settings, file permissions, network access | Determines whether tasks can execute fully |
Several types of problems are easily mistaken for model defects. First, the parameter format for tool calls does not match the model output, causing parsing failures. On the surface, it looks like the model “cannot write code,” but the actual issue is a protocol problem. Second, the context compression strategy is too aggressive, earlier constraints are discarded, and functionality is ultimately missing. Third, sandbox permissions are too strict, legitimate operations are rejected, and the task stops midway.
3. Evaluation Methods for Controlling Variables
The core principle is to fix several layers and change only one factor at a time. The following steps can be followed.
Fix the task set. Tasks should cover different types, such as generating a single-page frontend from scratch, fixing defects in an existing project, cross-file refactoring, adding unit tests, and implementing interactive features based on a requirements document. Each task type needs a clear input description and acceptance criteria.
Fix the model version and inference parameters. Record the model version number, sampling temperature, and other parameters, and note the test date. Server-side updates may cause the same version to perform differently at different times, so the date itself is data that should be retained.
Build a model-harness combination matrix. Each combination runs all tasks. If, under the same harness, changing the model produces little difference, while with the same model, changing the harness produces a clear difference, the problem is most likely in the harness. If the reverse is true, the problem is most likely in the model.
Repeat runs and analyze distributions. A single result has high randomness. Each combination should be run 3 to 5 times, and pass rates and time fluctuations should be analyzed. Avoid using only the best run as the conclusion.
Use blind review and itemized scoring. Reviewers should not know the specific combination being tested, to reduce subjective bias. Scoring items should be split into functional correctness, interaction completeness, code maintainability, manual revision rounds, and total time.
The following sample code summarizes evaluation results. The data source should be replaced with actual run records:
from dataclasses import dataclassfrom statistics import mean, pstdev@dataclassclass RunResult:model: str # Model versionharness: str # Harness identifiertask: str # Task IDpassed: bool # Whether acceptance passedrounds: int # Rounds of additional human instructionsseconds: float # Time from start to passdef summarize(results: list[RunResult]) -> dict:"""Summarize pass rate, average rounds, and time variance by (model, harness) combination."""groups: dict[tuple[str, str], list[RunResult]] = {}for r in results:groups.setdefault((r.model, r.harness), []).append(r)report = {}for key, runs in groups.items():pass_rate = sum(r.passed for r in runs) / len(runs)times = [r.seconds for r in runs if r.passed]report[key] = {"pass_rate": round(pass_rate, 2),"avg_rounds": round(mean(r.rounds for r in runs), 2),"time_std": round(pstdev(times), 1) if len(times) > 1 else 0.0,}return report
4. Logic for Interpreting Results
After obtaining the matrix data, the main variables can be judged according to the following rules:
- The same model with a different harness shows a clear change in pass rate. Harness configuration is the main influencing factor, and prompts, tool protocols, and context strategies should be checked first.
- The same harness with a different model shows a clear change in pass rate. Differences in model capability are the main cause.
- Both change at the same time. This indicates an interaction effect. One side must be fixed and the test repeated; direct attribution is not valid.
- Logs show parameter parsing errors, timeouts, or permission denials. These are mostly harness or environment issues and have little to do with model reasoning.
One more point should be made clear: a model’s degree of adaptation to the harness is itself part of its capability. If a model performs well only in a specific harness, its practical usable range is limited. This conclusion should be recorded truthfully, not ignored because the evaluation conditions are inconvenient.
5. Acceptance Methods for Frontend and Visualization Tasks
These tasks are prone to broad judgments based on visual quality. A more reliable approach is to break acceptance into several checkable items:
- Runnability. After the page loads, there are no console errors and all resources load completely.
- Layout correctness. Overlays, sidebars, or tables of contents do not obscure the main content, and the page remains readable when the window size changes.
- State consistency. After collapsing, expanding, or switching views, the interface does not retain old content and does not display garbled text. The interface state remains consistent with the underlying data.
- Interaction completeness. Every declared feature can be triggered and produces the expected result. For example, a collapsible table of contents should support expansion, collapse, and preserving state after refresh; after collapse, the main body should still be clickable.
- Visual fidelity. Check fonts, colors, textures, transition effects, and other items one by one against the design requirements, rather than only giving comments such as “the style is good.”
For simulation pages containing large amounts of data, it is also possible to check at fixed time points whether the data matches the current stage. For example, after dragging the timeline to a certain stage, the telemetry values should match the stage description.
6. Common Pitfalls
- Looking only at a single demo. Accidental success does not represent stable capability; the distribution from multiple runs should be used.
- Assuming longer prompts are always better. The same prompt may perform very differently in different harnesses, so it needs to be validated per harness.
- Ignoring permission and sandbox settings. Rejected operations are often incorrectly counted as model failures.
- Evaluating only visual effects. A page that looks good but lacks functionality should not be considered passing.
- Not recording versions and dates. Conclusions cannot be reproduced, and later comparisons are impossible.
7. Practical Recommendations
When teams select models or upgrade harnesses, they can build an internal evaluation set. Select 20 to 50 real tasks, preferably from the team’s past requirement tickets and defect records, and rerun the set after each model release or harness upgrade. Results should be saved as versioned reports to facilitate horizontal and vertical comparison.
Furthermore, evaluation scripts can be integrated into continuous integration and run periodically. This helps detect capability regressions caused by model or server-side updates in time, rather than tracing back after production issues appear.
In short, conclusions about evaluating a new model should be limited to the controlled conditions. A single test can only show performance under a specific harness, specific tasks, and a specific time. Reliable conclusions require systematic controlled experiments.
