Evaluating Coding Assistants Should Return to Real Engineering
This article argues that coding assistants should be evaluated on real engineering work rather than one-shot page generation. It explains why visual demos produce misleading comparisons, what repository-level tasks actually test, four common usage mistakes, and a reusable task format for reproducible evaluation.
Comparing coding assistants only on “generate a nice-looking page” tends to produce a stable but incomplete impression. Some outputs have more complete color schemes, spacing, and motion; others are functional but look dated, with crowded buttons, like an admin panel that has not been redesigned in years. That difference is real, but it does not directly show which assistant is better at writing code. Page appearance tests tacit knowledge of visual conventions and the tendency to fill in design decisions when information is sparse. Repository development tests reading code, narrowing the suspect area, and proving after a change that nothing was broken by using tests or logs. The two abilities are related, but they are not the same exam.
Why one-shot generation systematically misjudges
A one-sentence requirement contains almost no verifiable constraints. The caller does not specify the tech stack, editable files, brand colors, component library, breakpoints, accessibility requirements, or what “done” means. The model can only guess based on the landing-page patterns that are more common in training. The side that guesses closer to current popular aesthetics may look “stronger,” even if it has not read your repository and has not taken responsibility for edge cases.
This kind of evaluation has a second bias: success criteria are subjective appearance, and failures cannot be reviewed. Crowded buttons and insufficient whitespace can be described as an aesthetic issue or as an information-density tradeoff. Without an acceptance checklist, the discussion stays at the level of impressions. A more valuable engineering question is: given a symptom and reproduction conditions, can the assistant locate the defect, control the scope of the change, and use repeatable evidence to show that the fix works?
The two types of tasks can be separated:
- Exploratory generation: the goal is vague, evaluation relies on comparing screenshots, and it is suitable for quickly producing drafts.
- Constraint-based modification: the goal is observable, the scope can be limited, and the result can be regression-tested, making it suitable for daily development.
A high ranking on the first type of task cannot replace stability on the second.
What repository-level tasks actually test
Take “the export API occasionally misses data” as an example. Useful input is not “help me look at it,” but the symptom, trigger frequency, data scale, whether it is related to filtering or pagination, the most recent relevant change, and how to reproduce it locally or in a test environment. If the assistant only guesses based on function names, it often modifies the wrong layer: some problems are in query conditions, some lose fields during serialization, some involve cursors under concurrency, and some occur when the caller treats null values as the end.
A safer process is usually a closed loop, not one long answer:
- Restate the symptom and what has already been ruled out, avoiding writing guesses as conclusions.
- Read the relevant modules along the call chain and mark where data is filtered, truncated, or merged.
- Use minimal logs or breakpoint information to confirm whether the loss happens before entering the API, during processing, or after returning.
- Write or add a test that can reproduce the issue reliably, then make the change.
- Rerun that test and adjacent regression tests, and keep the before-and-after output in the record.
- Explain the cases the change does not cover, such as very large pages, time zones, or permission filtering.
The value of these steps is self-verification. Not needing constant human correction does not mean no human acceptance is required; it means the assistant returns evidence and the human only makes judgments, instead of flipping through files on its behalf. If evaluation only looks at whether the first-round page is beautiful, this capability will not appear.
Four usage patterns that make results worse
First, comparisons do not align reasoning budgets and task configurations. The same assistant can perform an order of magnitude differently depending on the model tier, context length, and whether command execution is allowed. Comparing the lowest configuration after default installation with someone else’s carefully configured session measures usage differences, not the capability ceiling. Evaluation records should at least include: the task description, directories allowed to be read, whether running tests is allowed, the maximum number of retries after failure, and whether a human supplied key file paths midway.
Second, frontend tasks are given only abstract adjectives. “Make it look better” has no operational definition. A more effective approach is to provide a reference image or design annotation, the tech stack, files allowed to be modified, dependencies that must not be introduced, and acceptance methods, such as key areas not overlapping at common widths, readable contrast, and main buttons reachable by keyboard. The generated interface may not be stunning, but it will not freely wander in irrelevant directions. Images solve “what the target looks like”; text solves “what cannot be changed.”
Third, every new session starts by introducing the project from zero. If the assistant has no cross-session memory, architecture conventions, error-handling style, test commands, and directory responsibilities must be placed in the project description that it reads every time. The description should be short and executable, for example: interface changes must include tests; do not modify public types unless callers are listed; logs must not print sensitive fields; the frontend must only use existing components. Writing the rules clearly before describing the current defect is less prone to drift than repeatedly adding verbal context during the conversation.
Fourth, all capabilities are evaluated using a presentation format the assistant is not good at. Generating new pages emphasizes aesthetic completion; reviewing existing diffs emphasizes behavior changes, missing tests, concurrency, and error branches. For real repositories, the latter often reveals skill better: the assistant must explain new code against old code, rather than improvising from a blank file. In daily work, you can let the assistant first review the diff, list possible behavior changes and missing cases, and then decide whether to let it make changes.
A reusable collaboration workflow
Writing a task in a fixed structure matters more than changing the wording.
- Background: module responsibilities, related APIs or pages, recent changes.
- Symptom: input, actual output, expected output, and whether it can be reproduced reliably.
- Scope: paths that can be modified and public contracts that must not be changed.
- Verification: tests to run and logs or response snippets that need to be pasted back.
- Stop conditions: stop when tests pass, stop and ask when it cannot be reproduced, or do not change API semantics on your own when a product decision is needed.
A sample task description can be very short:
Symptom: Export occasionally misses records when filtering "last 7 days" and results span pages.Reproduction: Use the test fixture export_paging; repeated runs should fail.Allowed changes: Export query and corresponding tests; do not change API field names.Done when: The test passes consistently, and you explain which layer the missing records occurred in.
Human responsibilities change accordingly: provide reproducible conditions and acceptance commands, check whether the diff exceeds scope, and confirm that tests actually cover the original symptom. The assistant’s responsibility is to search, hypothesize, modify, and bring back evidence. Mixing the two leads to mistaking “it cannot read minds” for “it cannot do engineering.”
Route tasks by type instead of betting on a single tool
Visual drafts, copy structure, and component assembly are suitable for assistants that are better at interface conventions or for design-driven workflows. Defect localization, regression completion, and behavior comparison after refactoring are suitable for workflows that can read repositories and run verification. The same person can use different assistants at different stages; this is not a lack of capability, but aligning the evaluation function to the task.
If a team wants to incorporate assistants into regular development, it is better to use several fixed internal baseline tasks rather than one landing page: an intermittent cross-module defect, a small change that requires adding tests before merging, and a diff review that intentionally contains a null pointer or boundary omission. Record whether the assistant finds relevant files on its own, whether it reproduces before modifying, whether it expands the change surface, and whether the final evidence is repeatable. These records predict better than “does it look good” whether it will save time in next week’s repository.
Conclusion
Coding assistants often look mediocre because the contest project is wrong, or because context, constraints, and verification are insufficient. Page generation can be used to observe tacit aesthetics, but real engineering capability shows up when the assistant can narrow the scope in the face of incomplete symptoms, use tests and logs to self-verify after changes, and point out behavior differences during review. Write project conventions clearly, write acceptance commands clearly, and place the assistant on repository tasks with history and tests. Only then will evaluation come close to the work you actually want it to handle.
