How to Evaluate LLM Agent Capabilities and Choose the Right Model
A practical guide to evaluating LLM agents beyond leaderboard rankings. Learn how to build a reproducible benchmark across four core agent tasks—repository-level code fixes, natural language to repository generation, continuous tool calling, and long-horizon professional workflows—and how to factor in total cost of ownership, success rate, and average steps for reliable model selection.
1. Why “Ranked First” Rarely Means “Best for You”
The open-source community recently saw a curious moment: one model series was scheduled to release its weights and technical documentation in the evening, but the release went live two hours early. The reason was that another team officially claimed its next-generation model and open-sourced it at the same time. Behind this kind of straightforward competition is a fact that developers should care about more: open-source models now iterate so fast that the shelf life of any benchmark conclusion is measured in weeks.
At the same time, the top ten spots on model trend leaderboards are almost entirely occupied by a few open-source families. Among them, mid-sized models with around 30B parameters and their derivatives are the most popular. The reason is not mysterious: this tier strikes a good balance among “quality, VRAM, and throughput.” It fits on a single machine with multiple GPUs while retaining usable reasoning and tool-calling capabilities.
But leaderboard rankings answer “who is stronger on average,” whereas engineering deployment faces “fit for a specific task.” To make a reliable selection, you must first answer three questions: Do the benchmark tasks resemble your real scenarios? Is the evaluation methodology consistent? Is the total cost of ownership affordable? The sections below address each in turn.
2. Four Capability Categories, Four Real Engineering Scenarios
Looking at the capability dimensions that both model families mention in their technical documentation—and that are therefore horizontally comparable—the industry currently cares more about “how an AI agent performs on long-workflow tasks” than about single-turn question-answering scores. These can be abstracted into four categories:
- Understanding and modifying a real code repository: Given an existing project, locate the problem, make cross-file changes, and run verification. This tests long-context retrieval, dependency reasoning, and the closed loop of “it runs after the change.”
- Generating a complete repository from natural language: Starting from a single requirement, produce a directory structure, coordinated multi-file output, and a runnable project. This tests planning granularity and project completeness.
- Continuous tool calling: In a multi-step workflow, select the correct tool, chain calls together, and self-correct after errors. This tests workflow continuity and fault tolerance.
- Cross-industry long-horizon professional tasks: Complete professional work that requires long-term planning and multiple rounds of operation in a desktop-like environment. This tests delivery reliability.
These four categories share one trait: none of them can yield stable high scores by “memorizing answers,” which makes them better than traditional knowledge-based benchmarks at reflecting real productivity.
3. Comparable Conclusions: Who Is Stronger, and Where
After normalizing to the same set of tasks, three levels of conclusions emerge.
First, there are cases of across-the-board dominance. One model leads on all four tasks, with simple averages about 5 points and 5 points higher than its competitors. The most pronounced advantages are in code repository modification (about 9 points) and continuous tool calling (about 8 points). This shows that in the hands-on parts of the work, the gap between models is far larger than in the chat stage.
Second, most of the time the results are mixed. The other two models each win two categories: one is stronger on “existing code repository projects” and “real tool calling,” while the other is stronger on “generating a complete repository from scratch” and “cross-industry computer operation.” Their four-task simple average differs by only 0.13 points. This gap is far smaller than evaluation noise and should be treated as the same tier in engineering; the choice should be left to cost and scenario.
Third, conclusions must come with a disclaimer. Each party uses different agent frameworks, context lengths, reasoning effort, numbers of repeated runs, and anti-cheating rules, so the scores can only serve as a reference. The truly reliable approach is to re-test on your own task set.
A reproducible skeleton for an evaluation script is shown below (illustrative, not tied to any specific product interface):
# Minimal evaluation framework with a unified methodology (illustrative)TASKS = ["repo_fix", "nl2repo", "tool_chain", "long_horizon"]def run_one(model, task, k=3):scores = []for _ in range(k): # Run multiple times to reduce randomnesstraj = agent_loop(model, task) # Fixed framework, context, and max stepsscores.append(verify(traj)) # Use executable checks instead of manual scoringreturn sum(scores) / len(scores)report = {t: {m: run_one(m, t) for m in models} for t in TASKS}
The key is three points: fixed framework, fixed number of runs, executable verification. If these three are not aligned, cross-model comparison is meaningless.
4. Look Beyond Scores: Measure Cost as “Blended Cost per Million Tokens”
When cloud pricing is not yet public, local deployment is the most honest cost yardstick. The rule of thumb is that after 4-bit quantization, weight size is roughly on the order of “parameter count × 0.5GB,” plus KV cache and runtime overhead.
- A 30B-class model has 4-bit weights of around 100GB and can be hosted on a single machine with multiple GPUs.
- A model one tier larger typically requires about double the local deployment resources, on the order of 200GB.
- For the previous generation of ultra-large-parameter models, none of this is a bottleneck anymore.
The cost formula can be simplified as:
Total cost ≈ GPU depreciation + electricity + operations labor + extra tokens from failed retries
The last item is the most easily overlooked: a model that is “just short of working” can push the bill up several times over through multiple rounds of retries. Therefore, record both success rate and average number of steps during evaluation; this is more valuable for decision-making than looking at scores alone.
5. Engineering Deployment Recommendations
- Build your own task set of 50–100 items covering real tickets in your industry, and run a small-sample re-test before scaling up.
- Prioritize quantifiable acceptance methods: unit test pass rate, build success rate, and workflow completion rate, rather than subjective scoring.
- Route by task tier: send simple Q&A to small models and repository-level changes and long-horizon tasks to large models, balancing cost and quality.
- Leave headroom in capacity planning: estimate VRAM by peak context and account for cache expansion under concurrency.
- Build observability in from the start: use general-purpose container platforms, object storage, logging services, and monitoring and alerting capabilities available in the cloud to record the trajectory and failure reasons of each run, forming a continuously improvable evaluation asset.
6. Conclusion
The more intense the model competition, the less developers need to “bet on a single winner.” The real capability is building an evaluation system with a unified methodology, reproducibility, and a cost perspective—when you can answer “who is more suitable in my scenario” within a day, the biggest winner in this competition is your team.
