Evaluating LLM Coding Capabilities: A Practical Guide to System Generation
This guide provides a practical framework for evaluating the code generation capabilities of Large Language Models (LLMs) in short-duration system generation tasks. It distinguishes between Vibe coding and Agentic coding, and outlines four key evaluation dimensions: code correctness, UI layout, multi-terminal adaptation, and requirement realization. Additionally, the article includes a scoring rubric template, a strategy for building scenario-based evaluation sets, a layered model selection approach, and security and compliance checks to help teams effectively assess and select AI coding tools.
Evaluating LLM Coding Capabilities: A Practical Guide to System Generation
1. Distinguishing Two Concepts
Vibe coding and Agentic coding are often used interchangeably, but they focus on different aspects.
- Vibe coding: Developers describe their ideas in natural language, and the model directly produces an application prototype. Developers primarily adjust requirements based on execution results. It emphasizes rapid prototyping.
- Agentic coding: The model autonomously completes multi-step tasks in an environment involving file reading/writing, command execution, and tool calling, while planning, checking, and correcting itself during the process. It emphasizes continuous execution and self-correction.
This article focuses solely on the system generation scenario, where the model produces a complete application prototype—including pages, interaction logic, and basic data processing—in a single pass based on a requirement description. The evaluation target is short-duration tasks. These tests reflect foundational coding skills, UI aesthetics, and engineering habits, but they do not indicate the model’s stability during continuous coding over several hours. Long-duration tasks require a separate evaluation design.
2. Four Evaluation Dimensions and Checkpoints
Before evaluating, define the dimensions and pass criteria to avoid drawing conclusions based solely on “whether it runs.”
2.1 Code Correctness and Runnability
Checkpoints:
- Can be launched directly after installing dependencies in a clean environment, requiring no or only minor modifications.
- No undeclared dependencies, undefined variables, or invalid API calls.
- Clear component division, centralized state management, and separation of styles and logic.
Pass criteria: The application starts successfully, and core functions can be manually walked through.
Record fields: Startup success, number of lines modified, error messages.
Common failure examples: Referencing non-existent methods from a component library, or API paths inconsistent with backend definitions.
2.2 UI Layout and Visual Presentation
Checkpoints:
- Uses grid or flexbox layouts with consistent column and row spacing.
- No more than three or four primary colors on a single page.
- Consistent alignment for tables, forms, and buttons.
Pass criteria: Ready for demonstration without additional adjustments.
Record fields: Layout rationality, color coordination, component alignment consistency.
Common failure examples: All elements stacked in a single column, or inconsistent heights between buttons and input fields.
2.3 Multi-Terminal Adaptation
Checkpoints:
- Take screenshots at both desktop and mobile widths.
- Whether navigation collapses or switches to top navigation on narrow screens.
- Whether multi-column cards switch to a single column on narrow screens.
- Whether click targets are large enough for touch operations.
Pass criteria: Content is fully visible at both widths without horizontal scrollbars.
Record fields: Layout changes at various widths, presence of horizontal overflow.
Common failure examples: Only desktop styles written, causing the mobile sidebar to obscure main content.
Prompt Tip: Explicitly state requirements for both terminal types in the prompt. Otherwise, the model usually will not proactively handle responsive layouts.
2.4 Requirement Realization
Checkpoints:
- Every functional point in the requirements has a corresponding implementation in the result.
- Whether the model reasonably adds unmentioned features, such as pagination or empty state prompts.
- Whether the page hierarchy is clear and information grouping is logical.
Pass criteria: Functional point coverage reaches the preset threshold.
Record fields: Number of required items, implemented items, reasonably added items, missed items.
Common failure examples: Ignoring an export feature, or implementing permission control only by hiding frontend buttons without backend API validation.
3. Scoring Rubric Template
The four dimensions can be placed in the same table, with each item worth 25 points, totaling 100 points.
| Dimension | Max Score | Scoring Criteria | Score | Remarks |
|---|---|---|---|---|
| Code Correctness | 25 | Startup status, number of runtime errors | ||
| UI Layout | 25 | Alignment, spacing, color scheme | ||
| Multi-Terminal Adaptation | 25 | Display effects at two widths | ||
| Requirement Realization | 25 | Functional point coverage |
It is recommended that each dimension be scored independently by two reviewers. If the score difference exceeds 5 points, they should review it together. The same batch of prompts should be tested on the same day and in the same environment, recording the model name, version, temperature parameter, and full prompt text. Only in this way can scores from different times be compared.
4. Building Scenario-Based Evaluation Sets
Public benchmarks reflect general capabilities, which may not align with enterprise business needs. Teams can select tasks from their own business to build a fixed evaluation set.
It is recommended to cover the following five categories of tasks, preparing three to five prompts for each:
- CRUD management pages
- Data visualization dashboards
- Mobile H5 pages
- API integration code, including request encapsulation and error handling
- Form validation and permission control
Once established, the evaluation set should remain stable, updating only when the business changes. Whenever switching models or upgrading versions, re-test using the same batch of prompts and retain historical results to track changes.
Threshold settings can be referenced as follows: Models scoring below 15 in any single dimension are eliminated from the candidate list. The top two in total score proceed to manual trial. The manual review ratio should be no less than 20% of the generated results. Prioritize reviewing code involving funds, permissions, and data deletion during spot checks.
Failure handling methods must also be agreed upon in advance. If a generated application fails to start, the error message can be fed back to the model as-is, allowing one retry. If it still fails, record it as a task failure without manual patching, to prevent manual fixes from masking the model’s true performance.
5. Layered Strategy for Model Selection
A single model may not perform best across every dimension. Teams can split tasks by letting different models handle the segments they excel at.
- UI prototypes and page structure: Prioritize testing models with strong multimodal understanding, focusing on layout and multi-terminal adaptation results.
- Core business logic and algorithms: Prioritize testing models with strong reasoning capabilities, and require them to provide test cases simultaneously.
- Result integration: Developers unify code style, API naming, and dependency versions, followed by the code review process.
Model capabilities change with versions. Conclusions about what a specific model excels at should be based on the team’s own evaluation set results.
6. Long Tasks Need Separate Evaluation
Short-duration generation performance does not represent long-task reliability. For agentic tasks requiring continuous coding over several hours, it is recommended to additionally assess three capabilities:
- Context management: After multiple rounds of modifications, does the model still remember the interfaces and data structures determined early on?
- Error correction: After a test failure, can the model locate the cause rather than repeatedly altering unrelated code?
- Task planning: Can the model break down large requirements into checkable small steps and report progress after each step?
Checkpoints can be set at key nodes, such as after database structure determination, core API completion, and before deployment. At each checkpoint, human confirmation is required before proceeding.
7. Security and Compliance Checks
Before generated code enters a project, the following checks must be completed:
- Security: Check for concatenated SQL, plaintext stored secrets, unvalidated user input, and backend credentials exposed in the frontend.
- Licensing: Check whether the generated code contains snippets of unknown origin, and confirm that the licenses of dependency libraries are compatible with the project.
- Data compliance: Confirm that prompts do not contain real user data, internal secrets, or undisclosed business information.
- Human confirmation: Features involving funds, permissions, and data deletion must be reviewed line-by-line by developers before merging.
8. Minimal Steps for Implementation
When a team is just starting out, they can proceed in the following order:
- Determine the four evaluation dimensions and the scoring rubric, clarifying the pass criteria for each item.
- Select about twenty prompts from business scenarios to form the first version of the evaluation set.
- Fix the running environment, recording model names, versions, and parameters.
- Run each candidate model through the complete evaluation set, scored independently by two reviewers.
- Take the top two for a one-week small-scale trial, recording rework frequency and manual modification time.
The value of evaluation lies in making the selection basis auditable. Scores are merely a tool to achieve this goal.
