Evaluating and Selecting Chinese LLMs for Agentic Coding: A Practical Framework

    This article explains why short benchmark runs fail to measure an LLM's agentic coding ability and proposes a more reliable evaluation approach based on long-running, real-world tasks. It covers the key factors that determine an agent's upper limit, including the completeness of the post-training pipeline, stability in instruction following, self-correction, and long-horizon consistency. It also discusses common capability gaps across frameworks, command-line environments, and retrieval, why multimodal and computer-use capabilities matter for full-stack closure, and how to design reproducible evaluations with layered tasks and quantitative metrics. Finally, it offers scenario-based selection guidance for combining models across backend, frontend, and infrastructure layers.

    1. Why Running a Few Problems Cannot Measure Agentic Coding Ability

    In the traditional evaluation paradigm, a model’s ability can be approximated with a set of static problems: you provide a requirement, the model outputs code, and test cases decide whether it passes. But once the model is placed inside an agent framework, the nature of the task changes. An agent does not answer a question in a single shot; it enters a loop of planning, calling tools, observing results, and revising the plan. What determines success is no longer the quality of a single generation step, but stability across a long chain: whether the model detects its own mistakes, whether the context gets polluted, and whether noise in tool outputs triggers cascading misjudgments.

    A more engineering-realistic approach is therefore to extend the observation window and run real tasks continuously for hours or longer, observing performance across requirement understanding, directory structure planning, dependency selection, coding, self-testing, repair, and deployment. Short runs tend to overestimate ability; only long runs expose the weak points.

    2. The Post-Training Pipeline: The Real Variable That Sets the Ceiling

    Among the many capability dimensions, the most important one to examine first is the completeness of the post-training pipeline, especially whether a reinforcement training loop for code and tool use is in place. A closed loop usually shows three observable characteristics:

    1. Stable instruction following: Given a long requirement description with constraints, the model keeps aligning with the goal instead of drifting midway.
    2. Self-correction: After a test failure, compile error, or abnormal log, the model locates the relevant files and makes the minimal necessary change instead of repeatedly rewriting the overall structure.
    3. Long-horizon consistency: After multiple rounds of tool calls, the model still remembers the original architecture and interface conventions and does not casually overturn established designs.

    For a model built on a complete post-training methodology, improvement is predictable, because the team knows which type of data to add next and which reward signal to design. In contrast, a model that relies only on scaling parameters tends to show a randomly fluctuating capability curve.

    3. Uneven Capabilities: The Distribution Matters More Than the Total Score

    In agent scenarios, uneven capabilities are more damaging than in chat scenarios. Three common forms are:

    • Narrow framework coverage: The model performs well on mainstream ecosystems and high-frequency frameworks, but may fabricate nonexistent APIs when switching to secondary frameworks or obscure libraries.
    • Unfamiliarity with command lines and engineering environments: A lack of knowledge about edge-case parameters, non-standard directory conventions, and private build scripts can break automation at a critical step.
    • Insufficient retrieval and knowledge updates: Faced with dependencies that differ significantly across versions, the model cannot verify effectively and can only guess from parametric memory.

    For evaluation, it is better to build a capability matrix than a single score: the horizontal axis is task type (backend APIs, data layer, scripting and toolchains, frontend interaction, testing and deployment), and the vertical axis is completion autonomy (requires human takeover / can be automated but needs spot checks / fully automatic). Large blank areas in the matrix indicate that such tasks still need a human fallback.

    4. Multimodal and Computer Use: The Dividing Line for Full-Stack Closure

    Modern software projects are rarely pure backend. Without visual understanding and the ability to operate a graphical interface, there is a structural gap: the model can complete server-side logic but cannot “see” the rendered page, and therefore cannot adjust layout, spacing, and visual hierarchy based on visual feedback. The result is a forced split of labor: the backend can be automated, while the frontend and acceptance still require humans.

    A system with multimodal and interface-operation capabilities can extend the loop to: requirement summarization → product structure and interaction draft → coding → asset generation → automated testing → interface operation and visual inspection → aesthetic and usability tuning → iteration → deployment. The value here is not only saving labor, but forming an observable feedback loop: only when the model can see the result can it optimize the result.

    To make the conclusions credible, design the evaluation as a repeatable experiment:

    • Layered task set: Set up three levels of tasks—beginner, advanced, and real project—covering different frameworks and obscure toolchains.
    • Constraint injection: Add constraints such as version locking, directory conventions, and banned dependencies to the requirements to test instruction following.
    • Interruption and recovery testing: Deliberately create dependency conflicts or test failures and observe whether the recovery path is the shortest.
    • Quantified metrics: Record the number of human takeovers, the proportion of invalid tool calls, the average number of repair rounds, and end-to-end time.
    • Illustrative evaluation script:
    1. metrics = {
    2. "human_takeover": 0, # number of human takeovers
    3. "invalid_tool_calls": 0, # invalid or failed calls
    4. "repair_rounds": [], # time per repair round
    5. "e2e_minutes": 0.0 # total end-to-end duration
    6. }
    7. def run_task(agent, task):
    8. state = agent.start(task)
    9. while not state.done and state.turns < state.max_turns:
    10. result = agent.step(state)
    11. if result.tool_failed:
    12. metrics["invalid_tool_calls"] += 1
    13. if result.need_human:
    14. metrics["human_takeover"] += 1
    15. state = result.state
    16. metrics["repair_rounds"].append(state.elapsed)
    17. return state.passed

    6. Adoption Guidance: Layered Selection by Scenario

    In engineering practice, there is no need to pursue an all-capable model. A more robust approach is a layered combination:

    1. Give backend and data processing to models with strong long-horizon stability and standardized tool calls to achieve a high degree of automation.
    2. Configure frontend and visual acceptance with solutions that have multimodal and interface-operation capabilities to complete the feedback loop.
    3. Keep a human review gate for obscure frameworks and edge-case command lines, or have the model produce a plan first and then confirm it manually.
    4. For the infrastructure layer, combine general cloud capabilities such as container platforms, object storage, logging services, and monitoring and alerting to standardize build, artifacts, and observability, reducing the model’s unfamiliarity with the environment.

    If an enterprise wants to host such agent workloads in its own environment, it can build a unified engineering foundation on the general computing, container, and observability capabilities provided by Baidu AI Cloud, so that model evaluation and production runs share the same set of environment standards.

    7. Conclusion

    To evaluate a coding model for agents, the core is not its rank on a leaderboard, but three things: whether the post-training pipeline forms a sustainable methodology, whether the capability distribution covers the full chain of real projects, and whether multimodal and interface-operation capabilities provide closed-loop feedback. Only by extending the observation window, layering the tasks, and quantifying the metrics can you reach conclusions that are truly useful for engineering decisions.