Evaluating LLM Agents: Key Aspects of Post-Training and Agent Capability Assessment

    This article outlines a practical framework for evaluating LLM-based agents beyond simple benchmark questions. It explains why post-training pipeline completeness matters more than single scores, why variance in long-horizon tasks is a core risk, and how capability gaps appear across ecosystems, retrieval, and front-end work. It also covers multimodal understanding and UI operation as part of a full-stack automation loop, and closes with a reusable evaluation checklist covering task tiers, environment simulation, metrics, boundary testing, cost accounting, and version regression.

    1. Why Running a Few Test Cases Is Not Enough to Evaluate an Agent

    Traditional evaluation relies on standardized questions: given an input, compare the output. Once a model is placed inside an agent framework, however, the evaluation target shifts from “a single answer” to “a behavior sequence that may run for hours.” The agent must break down requirements on its own, select tools, read and write files, execute commands, observe results, correct errors, and re-plan when something fails. For this kind of long-chain behavior, the key metrics are no longer single-point accuracy, but task completion rate, process stability, and error self-recovery.

    A more reasonable approach is therefore to let the model work continuously in a realistic or simulated engineering environment for a period of time and record its performance across multiple iterations, rather than drawing conclusions from a small set of questions. This article abstracts a general evaluation framework for technology selection and internal assessment.

    2. Post-Training Quality: A Complete Pipeline Matters More Than a Single Score

    Post-training typically includes supervised fine-tuning and preference alignment or reinforcement learning stages. What actually determines agent performance in engineering practice is whether this pipeline forms a closed loop:

    1. Data and task construction: whether it covers repository-level context rather than isolated fragments;
    2. Reward or preference signals: whether it provides stable feedback for results that are runnable, testable, and rollback-capable;
    3. Training and evaluation consistency: whether the training distribution is close to the production distribution, avoiding overfitting to the evaluation set;
    4. Regression and anti-degradation: whether general capabilities are sacrificed after each iteration.

    A team with a complete reinforcement pipeline can usually keep improving code-related task performance in later versions. In contrast, if improvements come only from stacking more data, capability gains tend to be unstable and hard to reproduce. For evaluation, it is advisable to fix a set of in-house tasks and compare across versions longitudinally, looking at variance rather than only the mean.

    3. Stability First: Variance Is the Core Risk in Long-Horizon Tasks

    When the same model runs the same task multiple times and results differ substantially, it introduces uncontrollable costs for automated pipelines. Stability can be measured at three levels:

    • Instruction-following stability: whether constraints are followed strictly without expanding scope on its own;
    • Tool-call stability: whether parameter formats and call order stay consistent, and whether retries after failures converge;
    • Output consistency: whether the structure, interfaces, and naming of repeated generations are predictable.

    An illustrative evaluation record structure is shown below (pseudocode, expressing only the measurement approach):

    1. record = {
    2. "task_id": "backend_module_01",
    3. "run_index": 3,
    4. "success": True,
    5. "steps": 42,
    6. "tool_errors": 2,
    7. "recovered": True,
    8. "duration_min": 37,
    9. "human_interventions": 0
    10. }
    11. # Track the mean of success, and also the variance of steps / tool_errors

    When variance is too large, even a decent average success rate makes the model unsuitable for unattended automated workflows.

    4. Uneven Capabilities: From “Writing Code” to “Doing Engineering”

    Agent capability is often mistaken for a single whole, when it is actually a combination of several sub-capabilities. Common forms of unevenness include:

    1. Uneven ecosystem coverage: familiarity with mainstream frameworks and common commands, but little knowledge of secondary frameworks and obscure CLI tools, which leads to plausible-looking but non-runnable solutions;
    2. Weak retrieval and verification: not being good at proactively looking up material or checking version differences, resulting in reliance on outdated usage;
    3. Missing front-end and visual steps: without multimodal understanding, it is hard to “see” rendered results and adjust accordingly;
    4. Incomplete UI operation loop: without reliable UI operation capability, the agent cannot complete clicks, validation, and regression on its own.

    The engineering implication is direct: an uneven model is best confined to convergent tasks such as “clear constraints + common tech stack + backend modules,” and anything beyond that boundary needs a human fallback.

    5. Multimodal and UI Operation: The Missing Piece for Full-Stack Automation

    Modern full-stack development is more than writing code; it also involves checking against design mockups, inspecting rendering results, and validating interaction feedback. If a model has multimodal understanding and UI operation capability, it can theoretically form the following loop:

    Requirement understanding → solution design → code generation → asset generation → run tests → UI operation and visual validation → iterative fixes → deployment and observation

    Missing any link breaks the automation chain: the backend can run through automatically, while the front end still requires repeated manual adjustment. Evaluation should therefore include tasks specifically designed to require “looking at an image or a page,” to verify whether the loop actually holds.

    • Task tiers: single-file functions, module-level development, cross-module refactoring, end-to-end full-stack delivery;
    • Environment simulation: provide isolated repositories, dependency caches, log services, and monitoring alerts in a container platform to guarantee replayability;
    • Metric combination: success rate, average steps, tool error rate, number of human interventions, duration, output consistency;
    • Boundary testing: deliberately introduce obscure frameworks and unconventional commands to observe whether the model shows “admitting it does not know and then retrieving” behavior;
    • Cost accounting: count human fallback time into total cost rather than looking only at model invocation overhead;
    • Version regression: rerun the same task set after every model or prompt-strategy change to prevent capability degradation.

    7. Conclusion

    Evaluating an agent is essentially evaluating its reliability, coverage, and closed-loop capability under real engineering constraints. Whether the post-training pipeline is complete sets the ceiling for improvement, stability determines whether it can run unattended, and ecosystem coverage plus multimodal/UI operation determine its applicable boundaries. Teams are advised to run longitudinal evaluation on their own task sets, deploy models first in scenarios with clear boundaries, and gradually expand the range of tasks the model can complete autonomously. General capabilities such as the container platform, log service, and monitoring alerts offered by Baidu AI Cloud can also be used to build a reproducible evaluation and observation environment.