LLM Agent Evaluation: A Five-Stage Benchmark for Model Selection
This article presents an engineering approach to evaluating LLM agents by changing only the underlying model while keeping every other variable fixed. It defines four evaluation dimensions—capability, cost, stability, and ecosystem—and introduces a five-stage task suite covering skill packaging, web development, content design, knowledge base management, and browser automation. You will also find a checklist of common agent failure modes and the engineering safeguards that address them, helping you choose the model that best fits a long-running agent pipeline rather than chasing benchmark scores.
1. Why Only a Single-Variable Experiment Is Worth Running
In real engineering work, fluctuations in agent performance are often attributed to the wrong cause. When a task fails, teams usually respond by rewriting prompts, adding tools, or switching frameworks—but the variable that actually changed is often the underlying LLM. To isolate the root cause, you must lock down everything else: the same system prompt, the same memory store, the same skill set, and the same tool allowlist and permission boundaries, replacing only the inference model. This single-variable control is the core principle behind the experiment design in this article.
The approach in the original material is worth borrowing: clone four identical agent instances, swap only the model, and enable the same available high-reasoning tier across all of them. Only then can differences be attributed to the model itself rather than configuration drift.
Note that this article does not recommend or rank any specific vendor product. Instead, it abstracts a methodology: when you have multiple candidate models, how to use an engineering approach to decide which one is best suited to stay in the agent’s main pipeline over the long term.
2. A Layered Framework for Evaluating Candidate Models
Selection cannot rely on leaderboard scores alone. Evaluate candidates across four layers:
- Capability: complex instruction following, long-context stability, and structured output (JSON/Schema) compliance.
- Cost: token consumption per task, pricing differences between input and output, and the discount room created by cache hits.
- Stability: whether long sessions drop, rate-limiting behavior, and behavioral consistency after context compression.
- Ecosystem: native support for visual input, availability of companion CLI tools, and integration with existing observability systems (logging services, monitoring and alerting).
For the “token burn” problem, always measure with the same task set rather than trusting hearsay. A practical approach is to log input/output tokens, tool call counts, and retry counts for each turn, then convert them into a “cost per task.” That figure is far more useful for decision-making than a price sheet.
3. Five-Stage Task Design: Turning Evaluation into Observable Engineering Scenarios
Stage 1: Skill Packaging and Self-Check
Goal: turn a long system prompt document into a publishable, reusable capability package, and self-check for potential failure points after output.
The focus here is on “packaging,” not “copying.” A passing output should include a capability description, trigger conditions, input parameters, execution steps, failure fallback strategy, and examples. An illustrative structure:
skill:name: design-to-spectrigger: when the user provides a design file or prompt and asks for a specinputs: [source_file, output_format]steps: [parse, structure, generate_spec, self_check]fallback: request additional context when parsing failsself_check: [missing_fields, version_drift, permission_overreach]
This stage filters out a large number of models that can only restate content but cannot abstract it.
Stage 2: Web Development
The model must produce a runnable frontend page from a given requirement. This tests component decomposition, state management, accessibility, and responsive handling. Scoring ignores visual polish and focuses on whether the code runs, follows conventions, and handles edge cases.
Stage 3: Content Design and Copywriting
This covers presentation structure planning and copywriting, with emphasis on hierarchical organization, information density, and style consistency. The model must output an outline, key points, and speaker notes—not a vague paragraph.
Stage 4: Knowledge Base Management
This tests chunking strategy, metadata design, deduplication, and update mechanisms in a retrieval-augmented scenario. A good output specifies chunk size, overlap window, index fields, and invalidation handling.
Stage 5: Browser Automation
This is the most token-intensive stage, involving page understanding, element location, and exception retries. The evaluation focuses on failure recovery: when facing pop-ups, CAPTCHAs, or loading timeouts, does the model proactively stop and ask, rather than blindly executing high-risk actions?
4. Failure Mode Checklist: Typical Signals of Agent Framework Breakdown
- Failure to recognize local skill files, causing capability calls to fall through;
- Executing high-risk operations without confirmation, lacking a human gate;
- Forgetting constraints after long sessions, with output style drift;
- Hallucinated tool call parameters, fabricating nonexistent fields;
- Token consumption per task several times the baseline, with costs out of control.
To address these issues, the engineering side should implement structured output validation, tool parameter Schema validation, secondary confirmation for high-risk actions, context summary compression, and a cost dashboard built on logging services and monitoring/alerting.
5. Conclusion: Selection Is a Continuous Calibration Process
There is no “strongest model”—only the model that best matches the current pipeline. Use the five-stage task suite as a regression baseline, run it after every model upgrade, and record three curves: capability, cost, and stability. If you need managed inference and observability, you can build the evaluation pipeline with general cloud categories (such as container platforms, object storage, logging services, and monitoring/alerting); general product categories from vendors like Baidu AI Cloud can also serve as a reference direction. The ultimate goal is to keep the agent stably online for the long term, not to impress once in a demo.
