Million-Token Coding Test: Three Breakthroughs and One Unexpected Limitation

    A long-term evaluation involving more than 10 million tokens shows how AI coding agents are becoming better at maintaining execution context, planning across multiple development stages, and correcting errors through tool use. The test also revealed an important limitation: deeper reasoning does not always improve results, and simple tasks can become slower or less accurate when overanalyzed. The findings offer practical guidance for using AI coding agents in real software projects.

    In a long-term evaluation focused on software development, we used a large language model with code-generation and tool-calling capabilities together with an AI coding tool. The system was asked to handle tasks including database design, development of an expense-tracking application, and construction of a mobile application prototype.

    The process consumed more than 10 million tokens and covered multiple stages: requirements analysis, solution design, implementation, error correction, runtime verification, and feature iteration.

    The purpose was not to prove that one model was universally superior. Instead, the evaluation addressed a more practical question: when a large language model participates in a development workflow that lasts tens of minutes or even several hours, how much work can it actually handle? Which capabilities are approaching practical usability, and where must engineers still maintain strict oversight?

    The results show clear progress in long-running agentic coding tasks, but they also show that models do not perform better on every type of problem. In complex engineering tasks, a model may demonstrate strong autonomy. On simple questions, however, excessive analysis can reduce both speed and efficiency. For developers, the key is not to chase a single benchmark score, but to understand the model’s boundaries across different task types.

    1. Breakthrough One: Long-Running Tasks Can Preserve a More Complete Execution Chain

    Historically, code models have been strongest at function completion, localized edits, and short code generation. When a task involves multiple files, modules, and rounds of debugging, models can easily lose context, repeat changes, or stop before the work is complete.

    In this evaluation, the model was asked to build an expense-tracking system with basic business capabilities. The prompt did not specify a detailed database schema or prescribe every individual step. It only stated that the system should support transaction records, category management, transaction statistics, and front-end operations.

    Instead of immediately generating code, the model first decomposed the requirements into several stages:

    1. Define the system boundaries and core user flows.
    2. Design the data entities and their relationships.
    3. Plan the back-end APIs and data-access logic.
    4. Design the front-end pages and interaction components.
    5. Create initial data and basic configuration.
    6. Start the application and verify its behavior.
    7. Fix issues based on error messages.
    8. Run regression checks on the main business flows.

    It also listed items that needed to be verified, including adding records, editing categories, deleting data, filtering transactions, calculating totals, handling invalid input, and maintaining data consistency after a page refresh.

    The most important point was that the model did not stop at producing a high-level plan. It continued to call tools for file operations, code execution, and runtime checks. It maintained the task objective over an extended period and adjusted its actions according to the results. The process lasted close to an hour without obvious interruption, repeated loops, or major omissions.

    This suggests that the focus of AI coding systems is gradually shifting from generating a single piece of code to maintaining the state of an entire task. For complex development work, the latter is often more important than the quality of any individual code snippet. In real projects, the hardest part is rarely writing one function. It is making sure that multiple modules work together while satisfying interface requirements, data structures, runtime conditions, and user workflows.

    2. Breakthrough Two: Autonomous Planning and Self-Correction Are Beginning to Form a Closed Loop

    A useful coding agent must do more than mechanically follow instructions. It also needs to process feedback and make decisions based on execution results.

    During the evaluation, the model generally followed a loop of observation, planning, execution, verification, and correction. For example, after creating the database structure, it checked whether the fields were sufficient for the front-end workflow. After generating an API, it attempted to start the service and inspect the response. When it found issues involving paths, types, or dependencies, it located the relevant files and modified them.

    This closed-loop behavior appeared in three main areas.

    1. Filling in Implicit Requirements

    Users often ask for “an expense-tracking system” without listing every field and page. The model must infer basic information such as amounts, dates, categories, and notes, while also considering later operations such as querying, editing, and deletion.

    These inferences are not always correct. However, producing a complete first version is often more useful than waiting for the user to specify every detail. An engineer can then review the initial implementation and correct the business rules that matter most.

    2. Incorporating Errors into Later Decisions

    Execution failures are not necessarily a problem. The critical question is whether the model can interpret them correctly. During the test, the model used runtime logs, compiler messages, and API responses to determine whether an issue involved syntax, missing dependencies, path configuration, or a mismatch between front-end and back-end data formats.

    A better repair strategy is not to rewrite the entire project blindly. The model should first narrow down the scope of the problem and then modify the most relevant files. This reduces the chance of fixing one issue while introducing another.

    3. Reviewing Completed Stages

    The model also reviewed its work after completing some stages to check for missing functionality. For example, after building a page, it verified whether create, edit, and delete operations were actually connected to the data layer. After completing an API, it checked parameter validation and error responses.

    This review mechanism is particularly important for long-running tasks. The longer the workflow, the more likely an early mistake is to spread into later stages. Without stage-level verification, a generated project may appear complete while failing at runtime.

    3. Breakthrough Three: Deeper Analysis for Complex Logical Tasks

    In addition to coding tasks, the evaluation covered logical reasoning and multi-step problem solving. The model performed relatively well on problems that required extracting conditions, forming hypotheses, and eliminating contradictions step by step.

    For example, when dealing with a situational reasoning problem containing hidden information, the model typically extracted the known facts first, listed possible explanations, and then eliminated them as new clues were introduced. This approach was more stable than guessing directly and made the reasoning easier for a human to inspect.

    For complex tasks, it is useful to examine whether a model can:

    • Clearly distinguish known conditions from assumptions;
    • Explain the basis for each step of a deduction;
    • Check whether earlier and later conclusions contradict each other;
    • Revert when an assumption is shown to be invalid;
    • State the scope in which its final conclusion applies.

    However, a long reasoning process does not guarantee a correct answer. In some mathematical problems and formal proof tasks, the model may produce locally correct derivations but reach an incorrect final conclusion. This is especially likely when a task requires rigorous proof, precise calculation, or multiple rounds of symbolic transformation.

    Such tasks should be supported by calculation programs, formal verification, or human review. Enterprises using large language models for high-risk reasoning should not judge quality solely by how detailed the explanation appears. They need a result chain that can be independently verified.

    4. The Unexpected Limitation: Simple Problems Can Be Slowed Down by Overthinking

    The most notable contrast in the evaluation was that the model could be highly proactive on complex tasks but sometimes produced incorrect answers or spent too long analyzing seemingly simple questions.

    These problems often had several characteristics:

    • They required only a straightforward judgment;
    • The key condition was hidden in ordinary language;
    • No complex calculation was necessary;
    • Introducing too many assumptions made it easier to misinterpret the original intent.

    When a strong reasoning mode is enabled, the model may split a simple question into multiple hypothetical branches and repeatedly validate branches that were never necessary. The result can be a verbose response, longer execution time, or even a repetitive loop.

    This shows that stronger reasoning does not mean every task should use deep reasoning. In practical systems, the processing strategy should be selected dynamically according to the task:

    • Use a fast-response mode for simple questions, field transformations, and formatting;
    • Use planning plus verification for code generation and multi-file changes;
    • Use deep analysis with external validation for complex algorithms and high-risk decisions;
    • Require the model to explicitly state uncertainty when a conclusion cannot be automatically verified.

    In other words, effective task routing may be more important than simply increasing model size.

    5. What a Million-Token-Scale Evaluation Reveals

    The cost of using a large language model over an extended period depends on more than the unit price. Context length, repeated content, caching strategy, and the number of tool calls also have a significant effect.

    In a continuous development task, file contents, runtime logs, and conversation history may repeatedly enter the context. If the full history is transmitted in every round, token consumption can grow rapidly. Practical engineering workflows can reduce this overhead by:

    1. Caching stable project descriptions, coding standards, and data structures;
    2. Providing only the file sections that have changed;
    3. Summarizing long logs while retaining error locations and critical stack traces;
    4. Dividing large tasks into stages with clearly defined outputs;
    5. Compressing historical context after a stage is complete;
    6. Setting retry limits for repeated failures to prevent ineffective loops;
    7. Using automated tests instead of relying on the model to state that something “looks correct.”

    Caching can reduce the cost of repeated input, but it does not eliminate the cost of model calls, tool execution, or generated output. When evaluating an AI coding solution, organizations should track token usage, task duration, the number of human interventions, repair attempts, and final pass rates—not just API pricing.

    6. How to Apply Agentic Coding in Real Engineering Workflows

    The evaluation suggests that large language models can already handle part of the work performed by a junior developer combined with an automated execution system. They still cannot replace a complete software engineering process.

    A more reliable implementation strategy includes the following practices.

    1. Ask the Model to Design Before Asking It to Implement

    Do not immediately ask the model to modify a large amount of code. First require it to describe the objective, module structure, data model, risks, and acceptance criteria. After a human review, allow it to proceed with implementation.

    2. Define Verifiable Outputs for Every Stage

    The database stage should include schema checks. The API stage should include request testing. The front-end stage should include interaction verification. The release stage should include build checks. Every stage needs a clear definition of done.

    3. Restrict Tool Permissions

    An agent may receive the file and testing permissions it needs, but it should not automatically receive permission for high-risk operations. Production secrets, data deletion, network access, and deployment actions should require human confirmation.

    4. Build Automated Test Guardrails

    Automated coding without tests can easily produce code that is complete in appearance but unreliable in practice. At a minimum, tests should cover core business flows, invalid input, permission boundaries, and data consistency.

    5. Position the Model as a Collaborator

    A model is well suited to quickly building scaffolding, completing repetitive code, analyzing logs, and generating test cases. Architecture decisions, data security, business rules, and final release approval should remain the responsibility of engineers.

    Conclusion

    A long-term evaluation involving more than 10 million tokens shows that the most important progress in AI coding is not how impressive one response appears. It is whether the model can maintain a consistent objective over time, continue calling tools, and adjust its behavior according to feedback.

    The evaluation revealed three positive changes: more complete execution of long-running tasks, stronger autonomous planning and error correction, and more systematic analysis of complex logical problems. It also exposed an important limitation: deep reasoning is not suitable for every scenario. On simple tasks, overanalysis can reduce both accuracy and efficiency.

    For developers, the most effective approach is not to hand over all work to a model in one step. Task decomposition, verification, permission management, and cost control must be part of the overall workflow. With clear engineering guardrails, large language models can gradually evolve from code-writing assistants into development productivity tools that are controllable, auditable, and reusable.