LLM Coding Agent Evaluation: A 10 Million Token Test Methodology and Three Key Findings
This article presents a reusable methodology for evaluating large language models in engineering-oriented coding tasks, based on a live test that consumed more than 10 million tokens. It covers agentic programming, complex reasoning, lightweight question answering, and cost analysis. The main findings are strong long-horizon planning and execution in agentic coding, the need for external validation in difficult reasoning, overthinking on simple tasks by reasoning-enhanced models, and the impact of caching on real API costs.
LLM Coding Agent Evaluation: A 10 Million Token Test Methodology and Three Key Findings
As agentic coding becomes a major deployment scenario for large language models, benchmark scores and vendor claims alone are often insufficient to determine whether a model can handle real engineering tasks. To make the evaluation closer to production conditions, we conducted an in-depth test of a new generation of reasoning-enhanced open-source large models. The test consumed more than 10 million tokens in total.
This article does not recommend a specific product. Instead, it abstracts the testing process into a reusable evaluation methodology and highlights three notable strengths as well as one easily overlooked weakness.
Why Use a 10 Million Token Test?
Common model evaluations often suffer from two types of bias:
- Benchmark bias: Public benchmarks are mostly static question sets. They cannot fully cover complex real-world development scenarios such as ambiguous requirements, long contexts, and frequent tool calls.
- Short-sample bias: Trying a model with only a few dozen question-answer pairs is unlikely to expose problems that appear in long-horizon tasks, such as planning drift, repeated loops, and loss of state.
For this reason, the test was designed around four task categories:
- Agentic programming, including database design and Android emulator development
- Complex logical reasoning, including lateral-thinking puzzle-style questions and difficult math problems
- Lightweight common-sense question answering
- Long-duration cost accounting
Together, these tasks consumed more than 10 million tokens. The sample size was large enough to reveal statistical patterns rather than isolated incidents.
Agentic Coding: Long-Horizon Autonomous Execution Is the Biggest Highlight
The test paired the model under evaluation with common industry coding agent tools. Only a vague engineering goal was provided, without step-by-step instructions, in order to observe autonomous planning and execution.
For example, in a bookkeeping system development task, the prompt only described the goal: “Build a bookkeeping system with transaction statistics.” The model’s behavior chain was as follows:
- Think before output: The model did not immediately write code. It first produced a complete database design, including 8 core functional modules and 6 data tables.
- Proactive verification planning: The development plan included a 10-item self-verification checklist, making self-checking part of the workflow.
- Continuous execution for about 60 minutes: There was no interruption, no infinite loop, and no missing step. The model strictly followed the established plan.
- Complete and usable functionality: The final system worked normally for core operations such as create, read, update, delete, and custom classification.
This behavior chain shows that the key metric for agentic coding ability is not how impressive a single code generation result looks. The more important metric is the completeness of the plan → execute → self-correct → verify loop.
A practical mental model is:
Task input → Task decomposition → Component implementation → Tool invocation↑ ↓└── Self-correction ← Result validation ←┘
During a task lasting nearly an hour, the model maintained context consistency and continued to invoke tools. This indicates that its long-horizon memory management and task state tracking are strong enough to support medium-to-large engineering tasks.
There is still room for improvement in details such as frontend aesthetics, but these can usually be addressed through iterative prompting and do not represent a fundamental capability limitation.
Complex Reasoning: Both Strengths and Weaknesses
In logical reasoning tests, the model performed well on lateral-thinking puzzle-style questions. It was able to maintain a reasoning chain across multiple rounds of hypothesis, rejection, and new hypothesis.
However, on extremely difficult problems at the level of the International Mathematical Olympiad, two typical failure modes appeared:
- Infinite loops: The model repeatedly attempted the same reasoning path without switching strategies.
- Incorrect answers: The reasoning chain appeared complete, but a key step contained an unverified leap.
This suggests that reasoning stability and reasoning depth are two separate dimensions.
For production use, it is advisable to add external validators for high-difficulty reasoning tasks, such as unit tests, symbolic computation checks, and result consistency checks, rather than fully trusting the model’s self-report.
From an engineering perspective, strategies such as “multi-path sampling + voting/cross-validation” can reduce the error rate of a single reasoning attempt.
Unexpected Failures on Lightweight Tasks: The Cost of Overthinking
One of the most unexpected findings was that, on simple common-sense questions such as those involving a car wash shop, the reasoning-enhanced version sometimes produced incorrect answers, while the lightweight fast version gave direct and correct answers.
The cause was “overthinking”: the model forced a simple question into a complex reasoning framework and kept moving further along an incorrect branch.
This leads to two practical lessons:
- Do not use a one-size-fits-all model selection strategy: High-frequency lightweight tasks such as simple question answering, classification, and extraction should use small and fast models. Heavyweight reasoning models should be reserved for complex planning, code generation, and deep analysis.
- Set difficulty expectations in prompts: In the system prompt, explicitly state something like “If the question is simple, answer directly.” This can significantly reduce unnecessary chain-of-thought expansion.
This also explains why multi-model routing is important in enterprise deployment. Dynamically routing requests by task complexity is often more cost-effective and less error-prone than using the strongest model for everything.
Cost Observations: Price Increases vs. Caching Mechanisms
The test also compared API pricing with actual billing. The new generation version of the evaluated model had a higher list price. However, thanks to context caching, repeated prefixes in long tasks—such as system prompts and already generated code context—did not need to be billed at full price every time. As a result, the actual total bill increased less than the list price increase might suggest.
For cost-sensitive teams, three points are worth attention:
- Cache hit rate: Place stable system prompts and project context at the beginning of requests to increase the proportion of cacheable prefixes.
- Session splitting strategy: Split long sessions by module to avoid unnecessary context growth.
- Model tiering: As mentioned above, routing lightweight tasks to lightweight models is one of the most effective ways to control token costs.
A Reusable Evaluation Framework
Based on this test, we recommend evaluating the engineering usability of any large model across five dimensions:
- Long-horizon planning ability: Provide a vague goal and assess the quality of task decomposition and the completeness of the verification checklist.
- Execution stability: Measure continuous runtime, infinite-loop rate, and step omission rate.
- Reasoning depth and stability: Test logical and mathematical problems separately, and analyze error patterns.
- Lightweight task efficiency: Measure accuracy and response latency on simple questions, while watching for overthinking.
- Overall cost: In addition to list price, focus on cache hit rate and the actual bill.
Conclusion
A test consuming 10 million tokens shows that a new generation of reasoning-enhanced large models can already complete hour-long complex engineering tasks continuously without human intervention. This is a landmark capability for agentic coding moving toward production.
At the same time, reasoning stability, overthinking on lightweight tasks, and changes in cost structure remain practical constraints that must be addressed during model selection and deployment.
Using a multidimensional, long-horizon evaluation framework that closely reflects real workflows is far more valuable than trusting any single benchmark.
