Millions of Tokens Tested: The Strengths and Limitations of LLM Agentic Coding
A large-scale evaluation consuming more than 10 million tokens examines AI agents across autonomous software development, complex reasoning, lightweight question answering, and long-task costs. The results show major progress in long-running coding workflows, but also reveal weaknesses in strict logic, simple tasks, and reasoning stability. Caching can significantly reduce the effective cost of extended API workloads.
Millions of Tokens Tested: The Strengths and Limitations of LLM Agentic Coding
1. Test Scope and Overall Conclusions
To make the findings more representative of real-world production environments, this evaluation consumed more than 10 million tokens in total. It covered four scenarios: agentic coding, complex logical reasoning, lightweight question answering, and cost analysis for long-running tasks. It also compared the performance of a high-end reasoning model with that of a lightweight, faster model from the same model family.
Four key conclusions emerged:
- Agentic coding has improved significantly, especially on long-running tasks. The high-end reasoning model was able to code autonomously for more than 60 minutes without human intervention, completing complex engineering tasks such as database design and Android emulator development. Its long-horizon planning, self-correction, and tool-use capabilities were particularly strong.
- Complex reasoning shows both strengths and clear weaknesses. The model performed well on lateral-thinking puzzles such as Turtle Soup, but it sometimes entered reasoning loops or produced incorrect answers on difficult mathematical competition problems and some lightweight tests. Reasoning reliability still needs improvement.
- Lightweight tasks can fail because of overthinking. On simple questions, such as the classic car wash puzzle, the high-end model occasionally produced an incorrect answer because of an unnecessarily long reasoning process. The lightweight model was sometimes more direct and effective.
- Although the unit price has increased, caching can significantly reduce the effective cost of long tasks. Compared with the previous generation, API pricing is higher, but cache hits mean that the increase in the final bill is substantially smaller than the increase in the list price.
The following sections examine these findings in detail.
2. Agentic Coding: The Limits of More Than 60 Minutes of Autonomous Execution
Agentic coding is one of the most important areas for deploying large language models in engineering workflows. In this evaluation, the high-end reasoning model was used with a mainstream AI coding tool to complete two complex engineering tasks. The prompts intentionally imposed limited constraints so that the model’s ability to plan autonomously could be observed.
Task 1: Building a Complete Expense-Tracking System from Scratch
After a brief reasoning phase, the model produced a complete database design that included:
- Eight core functional modules;
- Six database tables covering expense tracking, transaction statistics, and related requirements;
- A complete development plan, including autonomous verification after implementation;
- A validation checklist with 10 inspection points.
The model was then allowed to work independently for nearly 60 minutes:
- It completed the task without interruption or infinite loops and did not omit critical steps;
- It followed the initial plan closely and completed the components in sequence;
- Although the frontend design was not especially polished, all core functions worked correctly, and adding new data did not produce errors;
- Users could add categories and modify or delete data directly through the frontend.
These results suggest that the model’s long-horizon planning, execution, and verification loop is becoming practical. For developers, this means that an agent can act as a junior engineer for a substantial amount of repetitive setup work when the objective is clear but the implementation path remains open.
Task 2: Android Emulator Development
The second task further tested cross-domain tool use and self-correction. When errors occurred, the model was able to trace back the cause, modify the code, and continue instead of repeatedly following the same failed path.
Three Essential Capabilities of a Reliable Coding Agent
Based on the observations, a reliable coding agent needs at least three capabilities:
- Task decomposition: Breaking an ambiguous requirement into modules, database tables, interfaces, and validation items;
- Execution consistency: Maintaining context alignment during long-running work without deviating from the initial plan;
- Self-correction: Identifying the cause of an error and adjusting the strategy instead of mechanically retrying the same operation.
A typical agent execution loop can be abstracted as follows:
while not task.done:plan = model.plan(task.state) # Plan the next step based on the current stateresult = tools.execute(plan) # Call code execution, file, or terminal toolstask.update(result) # Update the state and contextif result.failed:model.reflect(result.errors) # Self-correct instead of retrying mechanically
3. Complex Reasoning: Strong Results Alongside Clear Weaknesses
Strength: Strong Performance on Open-Ended Logic Puzzles
On lateral-thinking problems such as Turtle Soup, which require generating, eliminating, and testing hypotheses, the model performed consistently. It was able to maintain coherent reasoning across multiple turns.
These tasks typically allow flexible reasoning paths and have a relatively high tolerance for partial exploration. This gives the model’s broad knowledge and associative capabilities room to work effectively.
Weaknesses: Difficult Mathematics and Reasoning Stability
On IMO-level mathematical competition problems and some lightweight tests, the model showed two main failure patterns:
- Reasoning loops: It repeatedly overturned its own intermediate conclusions and failed to converge;
- Incorrect answers: It produced confident but invalid derivations.
This highlights an important distinction: Fluent performance on open-ended tasks should not be treated as proof of reliability on strict logical tasks. In mathematics, financial calculations, compliance checks, and similar scenarios, external validators, unit tests, or rule engines should be used as safeguards. The model’s reasoning process should not be trusted without verification.
4. Lightweight Tasks: Avoiding the Overthinking Trap
One counterintuitive finding is that a more capable model is not necessarily more accurate on simple tasks.
In the classic car wash logic puzzle, for example, the high-end reasoning model sometimes constructed an unnecessarily long chain of thought. This introduced assumptions that were not needed and ultimately led to an incorrect answer. The lightweight model went straight to the key point and answered correctly on the first attempt.
This leads to several engineering implications:
- Match the model to the task complexity. Not every scenario requires the most resource-intensive reasoning model.
- Make reasoning intensity configurable. Simple questions can use a short reasoning path, while complex problems can receive a larger reasoning budget.
- Route tasks by difficulty in agent architectures. The system can first estimate task complexity and then decide how much reasoning capacity to allocate.
5. Cost Analysis: How Caching Reduces the Cost of Long Tasks
In this evaluation, the model’s API unit price was higher than that of the previous generation. However, the increase in the total bill for long-running tasks was much smaller than the increase in the unit price. The main reason was caching:
- In long coding tasks, the system prompt, project context, and previously generated code often reappear as repeated prefixes;
- When these prefixes are cached, they are billed at a lower rate, and response latency is also reduced;
- The longer the task and the more stable the context, the greater the benefit from caching.
A practical cost-optimization strategy is to keep the prompt prefix stable:
[Stable system prompt + project conventions + tool instructions] ← Place first to improve cache hits[Changing task instructions + newly added context] ← Place last
At the architecture level, avoid rewriting the system prompt on every turn and avoid inserting changing content at the beginning of the context. These practices can substantially improve cache-hit rates.
6. Practical Recommendations
Based on this evaluation, which consumed more than 10 million tokens, four practical recommendations stand out:
- High-end agents can handle long-running engineering tasks, but retain human review and automated testing at critical checkpoints;
- Strict logical tasks require external verification. Use test cases, solvers, or rule engines to validate model outputs;
- Select models dynamically based on task complexity. Lightweight models can handle simple tasks while improving both efficiency and cost control;
- Design context with cache-friendliness in mind. A stable prefix followed by a changing suffix can reduce the bill in a measurable way.
LLM-based agentic coding has moved from demonstration-level capability toward practical engineering use. However, it is not yet reliable across every scenario. Understanding both its strengths and its limitations is essential for applying it effectively in real-world systems.
