How to Evaluate and Choose LLM Agents: Methods and Practical Selection Framework
This article explains why public benchmark scores cannot be directly copied when choosing an LLM agent, and breaks down four key capability dimensions: real repository engineering, full-project generation from natural language, continuous tool calling, and long-horizon professional tasks. It outlines three typical evaluation patterns, a reproducible evaluation setup with a unified agent framework and executable verifiers, a weighted scoring table mapped to business scenarios, a first-order method for estimating local deployment memory, and a practical selection checklist focused on task-distribution fit rather than leaderboard rankings.
1. Why Benchmark Comparisons No Longer Transfer Directly
The open-source community recently saw an interesting pattern: two teams released new lightweight model weights and technical documentation almost simultaneously, with earlier-than-expected timing and disrupted cadence. This is essentially the combined result of falling inference costs and open-source release competition. For developers, the real question behind the noise is simple: which model is the better fit for your own task distribution.
The four evaluations listed in the original material—real code repository understanding, generating a complete project from natural language, continuous tool calling, and cross-industry professional task delivery—happen to cover four key facets of agent capability. But making a reliable judgment requires first understanding what these evaluations actually measure and why their scores cannot be compared horizontally.
It is important to note that different evaluations often differ in agent framework, context length, reasoning effort, number of repeated runs, and anti-cheating rules. This means the absolute value of a score has limited meaning. What is genuinely useful is the relative performance of the same model across different task types, and the results of re-testing on your own business data.
2. Breaking Down the Four Capability Dimensions
2.1 Real Code Repository Engineering
This type of evaluation typically provides a real open-source repository and a problem description, requiring the model to locate relevant files, understand call relationships, complete cross-file modifications, and run tests to verify. It assesses not single-point code generation but long-context retrieval, dependency reasoning, and a self-verification loop.
The engineering implication is direct: if your scenario is legacy system modernization, defect fixing, or batch refactoring, this dimension should carry the highest weight.
2.2 Generating a Complete Repository from Natural Language
Given a requirements description, the model must design the directory structure, split modules, generate multi-file code, and ensure it runs. This assesses planning ability and project completeness, and is highly relevant to needs like one-shot scaffolding generation and internal tool prototyping.
2.3 Continuous Tool Calling and Workflow Continuity
The model must decide when to call which tool, how to parse returned results, and how to fall back and retry after errors. This is the core that distinguishes agents from ordinary conversational models, and is key to enterprise workflow automation. When evaluating, focus on the success rate and average number of steps for multi-step tasks, rather than single-step accuracy.
2.4 Long-Horizon Professional Tasks and Delivery Reliability
Cross-industry professional tasks usually involve computer operation, document processing, and long-term planning, assessing the ability to stay on target after dozens of steps. These tasks are extremely sensitive to context management and state compression strategies.
3. Three Typical Patterns of Evaluation Results
Aligning the comparable metrics from publicly available technical documentation, results usually fall into three patterns. Understanding them is more valuable than memorizing a particular ranking:
- Across-the-board leader: leads on all four dimensions, with a lead of several points on the simple average of the four, concentrated in code repository and tool calling.
- Split results: one side is stronger on existing codebases and tool calling, the other is stronger on generation from scratch and cross-industry tasks, with an extremely small gap on the four-item average (often on the order of a few tenths of a point).
- Cost-first: main advantages in local deployability, memory and VRAM footprint after quantization.
The conclusion: there is no universal best solution, only a solution that matches the task distribution.
4. A Reproducible Evaluation Setup (Illustrative)
Do not directly cite public leaderboards. Instead, build a small-scale evaluation set on your own data:
# Pseudocode: build a reproducible agent evaluation pipelineTASKS = load_internal_tasks() # 20~50 real business tasksCONFIG = dict(framework="unified", # unified agent frameworkmax_steps=30,context="same", # unified context budgetrepeats=3, # run multiple times and averagetemperature=0.0)def run(model, task):results = []for _ in range(CONFIG["repeats"]):trace = agent_loop(model, task, CONFIG)results.append(verify(trace)) # judge with tests/verifiers, not manual scoringreturn aggregate(results) # success rate, average steps, latency, token usagereport = {m: mean(run(m, t) for t in TASKS) for m in candidates}
There are four key design points: a unified agent framework and context budget, fixed reasoning effort, multiple runs to obtain statistics, and executable verifiers instead of subjective scoring. Missing any one of them will distort the horizontal comparison.
5. Mapping Evaluation Metrics to Business Weights
Use weighted scoring rather than a simple average:
| Business Scenario | Repo Engineering | Repo Generation | Tool Calling | Long-Horizon Tasks |
|---|---|---|---|---|
| Legacy system maintenance | 0.45 | 0.10 | 0.30 | 0.15 |
| Internal tool prototyping | 0.15 | 0.45 | 0.25 | 0.15 |
| Workflow automation | 0.15 | 0.10 | 0.55 | 0.20 |
| General-purpose assistant | 0.25 | 0.25 | 0.25 | 0.25 |
After weighting, multiply by the cost per task—that is the metric you can actually make decisions on.
6. Estimating Local Deployment Cost
When no official cloud pricing is available, use parameter count and quantization bit width for a first-order estimate:
VRAM/memory requirement ≈ parameter count × bytes per parameter × (1 + KV cache and activation overhead)4-bit quantization: about 0.5 bytes per parameter
Take a medium-sized dense model as an example: 4-bit weights are on the order of hundreds of GB; if the parameter count doubles, the resource requirement roughly doubles as well. The KV cache grows linearly with context length and concurrency, and long-context scenarios often consume more resources than the weights themselves. So “can it run” must consider three things together: weights, cache, and batch concurrency.
7. Selection Decision Checklist
- Build an evaluation set of 20~50 real business tasks, and run a small-scale re-test first.
- Unify the framework, context, reasoning effort, and number of runs, and average over multiple runs.
- Weight by business scenario, rather than simply averaging the four scores.
- Estimate local resources: weights + KV cache + concurrency headroom, reserving 20% redundancy.
- Pay attention to license terms, data compliance, and operability, rather than a single score.
- Establish canary and rollback mechanisms, and continuously track quality drift with monitoring alerts and logging services.
8. Conclusion
The direct beneficiaries of intensifying model competition are developers: the cost per unit of intelligence keeps falling, and the space of choices keeps expanding. But method matters more than conclusions—returning the evaluation weights to your own task distribution, and making decisions with a reproducible experimental process and a clear cost model, is what keeps you from being led by leaderboards. If you need elastic compute and unified operations, you can build evaluation and canary environments on general capabilities such as the container platform, object storage, and monitoring alerts offered by Baidu AI Cloud, turning selection from “watching scores” into “watching data.”
