Million-Token Evaluation: A Deep Analysis of LLM Coding and Reasoning Capabilities
A large-scale evaluation consuming more than 10 million tokens examines how next-generation open-source large language models perform in agentic coding, long-horizon execution, complex reasoning, lightweight problem-solving, and cost control. The results show strong autonomy in extended software tasks, but also reveal weaknesses in mathematical reliability, task routing, and the tendency of larger models to overthink simple problems.
As large language models evolve toward agentic systems, their ability to plan and execute complex engineering tasks autonomously has become a major focus for developers. Recent generations of open-source models have made significant progress in reasoning and agentic coding, with some capabilities approaching those of leading closed-source models.
To assess how well these capabilities translate into real-world use, we designed a series of multidimensional tasks and consumed more than 10 million tokens in total. Overall, the latest models demonstrated strong planning and execution capabilities in long-horizon tasks. However, they also exposed weaknesses in certain extreme tasks and lightweight scenarios that developers should address through engineering design. The following sections summarize the key findings and technical insights from the evaluation.
1. A Major Leap in Agentic Coding: Impressive Planning and Execution on Long-Horizon Tasks
Agentic coding was the primary focus of this evaluation. In real-world development, developers often cannot provide perfectly defined constraints, making autonomous planning especially important.
For database design and full-stack system development tasks, we provided only basic business requirements without imposing many technical restrictions. The latest models were able to complete the entire workflow—from requirement decomposition and architecture design to module implementation and self-validation.
For example, when asked to build a complete expense-tracking system, the model first produced an architecture plan containing eight core functional modules and six database tables. It also generated a test checklist with ten validation criteria.
Its long-horizon execution was even more notable. Without human intervention, the model continued programming for nearly 60 minutes without entering an infinite loop or omitting any critical steps. Its ability to self-correct and invoke tools during development was particularly valuable. When it encountered dependency conflicts or runtime errors, the model automatically captured logs, analyzed stack traces, and adjusted the code accordingly.
From an engineering perspective, this long-running execution capability could be integrated with mainstream AI coding tools and cloud-native infrastructure to build more efficient automated development pipelines. For example, a workflow could combine a container platform and logging services, such as those provided by Baidu AI Cloud:
# Pseudocode: Long-horizon task scheduling logic for an LLM agentdef execute_long_term_task(task_prompt):plan = model.generate_plan(task_prompt) # Autonomously plan development stepsfor step in plan.steps:code = model.generate_code(step)result = dev_env.execute(code) # Execute code in a sandbox environmentif not result.success:# Self-correction mechanismlog = logging_service.fetch(result.error_id)code = model.fix_bug(code, log)dev_env.execute(code)monitor.alert_if_timeout(step.timeout) # Integrate monitoring and alertingmodel.run_validation(plan.checklist)
2. Strengths and Bottlenecks in Complex Reasoning: A Gap Between Logic and Mathematics
The models showed a clear imbalance across different types of complex reasoning.
In lateral-thinking and logic tests, such as classic “yes-or-no mystery” puzzles, the models demonstrated strong deductive abilities. They could identify hidden clues and develop plausible chains of reasoning.
However, their stability declined when solving extremely difficult mathematical competition problems, including IMO-level questions. In some tests, the models entered reasoning loops or produced derivations with logical gaps, ultimately reaching incorrect conclusions.
This suggests that although statistical learning has significantly improved the models’ surface-level logical coherence, they still lack reliable verification mechanisms for deep reasoning grounded in strict mathematical axioms. Developers building mathematical reasoning applications should not blindly trust the final output. External symbolic computation engines should be introduced as tools for independent verification.
3. An Unexpected Failure: The “Overthinking” Trap in Lightweight Tasks
One of the most surprising findings was the models’ performance on simple tasks. When solving a classic car-wash logic arithmetic problem, the larger-parameter Pro model produced an incorrect answer.
A deeper analysis of the logs indicated that the problem was overthinking. Instead of using a direct solution path, the model attempted to invoke a deeper reasoning process and overcomplicated the problem. This introduced unnecessary assumptions and calculation errors across multiple reasoning steps.
By contrast, the smaller Flash model used a more direct and efficient heuristic approach and quickly arrived at the correct answer.
This finding has important implications for production systems: model size and task complexity are not linearly correlated. In practical architectures, developers should establish an intelligent routing mechanism. Lightweight tasks—such as intent classification, simple question answering, and basic logical arithmetic—should be routed to smaller, lower-latency models. Larger models should be reserved for complex code generation and deep logical analysis.
This approach can improve response speed while avoiding the accuracy loss that may occur when an overly powerful model is applied to a simple problem.
4. How Caching Reshapes Cost: A Key Optimization for Long-Running Tasks
As model capabilities improve, API prices for newer generations have generally increased. However, in the actual bills generated by long-horizon tasks, total costs did not rise as sharply as API unit prices. The improvement of underlying caching mechanisms was a major reason.
Agentic coding and other long-running tasks contain substantial amounts of repeated context, including system prompts, historical code files, and API documentation. Modern LLM inference frameworks use prompt caching to persist previously computed KV caches. When a subsequent request contains the same prefix, the system can reuse the cached computation, significantly reducing latency and token-related costs.
In a cloud-native architecture, this caching mechanism can be combined with general-purpose cloud services such as object storage to support cross-session context management. During engineering tasks lasting dozens of minutes, the number of interactions may be high, but frequent prefix reuse helps control the actual computational resources consumed.
When designing LLM applications, developers should place static instructions at the beginning of prompts and use session management appropriately. These practices help maximize the cost benefits provided by caching.
Conclusion
This evaluation, which consumed more than 10 million tokens, highlights a new stage in the development of large language models. Current models have the potential to become genuine long-running development assistants, but their reasoning reliability and task-routing capabilities still require substantial engineering support.
As developers adopt the next generation of LLMs, they need to move beyond isolated prompt engineering toward system-level agent engineering. Combining cloud-native infrastructure with appropriate model-routing strategies will be essential for unlocking the practical and commercial value of large language models.
