LLM Agent Capability Evaluation: Dimensions, Cost, and Model Selection

    This article explains why single leaderboard scores are insufficient for selecting LLM agents, breaks agent capability into four evaluation dimensions, shows how to weight results by business priorities, estimates cloud and local deployment costs, and outlines a reproducible internal evaluation workflow with practical selection considerations.

    1. Why a Single Leaderboard Is Not Enough for Model Selection

    Evaluation scores are results obtained under specific conditions. For the same model, rankings can change when the agent framework, context length, reasoning effort, or grading rules change. Evaluators also often use different numbers of runs and anti-cheating strategies, and these differences may not be fully disclosed in papers or reports.

    Therefore, before comparing two models, first confirm whether the evaluation conditions are consistent. If their average scores differ by only a fraction of a point, that gap is often within statistical error and is not enough to support a firm conclusion.

    2. Four Core Dimensions of Agent Capability

    The capabilities of agentic models can be divided into four categories, each corresponding to different business scenarios.

    2.1 Engineering in Existing Codebases

    These tasks require the model to read a real repository, locate the problem, modify code across files, and run tests to verify the result. Three points are especially important: whether the retrieval scope is reasonable, whether the changes are minimal, and whether the model completes a “modify, then verify” loop.

    2.2 Generating a Complete Project from Requirements

    The model builds a project from scratch based on natural-language requirements. It needs to design the directory structure, define module boundaries, manage dependencies, and ensure interface consistency across files. This capability reflects the model’s planning ability and global consistency.

    2.3 Tool Calling and Workflow Orchestration

    The model needs to select the correct tools, construct valid parameters, call multiple tools in sequence, and adjust its plan when a step fails. Evaluation should focus on error recovery, not only on whether the first call succeeds.

    2.4 Cross-Domain Long Tasks and Delivery Reliability

    These tasks involve long-term planning, system or interface operations, self-checking of intermediate results, and the completeness of the final deliverable. They are closer to real office scenarios and are also the most likely to expose a model’s tendency to “drift from the goal” over a long chain of steps.

    3. Aggregating Results by Business Weight

    Different models often have different strengths. A simple average can hide these structural differences and ignore business priorities. A more reasonable approach is to define weights for each dimension first, then calculate a weighted score.

    1. # Example: aggregate multi-dimensional evaluation results by business weight
    2. WEIGHTS = {
    3. "existing_repo": 0.35, # Existing codebase maintenance
    4. "greenfield_project": 0.20, # Building a project from scratch
    5. "tool_use": 0.25, # Tool calling and orchestration
    6. "cross_domain_task": 0.20, # Cross-domain long tasks
    7. }
    8. def weighted_score(scores: dict[str, float]) -> float:
    9. missing = set(WEIGHTS) - set(scores)
    10. if missing:
    11. raise ValueError(f"Missing evaluation dimensions: {missing}")
    12. return sum(scores[k] * WEIGHTS[k] for k in WEIGHTS)

    Weights should be determined by the team’s actual workload. For example, a team that mainly maintains existing systems should increase the weight of “existing codebase maintenance.”

    4. Cost Evaluation Is More Than Scores

    4.1 Cloud API Costs

    Cloud API calls are usually billed by the number of input and output tokens, and some services also involve caching, concurrency limits, and batch discounts. Prices change frequently, so the service provider’s latest public pricing should be used. For a rough budget, estimate “average token consumption per task × unit price × expected task volume.”

    4.2 GPU Memory Estimation for Local Deployment

    The GPU memory occupied by model weights can be estimated with the following formula:

    Weight memory (GB) ≈ Parameters (billions) × Bytes per parameter

    Bytes per parameter are determined by quantization precision. For a 30B-parameter model:

    Precision Bytes per parameter Estimated weight memory
    FP16 2 About 60 GB
    8-bit 1 About 30 GB
    4-bit 0.5 About 15 GB

    Actual deployment also requires reserving memory for inference framework overhead and KV Cache space. KV Cache grows linearly with context length, so long-context tasks may require far more memory than the weights alone.

    Quantization can reduce memory usage but introduces precision loss. Whether the impact of low-bit quantization on long-chain reasoning and code generation is acceptable must be validated with your own task samples, not just general conclusions.

    5. Building a Reproducible Internal Evaluation Process

    Internal evaluation is more useful than public leaderboards because it directly corresponds to business scenarios. The following steps are recommended:

    1. Select representative tasks: Choose samples from real tickets, code repositories, and operations records, and label them according to the four dimensions above.
    2. Fix runtime conditions: Standardize context length, sampling parameters, and number of runs. Run each task multiple times to observe stability.
    3. Combine automated checks with manual sampling: Results that can be judged automatically, such as test passes and correct file changes, can be handled by scripts. Semantic quality should be checked through manual sampling.
    4. Record failure types: Classify failures as misunderstanding, incorrect tool parameters, workflow interruption, incomplete delivery, and so on, to help identify improvement directions.
    5. Make a comprehensive decision: Weigh capability scores, cost per task, response latency, and data compliance requirements together.
    1. def run_eval(model, tasks, repeats=3):
    2. records = []
    3. for task in tasks:
    4. for run_id in range(repeats):
    5. result = model.run(task.prompt, max_steps=task.max_steps)
    6. records.append({
    7. "task_id": task.id,
    8. "run": run_id,
    9. "passed": task.check(result),
    10. "failure_type": None if task.check(result) else task.classify(result),
    11. })
    12. return records

    The example calls task.check twice. In an actual implementation, call it once and reuse the result to avoid the extra overhead and inconsistency caused by repeated execution.

    6. Considerations for Model Selection

    • Rankings are not conclusions. Leaderboard results can be used for initial screening, but the final choice should be based on internal evaluation.
    • Pay attention to failure modes. When two models have similar total scores, differences in failure types often reveal more.
    • Define data boundaries. Whether code and business data are allowed to be sent to external services determines whether a cloud-based option is feasible. Local deployment can reduce the risk of data leaving the organization, but it requires bearing hardware and operations costs.
    • Maintain version awareness. Models iterate quickly, so conclusions have a limited shelf life. Key tasks should be retested regularly.

    The core of agent capability evaluation is to turn “which model is stronger” into “which model is more suitable for my tasks, costs, and constraints.” By building an evaluation system around the dimensions and process above, teams can quickly retest after model updates and make traceable decisions.