How to Evaluate LLM Agent Capabilities and Analyze Selection Costs
This article outlines a reproducible framework for evaluating and selecting LLM agents when multiple models claim strong agent capabilities. It explains why general-purpose benchmark scores fall short, breaks down four core capability areas—cross-file repository editing, full-repository generation from natural language, tool selection and chained calls, and cross-domain professional tasks—and shows how to align boundary conditions for fair comparison. It also covers local deployment cost estimation, a step-by-step selection workflow, and a generic cloud architecture, arguing that capability shape and total cost matter more than average scores.
1. Background: An “Early Open Source Release” Reveals the Competition Tempo
The pace of the open-source community was recently disrupted by a typical competitive move: a new lightweight model was originally scheduled to release its weights and technical documentation late at night, but went public two hours early. The reason was that a competing vendor claimed priority and open-sourced its own flagship lightweight version first. This kind of “jumping the gun” is not accidental, but a direct reflection of intensifying competition in the open-source ecosystem—release windows, documentation completeness, and weight availability have all become means of competing for developer attention.
Observing public leaderboards, the top of model trend rankings is almost entirely occupied by Chinese models, a significant portion of which are derivative versions from the same model family. Meanwhile, the models with the highest actual downloads and discussion heat in the community are often mid-sized parameter models (around 30B) and their quantized derivatives. There is a clear engineering logic behind this phenomenon: mid-sized models strike a good balance among “effect—VRAM—throughput.” They can run on a single card or even consumer-grade hardware through quantization, while being sufficient to support inference needs for most business scenarios.
This article does not judge any specific product as superior or inferior, but abstracts a more universal question: When multiple models all claim to be “good at Agents” in their marketing, how should developers design a reproducible and explainable evaluation and selection method?
2. Why “General Benchmark Scores” Are Insufficient for Selection
Traditional evaluation focuses on single-turn Q&A, knowledge memorization, and math and code snippet generation. Its limitations are:
- Task granularity is too short: Single-turn Q&A cannot expose state drift and error accumulation in long-chain tasks.
- Lack of environmental feedback: Real engineering tasks require reading and writing files, executing commands, and iterating based on errors, while static problems have no feedback loop.
- Single scoring dimension: Only looking at final answer accuracy ignores process costs (steps, tokens, latency).
Therefore, Agent-oriented evaluation is shifting from “answer accuracy” to multi-dimensional assessment of “task completion + process reliability + resource overhead.”
3. Capability Breakdown of Four Core Benchmarks
Synthesizing evaluation items simultaneously mentioned by multiple parties in public technical documentation, they can be grouped into four capability areas that happen to cover a complete software delivery chain.
3.1 Real Code Repository Understanding and Cross-File Modification
What is tested: locating issues in an existing codebase, understanding call relationships, making minimal necessary changes across multiple files, and verifying through execution.
The difficulty lies in context management: the repository size far exceeds the context window, so the model must learn “retrieve—locate—local reasoning” rather than stuffing all code into the prompt. Evaluation should focus on:
Localization accuracy = proportion of correct files included in the modification scopeModification success rate = proportion of tasks passing runtime verificationRegression introduction rate = proportion of new failures in existing tests after modification
The third item is most easily overlooked, yet directly determines whether a model can enter the production workflow.
3.2 From Natural Language Requirements to Full Repository Generation
What is tested: starting from a single requirement, designing the directory structure, splitting modules, generating a multi-file project, and ensuring it runs.
It tests “planning—decomposition—consistency” capabilities: whether interface definitions are consistent throughout, whether dependency declarations are complete, and whether the entry file is executable. Compared with snippet generation, it places higher demands on the model’s long-term memory and self-verification.
3.3 Tool Selection and Continuous Invocation
What is tested: making correct choices among multiple candidate tools, chaining multi-step calls, and adjusting strategy after errors.
In real business, tool invocation failures are often not “choosing the wrong tool,” but “assembling parameters incorrectly and not reading back the results.” A robust implementation usually requires the model to have explicit working memory and retry strategies, such as re-parsing error information after failure rather than repeating the same call:
for attempt in range(max_retries):result = call_tool(name, params)if result.ok:breakparams = repair_params(result.error) # Fix based on error feedbackelse:return fallback_plan()
3.4 Cross-Industry Professional Tasks and Computer Operation
What is tested: long-cycle planning, graphical interface or command-line operation, and the reliability of final deliverables. Such tasks have long cycles and many states, most testing the engineering capability of “task decomposition + progress self-check.”
4. The Right Way to Compare Horizontally: Align Boundary Conditions First
When placing multiple models in the same table for comparison, conclusions are almost inevitably distorted if operating conditions are ignored. At least the following variables must be recorded:
| Dimension | Impact if Not Unified |
|---|---|
| Agent framework and prompt template | The same model with a different framework can fluctuate by several points |
| Context length and retrieval strategy | Differences in long-repository tasks are amplified |
| Reasoning intensity / thinking budget | High budgets trade for scores, but costs rise non-linearly |
| Number of repeated runs and value-taking method | Single-run results and multi-run averages cannot be directly compared |
| Anti-cheating and answer leakage filtering | Affects score credibility |
A typical comparison conclusion might look like this: one model wins all four items, leading by about 5 points on a simple average, with advantages concentrated in real repository modification and tool invocation; the other two models each win two items, with only a fraction of a point difference in the four-item average. The correct reading of such results is: under unified conditions, differences are more reflected in the “shape” of capabilities rather than absolute levels—some lean toward existing engineering maintenance, others toward building from scratch and cross-domain operation. Selection should match the task distribution of the business, rather than chasing average scores.
5. The Cost Side: Resource Accounting for Local Deployment
Beyond effectiveness, what determines whether something can be deployed is the cost per task. While cloud pricing is not yet transparent, resource estimation for local deployment is a more reliable reference.
Quantization is the key lever. Taking 4-bit quantization as an example, a mid-sized model’s weight size is roughly on the order of hundreds of GB, while larger or higher-precision versions often require more than twice the VRAM and memory. A rough estimate can reference:
VRAM requirement ≈ weight size + KV Cache + runtime overheadKV Cache ≈ 2 × number of layers × hidden dimension × sequence length × batch size × precision bytes
The KV Cache grows linearly with context length and concurrency, and in long-context Agent scenarios often exceeds the weights themselves. Engineering recommendations:
- Prioritize model families with mature quantization formats and inference runtime support;
- Make decisions based on “cost per thousand tasks = hardware amortization + electricity + operations” rather than parameter count alone;
- Set up small-model fallbacks for long-tail tasks, forming tiered routing.
6. A Reproducible Selection Workflow
- Build a private evaluation set: Sample 50–200 items from real work orders, covering the four capability areas, and retain verification scripts that can be automatically judged.
- Fix operating conditions: Unify the framework, context, reasoning budget, and number of repetitions, and record everything.
- Three-dimensional scoring: Normalize completion, process reliability (steps / regression rate), and resource overhead separately, then weight them by business priorities.
- Cost back-calculation: Convert scores into “the hardware and concurrency scale required to achieve target completion.”
- Canary validation: Launch with small traffic, use logging services and monitoring alerts to observe failure distribution, then decide whether to expand.
7. A Generic Capability Combination for Cloud Deployment
If choosing cloud deployment, a closed loop can be built using generic capability categories: a container platform hosts inference services and elastic scaling, object storage holds model weights and evaluation artifacts, a message queue smooths peaks and chains tool invocations, and logging services and monitoring alerts handle failure localization and cost attribution for long tasks. Baidu AI Cloud has corresponding product categories for these generic capabilities, which can be freely combined according to the above architecture, avoiding strong coupling with a single inference framework.
8. Conclusion
Competition among open-source models is handing dividends to developers: more sudden releases, more available weights, and more mature quantization. But true selection capability comes from understanding benchmark boundaries, strictly aligning operating conditions, and continuously accounting for total costs. Rather than arguing “who is stronger,” it is better to accumulate the evaluation set, cost model, and canary process as team assets—this is the most certain gain in this competition.
