How to Evaluate LLM Agent Capabilities and Choose the Right Model

    A practical guide to evaluating large language model agent capabilities across four core dimensions, standardizing benchmark conditions for fair comparison, estimating local deployment resource costs, and matching model selection to specific engineering scenarios instead of leaderboard rankings.

    1. Why Model Benchmarks No Longer Guide Engineering Decisions

    Over the past two years, open-source large language models have entered a phase of rapid iteration. It is not unusual for a single model family to release multiple weights and technical reports within the same week, and leaderboard rankings can be reshuffled in a matter of days. For developers, this creates a practical problem: a single aggregate score is no longer enough to tell whether a model fits a specific business.

    There are three reasons.

    First, evaluation targets have shifted. Early benchmarks focused on knowledge question answering and text comprehension. What actually determines production results now is agent capability: whether a model can locate a problem inside a real codebase, generate a structurally complete project from a requirement, call tools repeatedly and self-correct after errors, and deliver reliably on unfamiliar industry tasks.

    Second, evaluation implementations vary enormously. Teams differ in agent frameworks, context length, reasoning effort, sampling counts, and anti-cheating rules. The same model can score very differently under different configurations, so horizontal comparisons without a shared baseline have limited value.

    Third, the cost structure has moved from unit price to total cost of ownership. Beyond cloud API fees, local deployment factors such as GPU memory and RAM usage, accuracy loss after quantization, and throughput and latency behavior often decide whether a model can scale.

    For these reasons, this article does not recommend any specific model or product. Instead, it abstracts a reusable evaluation and selection methodology.

    2. Four Core Dimensions of Agent Capability

    Looking at the agent task shapes the industry currently focuses on, capabilities fall into four categories, each mapping to a clear engineering scenario.

    2.1 Understanding Real Repositories and Cross-File Changes

    This dimension measures how a model performs inside an existing codebase: whether it can read the directory structure and dependency relationships, locate a specific file and function from a one-line defect description, make consistent changes across files, and verify them by running tests.

    The key here is not “writing a correct snippet” but correctness over a long chain of steps. A wrong localization, a missed change, or an introduced regression all cause the task to fail. Three metrics are worth recording: localization accuracy, test pass rate after modification, and average number of interaction turns.

    A sample evaluation output structure looks like this:

    1. {
    2. "task_id": "repo-fix-014",
    3. "localized": true,
    4. "files_changed": 3,
    5. "tests_passed": 18,
    6. "tests_failed": 1,
    7. "turns": 6,
    8. "regression": false
    9. }

    2.2 Generating Complete Projects from Natural Language Requirements

    This dimension measures greenfield capability: given a business requirement, the model must design the directory layout, split modules, coordinate multiple files, and generate configuration on its own, producing a runnable project skeleton.

    The evaluation focus is completeness rather than snippet quality: whether an entry file is missing, whether dependency declarations are self-consistent, whether interfaces between modules match, and whether the project builds on the first attempt. In practice, executable validation works better than manual reading scores, meaning “can dependencies be installed and can the project start successfully.”

    2.3 Tool Selection and Consecutive Calls

    This dimension measures decision-making within a given tool set: picking the right tool, calling tools in the correct order, parsing return values, and adjusting strategy after an error. It maps directly to real business scenarios such as retrieval, computation, database access, and external API orchestration.

    Three failure modes deserve attention: choosing the wrong tool, constructing invalid parameters, and repeating the same call after a failure without changing strategy. Evaluation should track tool selection accuracy and the proportion of ineffective repeated calls.

    2.4 Cross-Industry Professional Tasks and Long-Horizon Delivery

    This dimension measures long-range planning, interface operation, and delivery reliability in unfamiliar domains. Tasks typically span multiple steps and contain implicit constraints, so the model must decompose the goal itself, maintain intermediate state, and produce a usable result at the end.

    Scores for these tasks fluctuate widely. Run each task multiple times and report the distribution rather than a single result, including both the median and the failure rate.

    3. A Shared Baseline: Making Horizontal Comparison Meaningful

    Comparing numbers taken from different sources almost inevitably distorts conclusions. A more reliable approach is to build your own evaluation pipeline with the following variables fixed:

    • Keep the agent framework and prompt templates identical;
    • Keep the context window limit identical;
    • Keep reasoning effort, sampling temperature, and maximum turns identical;
    • Run each task a fixed number of times and report the median and variance;
    • Disable test visibility or enable it uniformly, to avoid answer-lookup cheating;
    • Record the actual resource consumption of each run for later cost conversion.

    Under one shared baseline, a dual view of “per-dimension comparison plus simple average” works well: the per-dimension breakdown reveals capability bias, while the average supports quick filtering. Note that a simple average assumes equal weight across dimensions. If your business only cares about repository maintenance, raise that dimension’s weight instead of copying the average score.

    A reusable weighted scoring implementation:

    1. weights = {
    2. "repo_engineering": 0.4,
    3. "project_generation": 0.2,
    4. "tool_orchestration": 0.3,
    5. "long_horizon_delivery": 0.1,
    6. }
    7. def score(metrics: dict) -> float:
    8. return sum(weights[k] * metrics[k] for k in weights)

    Public horizontal evaluations point to a common pattern: across the four capabilities, different models show clear capability bias. Some are stronger at modifying existing projects and orchestrating tools, while others are more stable at generating complete projects from scratch and handling long-horizon cross-domain tasks, and the gap in overall average scores may be very small. This suggests selection should follow the scenario, not the leaderboard position.

    4. From Scores to Cost: Estimating Local Deployment Resources

    Evaluation scores only decide whether a model is usable; resource usage decides whether it is affordable. For local or private deployment, a rough estimate can follow this approach:

    1. Start from the parameter count and convert weight size by precision: half precision is roughly parameters × 2 bytes, 8-bit quantization roughly × 1 byte, and 4-bit quantization roughly × 0.5 byte, with extra overhead reserved.
    2. Add metadata and group scaling factors introduced by quantization, typically increasing the total by another ten to twenty percent.
    3. Inference also incurs KV cache overhead, which grows linearly with context length and concurrency. In long-context scenarios, the cache often hits the ceiling before the weights themselves do.
    4. Use “can GPU memory hold the weights plus peak cache” as a hard constraint, then throughput and time to first token as experience constraints.

    From this, two conclusions follow: at equal capability, smaller models have a lower deployment barrier on a single GPU or a single machine with multiple GPUs, while larger models with stronger capability usually need multiples of the resources and suit quality-first scenarios with controlled concurrency. For cloud-based options, general capabilities such as container platforms, object storage, logging services, and monitoring and alerting can support elastic scaling and observability, avoiding resource waste from fixed specifications.

    5. Scenario-Based Selection Recommendations

    • Mainly maintaining existing code, fixing defects, and refactoring: examine the pass rate and regression rate of repository understanding and cross-file modification first, then turn efficiency.
    • Mainly building prototypes quickly and generating scaffolds: examine project completeness and first-build success rate first.
    • Mainly orchestrating business processes and interacting with external systems: examine tool selection accuracy and failure recovery first.
    • Mainly industry long-horizon tasks and unattended delivery: examine stability and failure rate across multiple runs rather than a single high score.
    • Resource-constrained private environments: use quantized GPU memory usage and throughput as the first filter, then compare capabilities within the candidate set.

    6. Common Pitfalls and a Practical Checklist

    Pitfall one: replacing scenario validation with an aggregate leaderboard. When the leaderboard baseline does not match your business distribution, conclusions often reverse.

    Pitfall two: drawing conclusions from a single run. Agent tasks have high variance, so run at least five times and report the distribution.

    Pitfall three: ignoring cache overhead from context and concurrency, which causes frequent memory overflow after launch.

    Pitfall four: looking only at weight size while ignoring time to first token and throughput, which hurts interactive experience.

    Practical checklist: establish a fixed evaluation set and fixed configuration; record results from both the per-dimension and weighted views; log resource usage and classify failure causes; re-run the evaluation once per quarter as models iterate; and bring evaluation results, cost estimates, and scenario weights together into a selection decision table.

    Overall, rapid rotation of model capabilities is the norm. The sustainable approach is to engineer evaluation and cost accounting into a decision pipeline that is automatically reused as versions iterate. When the evaluation baseline is unified, costs are quantifiable, and scenario weights are explicit, selection shifts from chasing leaderboards to accounting for the total, keeping engineering judgment stable in a fast-changing technical environment.