Long-Horizon Coding Tested at 10 Million Tokens: Three Surprises and One Unexpected Finding
A long-running evaluation consuming more than 10 million tokens examined whether large language models can independently execute complex software projects, maintain consistency across extended workflows, validate their own output, and deliver cost-effective results. The test revealed significant progress in agentic coding and long-context execution, but also exposed weaknesses in advanced reasoning and a tendency to overthink simple tasks.
As large language models evolve from question-answering tools into development collaborators, model evaluation must go beyond the accuracy of a single response. A more practical assessment asks whether a model can understand a goal, break it into tasks, use development tools, validate results, recover from errors, and continue working over an extended process.
Following this approach, we conducted long-running tests based on realistic engineering tasks, consuming more than 10 million tokens in total. The evaluation focused on four questions:
- Can the model independently complete a complex development task?
- Can it remain stable throughout a long execution chain?
- Does it overthink simple problems?
- Does a higher per-call price significantly increase the overall cost?
From Single-Turn Answers to Continuous Execution
The traditional way to use a large language model is simple: ask a question, receive an answer, and let a human carry out the work. This approach is effective for code explanations, function generation, and basic troubleshooting. However, when working on a complete project, developers still need to provide additional context, inspect intermediate results, fix errors, and determine the next step.
Agentic development is different. Instead of producing only a code fragment, the model continuously acts toward a final objective. A complete workflow typically includes:
- Understanding requirements and constraints;
- Breaking the objective into executable tasks;
- Designing data structures and module boundaries;
- Writing code and interacting with the development environment;
- Running tests and reading error messages;
- Modifying the implementation based on feedback;
- Validating and summarizing the final result.
In the test, the model received a relatively open-ended requirement for a personal finance management system. The complete page structure, database fields, and implementation order were not specified in advance. The model first analyzed the requirements, then planned core data objects such as users, accounts, categories, income and expense records, and statistical results. It divided the system into data, business, API, and frontend presentation layers.
More importantly, it did not stop at offering design recommendations. It continued with the implementation. Based on its current progress, the model determined the next task, attempted to run or inspect a completed module, and then moved on to subsequent work.
This behavior is closer to that of a junior developer executing a project than to traditional code completion.
Long-Horizon Coding Was the Most Noticeable Improvement
During a task lasting nearly an hour, the model generally maintained a stable execution rhythm. It followed the plan it had formed, required relatively little human prompting, and did not repeatedly return to steps that had already been completed.
This capability was most visible in three areas.
More Granular Task Decomposition
The model did not immediately generate a large, unvalidated codebase. Instead, it first established the system boundaries and then implemented the data tables, APIs, pages, and interaction logic step by step.
Reasonable task granularity makes errors easier to locate. It also prevents a localized problem from destabilizing the entire project.
Better Context Retention
Long-running tasks often fail because earlier decisions and later changes become inconsistent. For example, a field defined at the beginning may be renamed later, a completed feature may be accidentally overwritten, or an API response structure may gradually diverge from the way it is consumed by the frontend.
In this test, the model was generally able to preserve the earlier design. This suggests that its ability to maintain the state of a medium- or long-term task has improved.
A Basic Awareness of Self-Validation
At the beginning of the task, the model created a validation checklist. The checklist covered whether data could be added, edited, and deleted; whether statistical results were correct; whether page interactions behaved properly; and whether different modules connected as expected.
This type of validation cannot replace comprehensive testing, but it represents a meaningful shift from “write the code and stop” to “implement, then inspect the result.”
The final system was able to run, and its core data-writing and display functions did not encounter obvious blocking problems. However, the interface was relatively basic, while error messages, edge cases, and visual details still required human refinement.
The result shows that a model can already handle a substantial amount of engineering execution. It is still far from replacing a professional development process entirely.
Complex Reasoning Was Not Consistently Reliable
The second group of tests focused on logical reasoning and mathematical problems. The model performed relatively well on tasks that required combining multiple clues and eliminating hypotheses step by step. For example, in problems involving hidden information, counterfactual judgments, and multiple conditional constraints, it could first list the known conditions and then derive possible conclusions in a generally clear sequence.
However, stability declined noticeably on advanced mathematics and formal proof tasks. Common problems included:
- A lengthy derivation introducing an implicit assumption;
- A calculation that contradicted an earlier formula;
- Failing to backtrack after discovering a contradiction;
- Repeatedly expanding the same incorrect line of reasoning;
- Producing many intermediate steps that could not be independently verified in an attempt to provide a complete explanation.
This demonstrates that a long reasoning process does not necessarily produce a reliable result. For engineering users, answer length and confidence should not be treated as evidence of correctness.
When a task involves financial amounts, permissions, database migrations, data analysis, or critical business rules, the result must be verified through automated tests, independent calculations, or human review.
A safer workflow is to divide complex reasoning into several stages:
- Define the inputs and objective;
- List the constraints;
- Produce intermediate conclusions that can be checked;
- Validate the final result separately.
For coding tasks, users should also ask the model to generate test cases rather than merely explain the implementation logic.
The Unexpected Finding: Overthinking Simple Tasks
One of the most interesting findings was not that the model struggled with difficult problems. Instead, a stronger model sometimes performed worse on very simple questions.
For example, when asked to calculate a fee based on a few conditions in an everyday scenario, the model occasionally introduced variables that were not present in the question. It might also spend too much time analyzing edge cases and eventually move away from the direct calculation path.
A lighter model could sometimes extract the key information more quickly and provide a shorter, more accurate answer.
This behavior can be described as overthinking. It is often caused by several factors:
- The model looks for hidden conditions;
- It attempts to cover every possible exception;
- It incorrectly classifies a simple question as a complex one;
- A longer reasoning chain creates more opportunities for error;
- The user has not requested a concise answer, so the model expands the scope of its analysis.
Model selection should therefore not follow the simple rule that a more demanding model is always better for every task.
For format conversion, field extraction, basic classification, simple calculations, and fixed-template generation, lightweight models are often more efficient. Stronger reasoning capabilities are more appropriate when a task involves complex constraints, long context, multiple execution steps, or a low tolerance for errors.
In production, teams can use a tiered routing strategy. A lightweight model can handle simple requests first. Requests involving low confidence, long context, or multiple steps can then be routed to a stronger model. This approach can reduce latency while keeping usage costs under control.
A Higher Price Does Not Necessarily Mean a Proportionally Higher Total Cost
Token usage can grow quickly during long-running tasks. When a model becomes more expensive, the immediate concern is often that the total bill will increase by the same proportion. In practice, the final cost is also affected by cache hits, the ratio of input to output tokens, task repetition, and the way context is organized.
In continuous development tasks, requirements, file structures, and code context that were sent earlier may be reused in later requests. If the system supports caching, repeated content can place less pressure on the bill. As a result, changes in unit price and changes in the final invoice are not always linearly related.
For a more accurate cost evaluation, teams should track at least the following metrics:
- Number of input tokens;
- Number of output tokens;
- Percentage of cacheable content;
- Cache hit rate;
- Duration of each task;
- Number of human interventions;
- Whether the final deliverable is usable;
- Additional calls caused by retries after errors.
More importantly, teams should calculate the cost of effective delivery rather than focusing only on token prices.
A model may have a higher unit price but reduce manual investigation, limit repeated revisions, and complete a project more quickly. Its overall cost may therefore not be higher. Conversely, a low-cost model that frequently produces faulty code can create hidden expenses through retries and manual fixes.
Practical Recommendations for Development Teams
The long-running test suggests several general principles for using large language models in software development.
First, provide a clear objective and explicit acceptance criteria. Simply asking the model to “build a system” is usually not enough. Requirements should also describe data constraints, functional scope, error-handling expectations, and the validation process.
Second, divide large projects into staged objectives. At the end of each stage, ask the model to report the current status, completed work, unresolved issues, and validation results. This helps prevent long tasks from losing direction.
Third, ask the model to modify existing files whenever possible instead of rewriting the entire codebase without a clear reason. Full rewrites increase regression risk and may damage functionality that has already been validated.
Teams should also establish automated validation. At a minimum, this should include static checks, unit tests, API tests, and tests for critical workflows. A model can help write these tests, but the results should still be executed and evaluated by independent programs.
Finally, select models according to task complexity:
- Simple tasks should prioritize speed and stability;
- Complex tasks should prioritize planning and error recovery;
- Critical tasks should retain a human approval step.
Conclusion
This evaluation, which consumed more than 10 million tokens, shows that progress in large language models is no longer limited to producing more human-like answers. The more important question is whether a model can plan continuously, use tools, process feedback, and complete a long engineering workflow.
Long-horizon agentic coding was the most significant surprise. Complex reasoning showed a mixture of capability and instability, while overthinking on simple problems demonstrated why larger models should not be trusted blindly.
The most effective approach is not to assign every task to a single model. Instead, teams should build a system based on task routing, validation mechanisms, and cost monitoring.
Only by integrating model capabilities with sound engineering processes can an impressive demonstration become reusable, auditable, and sustainable productivity.
