How to Evaluate New LLMs for Coding and AI Agent Capabilities
A practical guide to evaluating new large language models beyond public leaderboards. It explains how to read benchmark rankings, the value and limits of internal blind tests, and four dimensions that must be tested separately: code generation, task understanding, tool calling, and long-horizon execution. It also outlines a reproducible testing workflow with fixed test sets, unified configuration, automated pass/fail criteria, dual-model comparison, and cost-per-successful-task accounting.
1. The Starting Point: Why a High Benchmark Score Doesn’t Mean a Model Is Usable
Whenever a new generation of large language models is released with open weights, the community’s first reaction is usually to check the leaderboard rankings. Rankings do have reference value, but they measure a limited and heavily optimized sample distribution. Inputs in real engineering environments often come with substantial noise: vague requirement descriptions, incomplete codebase context, dependency version conflicts, and inconsistent log formats. The gap between evaluation sets and real-world distributions is exactly the root cause of “great scores but hard to deploy.”
A more reliable approach is to treat model evaluation as an engineering activity: first clarify the capability priorities for the business scenario, then design repeatable test sets and judgment criteria, and finally factor cost, latency, and stability into the decision. This article follows the current mainstream capability direction of “coding + agents + tool calling + long-horizon task execution” and presents a complete methodology.
2. How to Read Public Leaderboards
A recent class of new models has entered the top five on public web development competitive leaderboards and the top three in the open-source camp. Such results indicate strong competitiveness in the narrow task of “single-turn generation of runnable front-end pages.” But reading leaderboards requires three corrections:
- Task format correction: Competitive leaderboards mostly involve short-context, single-turn tasks whose results can be rendered immediately. They naturally favor visual and syntactic correctness and are almost insensitive to cross-file refactoring and consistency of historical decisions.
- Scoring authority correction: Human preference voting and automated test case pass rates measure different things. The former is influenced by whether something “looks right,” while the latter is closer to engineering acceptance.
- Version and configuration correction: Sampling temperature, maximum output length, and whether tool calling and retrieval are enabled can all significantly change results. Rankings detached from configuration cannot be directly transferred.
3. The Value and Limits of Internal Blind Tests
One vendor organized more than a hundred internal experts and over two hundred engineering tasks for a blind test. The conclusion was that the new-generation model averaged about 2.99/4, slightly higher than the 2.92 and 2.94 of two control models. The strengths of this kind of evaluation are that the tasks are close to real R&D. The limitations are also obvious:
- The tasks were created by internal experts and implicitly reflect the company’s technology stack preferences;
- Subjective scoring on a 4-point scale is highly sensitive to “whether the code style fits team conventions”;
- The sample size is statistically sufficient to distinguish a “slight advantage” but not enough to support a conclusion of “across-the-board leadership.”
The correct way to use such results is to treat them as a signal that models of the same tier each win and lose in different areas, not as the final word on model selection.
4. Capability Breakdown: Four Dimensions That Must Be Tested Separately
4.1 Code Generation
It is recommended to split this into three layers: syntax and runnability, semantic correctness, and engineering maintainability. The test set should include boundary conditions, exception branches, and concurrency scenarios, rather than only toy problems like “write a function.”
4.2 Task Understanding
The focus is whether the model can turn vague requirements into explicit constraints. You can use prompts that “deliberately omit parameters” to observe whether it proactively asks for clarification or makes reasonable default assumptions, for example:
Requirement: Add pagination and filtering to the order list.(No data source, field types, or sorting rules are specified.)Expected: First list the missing information and default value assumptions, then provide the implementation.
4.3 Tool Calling
Focus on three points: whether the parameter structure is valid, whether the call order follows dependencies, and whether retry and fallback strategies after failures are restrained. Both over-calling and missing calls are defects.
4.4 Long-Horizon Task Execution
This is where the current gap is largest. The evaluation should set up multi-stage tasks of 20 steps or more and inject an “environment change” midway (such as a dependency becoming unavailable) to observe whether the model can self-correct rather than going wrong all the way to the end.
5. A Practical Testing Plan
- Fixed test set: 30–50 tasks covering the four dimensions above, all placed under version control.
- Unified configuration: Write temperature, context length, tool permissions, and maximum steps into a configuration file, archived together with the results.
- Prioritize automated judgment: Whenever unit tests can be written, use pass rate as the criterion, and keep subjective items within 30%.
- Dual-model comparison: Run the same tasks across models and record first-pass rate, average steps, and number of human interventions.
- Cost accounting: Compare by “cost per successful task” rather than “price per thousand tokens,” which is closer to budget reality.
An example result record structure:
{"task_id": "T-017","dimension": "long_horizon","pass": false,"steps": 34,"human_interventions": 2,"cost_per_success": null}
6. Cost and Engineering Support
Pricing for current flagship models continues to fall, and some new models are already in the lowest range of their tier. This turns “multi-model parallelism + result voting” from a luxury into something feasible. On the engineering side, it is recommended to use a container platform to host sandbox execution environments, object storage to save artifacts and intermediate states, a message queue to decouple long-task scheduling, and logging services and monitoring alerts to track failure rates and overspending. If using general cloud capabilities, rely only on industry-standard categories and avoid binding to a single interface.
7. Conclusion
The new generation of models shows clear progress in coding and agent capabilities. Public leaderboards and internal blind tests together support the judgment that they belong to the first tier, but the margin of advantage is limited. What truly determines deployment results is the evaluation methodology: break down the dimensions, fix the configuration, and account for costs clearly. If you want to quickly validate this in your own business, you can use the general model services and supporting toolchain provided by Baidu AI Cloud to build sandboxes and evaluation pipelines, and complete model selection with data rather than impressions.
