Evaluating Post-Training Capabilities of Coding AI Models

    A practical guide to evaluating coding agents beyond benchmark scores. It explains why short evaluations fall short, breaks down the post-training pipeline that drives stability, addresses long-tail framework gaps and multimodal limitations, defines four autonomy levels with engineering guardrails, and offers a reusable five-dimension scoring method for model selection.

    1. Why Running a Few Benchmark Tasks Is Not Enough

    Drawing conclusions the moment a model is released is often unreliable. The capability of a coding agent is not a single function call but a long chain: understanding requirements, breaking down tasks, reading and writing files, executing commands, observing errors, revising the approach, and verifying again. Any jitter in any link of this chain gets amplified in the final result. Short tasks only cover the first two or three steps and fail to expose long-tail problems.

    A more reasonable approach is “immersion-style evaluation”: run the model continuously for about a week of a real project cycle, place it inside an existing codebase with existing dependencies and conventions, and observe three things—task completion rate, self-recovery ability after failures, and the cost of human takeover. These three metrics are closer to the real production experience than any static score.

    2. The Post-Training Pipeline: The Real Source of Stability Differences

    As base model architectures converge, the gap in coding capability comes mainly from post-training, which can be broken into four layers:

    1. Data construction layer: Collect trajectories with real repositories as the unit, rather than question-answer pairs based on isolated functions. Real repositories naturally carry contextual noise such as directory conventions, dependency versions, and test commands, so the model must learn to locate valid information within the noise.
    2. Reward design layer: Use “verifiable results” as the reward signal, such as whether unit tests pass, whether static checks introduce no new warnings, and whether build artifacts are runnable. Verifiable rewards are more resistant to reward hacking than human preference scoring.
    3. Execution feedback layer: Feed the raw error text, stack traces, and exit codes returned by tools back into the context so the model forms a “predict–execute–observe–revise” loop. Without this layer, the model only generates code that looks reasonable but cannot run.
    4. Long-horizon consistency layer: Suppress the goal drift and repeated work common in long tasks through context compression, externalized task lists, and staged self-checks.

    A mature pipeline produces an observable trait: when the same task is repeated multiple times, the variance of the results is significantly smaller. Stability itself is engineering value, because an unstable agent cannot be integrated into a continuous integration workflow.

    A minimal illustrative loop can be understood like this:

    1. def run_task(goal, repo, tools, max_steps=60):
    2. plan = planner(goal, repo) # Break down the task into a checkable list saved to disk
    3. for step in range(max_steps):
    4. action = executor(plan.next(), tools) # Read files / modify code / execute commands
    5. obs = tools.run(action) # Return stdout/stderr/exit_code
    6. if obs.passed():
    7. plan.advance()
    8. else:
    9. plan.patch(obs.summary()) # Write failure information back into the plan
    10. if plan.done():
    11. return verify(repo) # Build + test + static checks
    12. return escalate_to_human(plan) # A clear human takeover point

    The key design is the last two lines: there must be both objective verification and a clear escalation path. An agent without an escalation path will spin indefinitely on unsolvable tasks, consuming budget without producing a conclusion.

    3. Capability Imbalance: A Structural Problem That Must Be Addressed

    Many models that perform strongly on coding show obvious imbalance: they are fluent on mainstream tech stacks, but once switched to less widely used frameworks, obscure command-line flags, or local build conventions, the success rate drops noticeably.

    The cause is not mysterious. The distribution of post-training corpora is highly skewed, with head frameworks and common commands taking up the vast majority of samples, while the long tail is sparse and fragmented across versions. In long-tail scenarios the model is actually doing “analogical transfer” rather than truly mastering the material.

    There are three types of engineering responses:

    • Context completion: Write project-specific conventions into machine-readable documentation (directory structure, common commands, code style, commit conventions), inject it into the context at the start of a task, and turn long-tail problems into head problems.
    • Tool consolidation: Do not let the model freely assemble obscure commands; instead, wrap internal processes into a small number of stable interfaces, reducing reliance on parameter memorization.
    • Retrieval augmentation: Build retrieval channels for internal documentation and historical incident records, recalling on demand rather than relying on parametric memory.

    It is worth emphasizing that the solutions to this kind of problem lie on the engineering side rather than the model side, and teams control more variables than they might think.

    4. The Gap in Multimodal and Computer-Operation Capabilities

    Frontend and interface-related work relies heavily on visual capability. Without visual input, the model cannot judge whether the layout is misaligned, whether contrast meets standards, or whether interaction feedback matches expectations; it can only reason from structured code and text descriptions, and the result is “it can generate but is not usable.”

    A usable capability matrix can be divided like this:

    Capability dimension Backend and API development Frontend and visual work Data analysis and scripting
    Code generation Mature Usable Mature
    Command execution and self-verification Mature Limited Mature
    Visual understanding Not required Required Optional
    Interface operation loop Not required Required Not required

    The conclusion is direct: the degree of automation in full-stack delivery depends on the shortest board. When vision and interface operation are absent, the reasonable strategy is “backend automation + human-led frontend + model-assisted generation and review,” rather than forcing end-to-end hosting.

    5. Autonomy Levels and Practical Boundaries

    Autonomy can be divided into four levels to help teams assign tasks:

    • L1 Completion level: Single-file, single-function suggestions, with humans in control throughout.
    • L2 Module level: Complete a backend module under clear requirements and common frameworks, including tests and self-checks, with human review.
    • L3 Feature level: Complete a feature across multiple files, able to locate and fix regressions independently, with humans setting acceptance criteria.
    • L4 Goal level: A complete loop from requirement analysis, solution design, material preparation, implementation, testing, interface verification, to deployment, with humans providing only the goal and constraints.

    Currently, most well-performing coding models can stably reach L2 on common tech stacks, and touch L3 in some scenarios; L4 still requires human confirmation at key points. Assigning tasks at a granularity that matches their level is the most effective way to control risk.

    Recommended engineering constraints include: executing in isolated branches or containers, setting a whitelist for write operations, requiring explicit confirmation for operations with external side effects, archiving full logs and artifacts to a logging service and object storage, connecting key metrics to monitoring and alerting, and setting step and duration limits per task.

    6. A Reusable Evaluation Method

    It is recommended to score across five dimensions, 1 to 5 points each, using real projects rather than a question bank:

    1. First-pass success rate: The proportion completed without human intervention.
    2. Self-recovery rate: The proportion that can self-correct after errors.
    3. Long-horizon consistency: The frequency of goal drift and repeated work in long tasks.
    4. Long-tail coverage: Performance in obscure framework and command scenarios.
    5. Takeover cost: The minutes of human intervention and the amount of code rework.

    In execution, fix three to five representative tasks, record raw logs, and run repeatedly across versions to see trends. The value of a single demo is far lower than a repeatable baseline.

    7. Selection and Division-of-Labor Recommendations

    Technology selection should not pursue a single model to do everything, but should combine models by task layer: give backend tasks that are structured, verifiable, and low in long-tail content to models with high autonomy; keep human-led control for visually and interaction-intensive parts; and attach retrieval channels for retrieval- and knowledge-intensive parts.

    If using Baidu AI Cloud capabilities, a general-purpose category can be adopted as the carrier: the container platform provides an isolated execution environment, object storage archives code and artifacts, the logging service retains complete trajectories, monitoring and alerting track success rate and resource consumption, and the message queue decouples long-task scheduling. This isolates model capability fluctuations within a controllable range and lets the engineering system, rather than the quality of a single generation, determine the delivery floor.

    In summary, the right way to evaluate a coding agent is to look at whether the post-training pipeline is closed-loop, at long-cycle stability, at long-tail and multimodal shortcomings, and at the cost of human takeover. Quantifying these four and incorporating them into a baseline turns technology selection from a subjective feeling into a sustainable engineering decision.