Evaluating AI Agent Capabilities: Methods and Model Selection Practices

    This article explains why benchmark rankings alone do not determine the best model for a specific workload, and breaks down four key AI agent capability dimensions: repository-level code engineering, full-project generation from requirements, tool calling and workflow recovery, and long-horizon professional task delivery. It outlines a reproducible evaluation workflow, shows how to turn scores into decisions by examining score distribution, statistical variance, and failure modes, and covers the cost side of local deployment, including VRAM estimation, throughput, and observability. Readers will learn how to build a consistent, cost-aware evaluation loop aligned with their own task distribution.

    1. Why “Top of the Leaderboard” Doesn’t Mean “Best for You”

    Activity in the open-source LLM community has picked up noticeably, and release cycles keep getting shorter. Recently, one cloud vendor’s model and another team’s model released weights and technical documentation within the same window, creating a de facto head-to-head competition. A wave of leaderboards and comparison posts spread quickly alongside them. But for engineering teams, the question that actually matters isn’t “who has the higher total score.” It’s “under my task distribution, who delivers more reliably at a lower cost per unit?”

    The four evaluations in the original discussion—understanding a real code repository and making cross-file changes, generating a complete project from a natural-language requirement, chained tool calls with error recovery, and long-horizon planning plus computer operation for cross-industry professional tasks—cover four critical facets of agent capability. What they share is that none of them test single-turn “knowledge recall.” They test planning, state maintenance, and self-correction across multi-step execution.

    It’s worth stressing that these evaluations differ in agent framework, context length, reasoning effort, number of repeated runs, and anti-gaming strategy. That means the absolute values of the scores have limited comparability. Only relative trends and re-test results on your own tasks carry decision value.

    2. Technical Breakdown of the Four Capability Dimensions

    2.1 Real Repository Engineering

    Evaluations of this type typically provide an existing repository and an issue description, then require the model to locate relevant files, understand call relationships, make cross-file changes, and run tests to verify. The difficulty concentrates in three places: information retrieval and noise filtering within a long context; minimality of changes, avoiding unrelated edits; and a closed verification loop, where the model must read failing test output and iterate.

    A reproducible engineering approach is to fix the test command and timeout, and record two metrics—“first-pass rate” and “average number of iterations”—rather than only checking whether the final run passed.

    1. # Example: a reproducible repository-level evaluation loop
    2. def run_repo_task(agent, repo, issue, max_turns=12):
    3. state = agent.init(repo, issue)
    4. for turn in range(max_turns):
    5. action = agent.plan(state)
    6. obs = agent.execute(action) # edit files / run tests
    7. if obs.tests_passed:
    8. return {"pass": True, "turns": turn + 1}
    9. state = agent.reflect(state, obs) # read failure logs and fix
    10. return {"pass": False, "turns": max_turns}

    2.2 Generating a Complete Repository from Requirements

    The opposite of the previous task, this one starts from scratch and tests directory structure design, module decomposition, dependency management, and documentation completeness. Scoring usually mixes automated checks with human or model review, making it more subjective. A practical suggestion is to build your own scorecard that breaks “runnability,” “structural soundness,” and “documentation completeness” into separate items, so a total score doesn’t hide weak spots.

    2.3 Tool Calling and Workflow Chaining

    Tool calling in real business scenarios forms long chains: a wrong tool choice, a malformed parameter, or a changed return structure can collapse every subsequent step. The evaluation focus therefore shifts from “can it call” to “can it recover after an error.” Observability is critical here—log the arguments, return code, and latency of every call in full, so you can tell whether the problem is a model decision issue or a tool contract issue.

    2.4 Delivery Reliability on Cross-Industry Professional Tasks

    These tasks run long and involve many steps, testing long-horizon planning and deliverable quality. In practice, it helps to introduce “human takeover points,” keeping confirmation at key milestones. This improves reliability and makes it easier to collect failure samples for later optimization.

    3. Turning Scores Back into Actionable Information

    When you see a conclusion like “model X swept all four and leads by several points on average,” a rational approach has three steps:

    • Step 1: look at the score distribution. If the advantage is concentrated in one or two items, the model has a clear capability bias, and selection should be aligned with your own task distribution.
    • Step 2: look at statistical significance. Variance across repeated runs is often ignored; if the gap is smaller than the variance, treating it as a tie is more reasonable. In the original discussion, the two models differed by only a fraction of a point on the four-item average, which should really be judged as “each wins some.”
    • Step 3: look at failure modes, not the total score. Classifying failure samples into “retrieval failure / planning failure / tool misuse / missing verification” is what tells you whether switching models will actually solve the problem.

    4. The Cost Dimension: VRAM and Throughput for Local Deployment

    While cloud pricing is still unclear, local deployment is a more controllable evaluation path. VRAM demand can be roughly estimated with:

    1. VRAM ≈ parameters × bytes per parameter × (1 + activation and KV cache overhead factor)
    2. # At 4-bit quantization, bytes per parameter is about 0.5; KV cache and runtime overhead still need headroom

    The original discussion noted that one model is roughly on the order of a hundred GB after 4-bit quantization, while the other is about twice that. The direct implication: the former can be deployed in a single-machine multi-GPU environment, while the latter demands a significantly higher hardware bar. Beyond VRAM, you should also account for time to first token, output tokens per second, and concurrency—these three determine the real user experience.

    On the cloud, you can host inference services on a container platform, store models and datasets in object storage, and track latency and error rates with logging and monitoring/alerting, forming a complete cost-performance observability loop.

    1. Define the task distribution and sample from real tickets rather than public leaderboard questions.
    2. Standardize the agent framework, context budget, reasoning effort, and number of runs so the measurement basis is consistent.
    3. Build a four-dimension scorecard and record per dimension instead of keeping only a total.
    4. Run each task at least three times and report the mean and variance.
    5. Log resource consumption alongside results to derive “cost per successful task.”
    6. Keep the failure sample set as a regression baseline for the next iteration.

    6. Conclusion

    The direct beneficiaries of intensifying model competition are developers: capability gains and price drops are happening at the same time. But selection decisions can’t rest on a single leaderboard. Unifying the evaluation basis, splitting capability into dimensions, and accounting for cost clearly is what delivers stable returns in real business. For scenarios with compliance and data security requirements, you can evaluate the general-purpose model services and compute options offered by Baidu AI Cloud first, and complete the evaluation loop described above in a controlled environment.