A Comparative Evaluation Method for LLM Selection in Agent Scenarios
In agent systems, the model is one of the core components that determine whether a task can be completed. The same memory, skills, system configuration, and tools can produce very different results when paired with different models. Model selection therefore should not rely solely on parameter counts or pricing tables; instead, it should be based on controlled testing in scenarios that closely resemble your real business. This article presents a reproducible evaluation methodology and explains which metrics matter for each type of task.
In an AI agent system, the model is one of the core components that determines whether a task gets done. With the same memory, skills, system configuration, and tools, swapping the model can produce dramatically different results. This means model selection should not be based solely on parameter counts or pricing tables—instead, it should rely on controlled comparative testing in scenarios that closely mirror your real business. This article outlines a reproducible evaluation methodology and explains which metrics to focus on for each type of task.
Why Agent Scenarios Need Dedicated Evaluation
General-purpose benchmarks typically focus on single-turn Q&A or individual coding problems, measuring a model’s ability on isolated inputs. Agent scenarios, however, involve multi-turn execution. The model must read context, call tools, decide when to ask the user for clarification, and maintain state across long-running tasks. These capabilities interact with one another. A model that excels on isolated single problems may fail to recognize locally installed skills, or may execute high-risk actions—such as deletion, sending, or payment—without requesting confirmation.
Evaluation therefore needs to cover three layers:
- Capability layer: Can the task be completed, and does the output meet quality standards?
- Behavior layer: Does the model follow constraints, request confirmation at appropriate moments, and call tools correctly?
- Cost layer: How many tokens and how much time does the same task consume, and how expensive are retries after failures?
Design Principle: Change Only One Variable at a Time
Controlled experiments require variable isolation. The recommended approach is as follows.
First, create an identical copy of the agent environment for each candidate model. The environment includes a long-term memory snapshot, installed skills, system prompts, sampling parameters (when the framework allows), the available tool list, and permission settings.
Second, replace only the model in each run. If a model supports adjustable reasoning effort, treat the effort level as a separate experimental variable and test both the default and maximum levels. Otherwise, differences in reasoning effort may be misattributed to differences in model capability.
Third, run each task at least three times. A single success or failure is not enough to draw conclusions—you need to observe whether results are stable.
Fourth, clear the conversation history before each run while keeping the same memory snapshot, ensuring every model starts from the same point.
Here is an example configuration:
experiment:shared:memory_snapshot: snapshot_v1skills_dir: ./skillssystem_prompt: prompt_v1tools: [file_read, file_write, browser, shell]permission_mode: ask_on_high_riskvariants:- name: model_amodel: candidate-areasoning: high- name: model_bmodel: candidate-breasoning: default
The purpose of this configuration is to make differences traceable. After the experiment, every conclusion can be mapped back to specific variable values, and others can reproduce the results using the same setup.
Designing and Evaluating Five Types of Tasks
1. Skill Packaging: Turning Experience into Installable Capability Packages
Skill packaging tests whether a model can organize domain experience into a capability package that others can directly install, load, and trigger. This differs from ordinary documentation work. Documentation is written for human readers, whereas a skill package must also serve machine-side triggering and execution. It must therefore clearly specify when to use it, how to execute it, what resources are required, and what boundaries apply.
A well-formed skill package typically includes the following components:
- Metadata: name, version, purpose description, and trigger conditions. If the trigger description is vague, the skill will either fire incorrectly or never fire at all.
- Core instructions: a step-by-step workflow that distinguishes mandatory steps from optional ones.
- Resource files: templates, examples, and reference materials loaded on demand, avoiding a context window flooded with content in one shot.
- Constraints and boundaries: which operations require user confirmation and which data must not be output.
- Self-check checklist: items to verify after execution.
The directory structure can follow this example:
my-skill/├── INSTRUCTIONS.md # Metadata, trigger conditions, core workflow├── references/ # Reference materials loaded on demand├── templates/ # Output templates└── scripts/ # Optional helper scripts
A lengthy design-oriented system prompt often carries many implicit rules, such as output format preferences, banned words, and formatting conventions. When rewriting it into a skill package, these implicit rules are the easiest things to lose. During evaluation, check whether the model has explicitly written these rules into the instructions, rather than merely copying the surface content of the prompt.
The self-check step is also an important scoring item. Ask the model to list the three to five places where it believes errors are most likely after producing its output, then compare this list against human review. Common failure points include: trigger descriptions that do not match actual usage scenarios; implicit rules from the original prompt not made explicit; broken reference paths for resource files; contradictory instructions; overly broad permission declarations; and internal paths or sensitive information left in examples.
2. Web Development: From Requirements to a Running Page
Web development tasks require the model to produce page code that can be opened directly based on a written requirements description. Evaluation should focus on the following points:
- Requirements coverage: Does every functional requirement have a corresponding implementation? Are any missing?
- Runnability: Does the page load correctly in a browser? Are there console errors?
- Edge-case handling: Do empty inputs, overly long text, and network failures produce reasonable feedback?
- Layout adaptation: Does the interface break on narrow versus wide screens? Does text overflow its container?
- Self-verification: Does the model proactively run checks after finishing, rather than simply declaring completion?
- Security hygiene: Does the code contain plaintext keys or unnecessary external dependencies?
Each item can be scored 0 or 1 and then weighted by importance. A weighted total score reflects output quality far better than a simple “it looks like it works.”
3. Presentations and Copywriting
These tasks require the model to organize source material into a well-structured presentation with accompanying copy. The evaluation focus differs from web development: factual accuracy matters more than stylistic flair.
- Structure: Does the slide order follow the audience’s understanding path? Does each slide carry only one core message?
- Information density: Is the amount of text per slide readable? Are the key points properly layered?
- Verifiable data: Models are prone to fabricating numbers and sources. During evaluation, the model should be required to
