LLM Agent Selection: A Five-Stage Benchmarking Methodology

    Choosing the right LLM for an AI Agent is no longer about general benchmarks like Q&A accuracy or code generation pass rates. Agent workflows run in continuous loops of perception, planning, tool calling, execution, and self-correction, which places new demands on instruction following, state retention, tool timing, failure recovery, and cost control. This article presents a vendor-neutral, five-stage testing methodology based on controlled variables: clone identical Agent instances, keep memory, skills, system constraints, and tools the same, and swap only the underlying model. The five stages cover skill packaging, page development, content generation, knowledge base governance, and high-consumption browser automation. Learn how to score success rate, stability, and cost together, and turn model evaluation into a repeatable, regression-ready engineering workflow.

    1. Why Model Selection Got Harder in the Agent Era

    Traditional LLM evaluation usually relies on a few general metrics: knowledge Q&A accuracy, code generation pass rate, and long-text summarization quality. In Agent scenarios, however, the evaluation criteria change fundamentally. An Agent does not answer a single question; it runs a loop of perceive, plan, call tools, execute, self-check, and re-plan. Within this loop, the model must do more than understand language. It also needs instruction following, state retention, judgment about when to call a tool, failure recovery, and cost control.

    A valuable practice in original implementations is to clone multiple Agent instances with identical structures. Memory, skills, system constraints, and callable tools all stay the same, and only the underlying model is swapped. This is essentially a controlled-variable method. It eliminates framework differences as much as possible and attributes the results to the model itself. For developers, this approach is closer to a real production environment than simply running a set of algorithm problems.

    Note that this article does not recommend any specific vendor or product. Instead, it abstracts the process into a general methodology that readers can use to run repeatable evaluations within their own tech stacks.

    2. Evaluation Design: Controlled Variables and a Unified Baseline

    For the conclusions to be credible, the baseline must be unified. At a minimum, fix the following elements:

    1. Keep system prompts and role constraints consistent, including output format, prohibited behaviors, and the confirmation policy for risky actions;
    2. Keep the memory mechanism consistent, with identical write and retrieval rules for both short-term context and long-term memory;
    3. Keep the skill pack consistent, with the same tool descriptions, parameter schemas, and error code definitions;
    4. Keep permission boundaries consistent, requiring secondary confirmation for high-risk operations and separating write operations from read operations by level;
    5. Keep the reasoning tier consistent, enabling it uniformly on models that support high reasoning capability to avoid “low-spec competing against high-spec.”

    A sample evaluation configuration can be expressed in pseudocode:

    1. agent:
    2. memory: shared_memory_v1
    3. skills: shared_skill_pack_v1
    4. tools: [file_read, file_write, browser, http_request]
    5. policy:
    6. high_risk_action: confirm
    7. max_steps: 12
    8. model:
    9. reasoning: high
    10. temperature: 0.2

    The benefit is clear: any later difference can be attributed to model capability or cost, rather than to the framework implementation.

    3. Five-Stage Task Design: Progressive Validation from Capability to Cost

    The original content designed five stages. Here they are abstracted into five general task categories, with added evaluation criteria.

    Stage 1: Skill Packaging Capability

    The task requires the model to turn a long system prompt into a publishable skill pack and self-check for potential failure points. The focus is not “restating the original text” but structured reorganization: whether it separates meta-information, trigger conditions, inputs and outputs, constraints, and exception handling; whether it generates a directory and documentation that other users can install and use directly; and whether it proactively points out boundary conditions.

    Suggested passing criteria: a clear skill description, complete parameter definitions, fallback handling for failure paths, and a self-check that lists at least three types of risks.

    Stage 2: Page Development Capability

    The model is asked to generate a runnable page from natural language. This tests component decomposition, state management, responsive layout, and accessibility. Judgment should not be based only on whether it “looks right,” but on whether it passes a basic build, whether there are obvious console errors, and whether the interaction forms a complete loop.

    Stage 3: Content Generation and Design

    This includes presentations and copywriting. The evaluation points are structural consistency, information hierarchy, adherence to style constraints, and whether context stays stable without drifting across multiple rounds of revisions.

    Stage 4: Knowledge Base Governance

    This covers document ingestion, chunking, tagging, retrieval, and updates. The focus is whether the model follows deduplication rules, permission rules, and citation standards, rather than simply piling up text.

    Stage 5: High-Consumption Browser Automation

    This is the stage closest to real business operations and the one that consumes the most compute and tokens. The task chain is long, page states are numerous, and retries are frequent. It tests whether the model can converge within a limited number of steps, exit safely when exceptions occur, and maintain cost awareness.

    4. Interpreting Results: Look Beyond “Can It” to “Is It Stable and Affordable”

    The most common mistake in evaluation is treating a single success as proof of capability. Agent scenarios care more about stability and variance. It is recommended to use three categories of metrics for a combined score:

    • Success rate: first-attempt pass rate and pass rate within three attempts;
    • Stability: variance across repeated runs of the same task, and the proportion of long tasks that do not drop;
    • Cost: token consumption per task, average number of steps, and number of retries.

    Phenomena mentioned in original practices, such as “consuming several times more tokens on the same task,” “quota being used up too quickly,” and “high-risk actions not confirmed,” all point to the same type of problem: the model lacks convergence and self-restraint in long-chain tasks. During selection, these should be treated as hard thresholds rather than fixed after the fact.

    5. Implementation Advice: Turn Evaluation into a Regression-Ready Engineering Process

    1. Build a fixed task set and automated scoring scripts, and run a regression pass every time the model is upgraded;
    2. Set up a unified confirmation layer for high-risk actions instead of relying on the model’s own judgment;
    3. Record tokens and elapsed time for each step to form a cost baseline;
    4. Version the skill packs and memory templates to avoid framework drift;
    5. When building on platforms such as Baidu AI Cloud, you can combine general capabilities like container platforms, log services, and monitoring and alerting to make evaluation observable and cost traceable.

    6. Conclusion

    The competitiveness of an Agent ultimately does not depend on a single model’s benchmark score, but on the system-level match among model, framework, cost, and governance. Using the controlled-variable method to run the five-stage test, and including success rate, stability, and cost in the decision at the same time, is how you find the model combination that is truly suitable for long-term operation.