How to Evaluate LLM Agent Capabilities and Choose the Right Model

    A practical guide to evaluating LLM agents beyond public leaderboards. Learn how to break agent capability into four measurable dimensions, unify evaluation setups, estimate local deployment VRAM and throughput costs, and run a reproducible selection workflow based on real tasks and total cost.

    1. Why “Top of the Leaderboard” Doesn’t Mean “Best for Your Use Case”

    Open-source model releases have been coming fast lately. One domestic open-source model was scheduled to publish its weights and technical documentation in the evening but went public two hours early; almost at the same time, another team officially claimed and open-sourced its own lightweight model. On the model trend leaderboard, nine of the top ten entries came from domestic models, and most of them were derivative versions of the same model family. Community preference clearly clusters around mid-sized parameter scales (around 27B) and their quantized and distilled variants.

    All this activity can create an illusion: that the model ranked at the top of a leaderboard is the best choice for your business. Engineering practice repeatedly shows otherwise. Public leaderboards can serve only as a first-pass screening signal, not as a decision-making basis. There are three reasons:

    • Inconsistent evaluation setups: Different teams use different agent frameworks, context lengths, reasoning budgets, numbers of repeated runs, and anti-cheating rules. The same task can score several points differently under a different scaffold.
    • Mismatched task distributions: Leaderboards measure general capability, while real business workloads are usually concentrated in a few high-frequency task types. Strong long-tail capability does not translate into returns.
    • Ignored cost structure: A single evaluation cares only about quality, but production has to pay for inference cost, deployment VRAM, operational complexity, and the hidden cost of failed retries at the same time.

    A more reliable approach is therefore: treat public leaderboards as a candidate pool, treat your own evaluation set as the decision engine, and treat the cost model as a constraint.

    2. Breaking “Agent Capability” Into Four Measurable Dimensions

    The evaluation items that keep recurring in public technical documentation can be abstracted into four orthogonal capabilities. Together they cover nearly all the critical paths of deploying agents in an enterprise.

    1. Real Repository Understanding and Cross-File Changes

    This measures whether a model can locate a problem in a large directory tree, understand the call chain, make consistent changes across multiple files, and verify the result by running it. It corresponds to long-term software engineering ability and is the hardest to game with short-term optimization.

    Key points for evaluation design:

    1. Input: repository snapshot + defect description (no location hints)
    2. Expected: set of modified files + set of passing tests
    3. Metrics: localization hit rate, patch pass rate, regression introduction rate

    Note that the regression introduction rate must be tracked. Otherwise a model may “pass” by deleting tests or loosening assertions.

    2. Generating a Complete Project From Natural Language Requirements

    This measures directory design, module separation, multi-file coordination, and project completeness. It corresponds to NL2Repo-style tasks. The difficulty is not writing code but making structural decisions: where to put configuration files, how to declare dependencies, and how to organize the entry point.

    Suggested scoring dimensions include whether the project builds with a single command, whether the directory layout is properly layered, whether circular dependencies exist, and whether documentation matches the implementation.

    3. Tool Selection and Consecutive Calls

    This measures whether a model can choose correctly among multiple candidate tools, chain multiple calls, and self-correct after errors. This capability matters most for process-driven business such as ticket handling, data reconciliation, and report generation.

    The key metrics are first-attempt selection accuracy, average number of retries, and error recovery success rate. Many models have a high single-step accuracy but see success rates drop sharply after five consecutive steps. This kind of decay must be measured separately.

    4. Long-Horizon Cross-Industry Professional Tasks

    This measures long-term planning, graphical interface operation, and delivery reliability. It corresponds to Agents’ Last Exam-style hard tasks. It is closer to real office scenarios and best exposes weaknesses in context management and plan correction.

    3. How to Compare Models Properly: Unify the Setup First, Then Talk About Winning

    Comparing three candidate models across four dimensions under a unified setup yields a few typical conclusions:

    • One model wins all four items, leading by about 5 points on a simple average, with the advantage concentrated in repository modification and consecutive tool calls;
    • The other two models split the results, each winning two items, with a gap of only about 0.1 points on the four-item simple average, effectively in the same performance band;
    • Because the scaffolds, context, reasoning budgets, run counts, and anti-cheating policies differ, all scores are for reference only.

    The third point is the most worth remembering. When the average-score gap is smaller than the evaluation noise, selection should give way to cost, ecosystem, and operability. A common engineering judgment is that if two models differ by less than 1 point on average but differ by more than 2x in per-token cost or deployment VRAM, the lower-cost model is almost always the better choice. It lets you raise retry counts, context length, and integration test scale across the board with the same budget, so the final business metrics end up better.

    4. Doing the Cost Math: VRAM and Throughput for Local Deployment

    When cloud pricing is not public, local deployment can approximate the cost. The rule of thumb is that after 4-bit quantization, a mid-sized dense model’s weight footprint is roughly in the hundreds of GB; doubling the parameter count or using a wider architecture roughly doubles the VRAM requirement as well. So “who is cheaper” is often already decided at the deployment stage.

    A rough example (illustrating the method only, not specific product data):

    1. # Rough VRAM estimate: weights + KV cache + runtime overhead
    2. def estimate_vram(params_b: float, bits: int, ctx_len: int,
    3. layers: int, kv_heads: int, head_dim: int) -> float:
    4. weight_gb = params_b * bits / 8 # weight footprint
    5. kv_gb = 2 * layers * kv_heads * head_dim * ctx_len * 2 / 1e9 # fp16 KV
    6. return weight_gb + kv_gb + weight_gb * 0.15 # reserve runtime overhead
    7. print(estimate_vram(30, 4, 32768, 48, 8, 128))

    It is worth stressing that VRAM is only the entry threshold. What really determines unit cost is throughput and concurrency: batching efficiency, prefix cache hit rate, and the impact of quantization on long context can all make the actual cost per million tokens differ by several times. It is better to run load tests with real business traffic and record P95 latency and cost per thousand tasks than to trust theoretical values.

    5. Implementation Advice: A Reproducible Selection Workflow

    1. Build a candidate pool: Screen 3-5 models of the same scale from public trends and community feedback. Avoid comparing across parameter scales directly.
    2. Define the evaluation set: Sample 100-300 real tasks from historical tickets, stratified by the four capability dimensions, with the scaffold and random seed fixed.
    3. Unify the setup: Fix context length, reasoning budget, max steps, and retry policy, and record all configurations to ensure reproducibility.
    4. Calculate total cost: Convert inference fees, deployment resources, operations effort, and failed retries into “cost per thousand successful tasks.”
    5. Run a small-traffic canary: Run in parallel with 5% of traffic and track success rate, human takeover rate, and user satisfaction.
    6. Build regression checks: Run the evaluation set after every model or prompt change to prevent capability regression.

    Architecturally, it is advisable to abstract the model integration layer into a unified gateway that hides differences in API protocols, context management, and streaming output across models. Use a message queue to smooth traffic spikes, object storage to archive intermediate artifacts, and logging and monitoring with alerting to trace every tool call. This way, business code needs almost no changes when swapping models.

    6. Conclusion

    Intensifying model competition is good news for developers: prices are pushed down, open weights can be deployed freely, and capability boundaries keep expanding. But real engineering capability shows in “not being led by the leaderboard” — evaluate with a unified setup, validate with real tasks, and constrain decisions with total cost. When the average-score gap falls into the noise range, what you are really competing on is no longer the model but your evaluation system and engineering maturity.