10 Million Tokens Later: What Agentic Coding Gets Right—and Where It Breaks Down

    After a large-scale, long-running evaluation consuming over 10 million tokens across four task categories—long-horizon agentic coding, complex reasoning, lightweight Q&A, and cost behavior—several patterns emerged. This article breaks down the evaluation methodology, three genuine surprises (stronger long-horizon planning, improved complex reasoning, and context reuse cutting costs), one unexpected failure mode (overthinking on simple tasks), and practical recommendations for building a reusable LLM evaluation framework.

    Introduction: Why a 10-Million-Token Evaluation Matters

    As large language models move from “conversational Q&A” toward “task execution,” developers increasingly care about a practical question: can a model sustain meaningful work in real engineering contexts, rather than only performing well in single-turn conversations? To answer this, we designed a high-consumption, long-duration, multi-scenario evaluation that consumed more than 10 million tokens in total. The goal was not to simply rank which model is “smarter,” but to observe how models handle planning, execution stability, self-correction, tool use, and cost control in complex tasks.

    Evaluations like this matter because they pull model capability off abstract leaderboards and back onto the engineering floor. Real development work involves requirement understanding, architecture design, code generation, runtime verification, bug fixing, and post-task review. If any single stage goes off the rails, the task may stall or produce unusable results. We therefore divided tasks into four categories: long-horizon agentic coding, complex logical reasoning, lightweight Q&A, and cost behavior analysis. From multi-dimensional records, we distilled three notable surprises—and one easily overlooked failure mode.

    1. Evaluation Method: Measuring “Real Task Capability”

    To keep results close to production conditions, we avoided single-point Q&A and instead used a “task package” approach. Each package included a goal description, acceptance criteria, logged execution traces, and human review. The core metrics were:

    1. Task completion: whether core functionality was delivered and no critical modules were missing.
    2. Long-horizon stability: whether the model could run continuously for extended periods without stalls, infinite loops, or repeated no-op actions.
    3. Planning quality: whether the model could decompose tasks, sequence the work, and proactively design verification steps.
    4. Error recovery: whether the model could locate and fix issues when errors or exceptions occurred.
    5. Lightweight task efficiency: whether the model could quickly produce correct answers to simple questions.
    6. Cost behavior: whether resource consumption stayed controllable under long contexts and multi-turn calls.

    For prompt design, we deliberately took a “low-constraint, high-goal” approach: we provided only business objectives and acceptance directions, without prescribing implementation details step by step. This made it easier to observe the model’s autonomous planning ability. All execution logs were preserved for post-hoc analysis of failures.

    2. Surprise #1: Long-Horizon Agentic Coding Has Improved Dramatically

    The most immediate observation from this evaluation was a clear jump in agentic coding capability. On long-horizon tasks, the model no longer just generated a snippet of code—it decomposed the goal, planned, executed, and verified.

    Take a “bookkeeping and transaction statistics system” task as an example. We stated only the business goal: support expense entry, category management, transaction statistics, and full CRUD on data, with the requirement that the final product actually run. After a brief planning phase, the model produced a fairly complete design covering core functional modules, database table structures, development steps, and a validation checklist. The checklist covered key scenarios such as adding records, deleting categories, verifying statistics, and handling invalid input.

    More importantly, during roughly an hour of continuous execution, the model showed no significant stalls and never fell into repetitive edit loops. It progressively completed the frontend pages, data logic, and interaction features according to plan. The final product still had room for visual polish, but core functionality ran correctly, and basic data operations produced no notable errors.

    This behavior suggests that some current LLMs have begun to exhibit genuine “engineering agent” capabilities. That capability shows up not just in code generation, but in three specific ways:

    • Task decomposition: converting vague requirements into modules, table structures, and development steps.
    • Long-horizon consistency: maintaining goal alignment over an extended run.
    • Self-verification awareness: proactively designing test cases once development is done.

    An abstracted version of the task plan looks like this:

    1. goal: Build a bookkeeping and transaction statistics system
    2. modules:
    3. - Data model
    4. - Category management
    5. - Transaction entry
    6. - Statistics reports
    7. - Exception handling
    8. validation:
    9. - New records can be added
    10. - Categories can be deleted
    11. - Statistics results are correct
    12. - Empty inputs are rejected

    This kind of capability is highly valuable for enterprise development. Code assistants used to play mainly a “code completion” role; in long-horizon agentic mode, they can take on preliminary requirement decomposition, prototype building, and automated verification. That said, this does not mean fully unattended operation is viable yet. For production systems, humans still need to review architecture, security, permissions, and edge conditions.

    3. Surprise #2: Complex Reasoning Shows Highlights, but Stability Lags

    The second surprise came from complex reasoning scenarios. On certain logic puzzles—such as lateral thinking (situation) puzzles that require understanding implicit conditions, role relationships, and narrative clues—the model demonstrated strong information integration. It could extract the key contradictions from multi-turn descriptions and produce reasonably plausible explanations.

    But on harder mathematical and abstract reasoning tasks, cracks appeared. Some problems required very long chains of derivation; the model could lay out the steps but tended to drift off target midway, producing circular arguments, repeated calculations, or incorrect final answers. In other words, long-chain reasoning is improving, but its stability is not there yet.

    The pattern can be summarized as “deeper reasoning, weaker convergence control.” A model that thinks more is a good thing—but without effective constraints, excessive expansion actually lowers accuracy. In engineering practice, several strategies can mitigate this:

    1. Step-by-step verification: break complex reasoning into smaller sub-problems, with intermediate conclusions at each step.
    2. Result checkers: use code, rules, or a second model to verify critical steps.
    3. Limit unproductive loops: cap the maximum number of reasoning rounds or detect repeated content.
    4. Enforce output structure: require the model to list known conditions first, then the derivation, then the conclusion.

    For example, you can require output in this structure:

    1. Known conditions:
    2. Key assumptions:
    3. Derivation steps:
    4. Possible failure points:
    5. Final conclusion:

    Structured prompting like this significantly reduces the “long output that never converges” problem. For enterprise applications, complex reasoning should not rely on the model alone—it should be embedded in a verifiable workflow.

    4. Surprise #3: Context Reuse and Caching Keep Long-Task Costs in Check

    The third surprise concerns cost. Long-horizon agentic tasks accumulate massive context; if every turn reprocessed the full history, resource consumption would spiral. In this evaluation, long tasks involved many calls, but thanks to context reuse and caching mechanisms, overall resource growth did not scale out of control in a linear fashion.

    The lesson: in long tasks, cost governance cannot look only at per-call pricing—it must track the “effective context reuse rate.” For code generation, document analysis, and multi-turn debugging, caching reduces redundant computation and improves resource efficiency.

    From an engineering standpoint, cost can be optimized through:

    • Compressing conversation history: keep only key decisions, error logs, and the current goal.
    • Summarizing in segments: condense long dialogues into structured summaries.
    • Reusing stable prefixes: put unchanging content like system prompts and project conventions up front.
    • Loading materials on demand: avoid stuffing large amounts of irrelevant files into context at once.
    • Tiering tasks by complexity: route simple tasks to a lightweight path and reserve the long-horizon mode for complex ones.

    A sketch of the context management logic:

    1. if task_complexity == low:
    2. use lightweight Q&A path
    3. elif task_requires_multi_file_edits:
    4. load project summary + current files + error logs
    5. else:
    6. use long-horizon planning mode with stage summaries enabled

    This layered strategy controls cost while preventing simple tasks from being slowed down by heavyweight pipelines.

    5. The Unexpected Finding: “Overthinking” on Lightweight Tasks

    The most surprising discovery was that some lightweight tasks actually failed. For everyday, common-sense questions with direct answers, the model—when forced into a strong reasoning mode—kept expanding assumptions until its conclusions drifted. Questions answerable in one sentence became convoluted and wrong.

    The takeaway: stronger model capability is not always better; it has to match the task. Overthinking introduces three risks:

    1. Unnecessary assumptions: over-complicating simple questions.
    2. Longer response times: increasing user wait cost.
    3. Amplified error probability: the longer the reasoning chain, the more chances for deviation.

    Real systems therefore need a “task routing” mechanism: simple questions go through a lightweight path, and only complex questions enter deep reasoning. Routing decisions can rely on signals such as question length, domain, historical accuracy, and explicit user intent.

    A simplified routing strategy:

    1. def route_task(task):
    2. if task.is_simple and task.expected_latency < 2:
    3. return lightweight_model()
    4. if task.requires_multi_step or task.has_code:
    5. return agentic_model()
    6. return balanced_model()

    The core idea is simple: not every task deserves the same reasoning intensity. Balancing cost, latency, and accuracy is what separates a production-grade application from a demo.

    6. Practical Recommendations: Building a Reusable Evaluation Framework

    Based on this 10-million-token evaluation, here is an evaluation methodology that development teams can adapt and reuse.

    1. Build a tiered task set

    The task set should cover long-horizon coding, complex reasoning, lightweight Q&A, error recovery, and cost control. Every task needs explicit acceptance criteria—not just subjective impressions.

    2. Introduce automated verification

    Code tasks should run tests automatically; reasoning tasks should have standard answers or validation rules; long tasks should record intermediate artifacts, not just final outputs.

    3. Set up safety guardrails

    High-risk operations—deleting data, modifying configurations, executing scripts—should require secondary confirmation or sandbox isolation. The model can generate proposals, but critical actions must remain under control.

    4. Attribute costs

    Don’t just track total consumption; analyze where it comes from—the planning stage, the code generation stage, or the error-retry stage. That’s the only way to find real optimization points.

    5. Keep humans in the loop

    Long-horizon agents can dramatically improve efficiency, but humans should still own goal confirmation, architecture review, and release sign-off. Human-AI collaboration is more robust than full automation.

    Conclusion

    This 10-million-token evaluation shows that agentic coding is moving from “generating code” to “executing tasks.” Long-horizon planning, self-verification, and context reuse delivered real surprises, while issues like unstable complex reasoning and overthinking on simple tasks remind us that model capability must be understood within engineering constraints.

    For developers, what matters most is not chasing any single model’s performance, but building an agentic application system that is measurable, routable, verifiable, and cost-controlled. Only then can LLMs move from demos to production—from “looking smart” to “being genuinely reliable.”