AI Agent Benchmark at 10 Million Tokens: Three Wins and One Surprise in Long-Horizon Coding

    This article reports findings from a large-scale AI agent benchmark that consumed over 10 million tokens, focusing on long-horizon autonomous coding rather than single-question accuracy. It highlights three positive results—sustained autonomous planning for nearly an hour, a working loop of tool calls and self-correction, and reduced long-task costs from prompt caching—alongside one unexpected issue: overthinking on simple logic traps. It also outlines a reusable evaluation checklist covering long-horizon engineering tasks, complex logic, hard math, and lightweight trap questions, with metrics such as completion rate, human interventions, token usage, and cache hit rate.

    1. Why Run a 10-Million-Token Benchmark?

    Small-sample tests only answer whether a model can solve a single question. Real engineering asks a different question: can the model finish an entire task continuously? Once cumulative consumption crosses the 10-million-token mark, the focus shifts from single-point accuracy to three engineering metrics: continuity on long-horizon tasks, stability of the reasoning process, and the actual cost curve as context grows.

    This article is not about any specific product. Instead, it abstracts the patterns that repeatedly appear in this kind of large-scale benchmark into reusable evaluation methods and engineering constraints.

    2. Surprise 1: Long-Horizon Autonomous Planning Sustains Nearly an Hour of Delivery

    In open-ended engineering tasks where only the goal is given and no steps are provided, stronger models typically start by producing a design: splitting the work into functional modules, defining the data schema, ordering the development sequence, and proactively listing an acceptance checklist. They then execute continuously for close to 60 minutes without human intervention—without stopping, without falling into infinite loops, and without skipping key steps.

    The reusable engineering takeaway is that the bottleneck in agentic coding has shifted from “can it write correct code?” to “can it follow a plan through to the end?” A practical recommendation is to turn the acceptance checklist into executable assertions up front, for example:

    1. checks = [
    2. "A newly added category can be referenced by transaction statistics",
    3. "Deleting a category has a foreign key constraint or cascade policy",
    4. "Amount fields use fixed-point numbers rather than floating point",
    5. "Critical write operations have an idempotency key",
    6. ]

    In addition, use a container platform to provide isolated environments, and use logging services and monitoring alerts to record the full execution trace. Only then can deviations be located during unattended runs. It is worth noting that the UI polish of such tasks is often mediocre while the core workflow remains usable. This shows that evaluation should separate two dimensions: functional correctness and presentation quality.

    3. Surprise 2: The Loop Between Tool Calls and Self-Correction Is Taking Shape

    The prerequisite for uninterrupted long tasks is that the model can read logs after an error, modify the code, and verify again. In practice, tool outputs should be structured, error messages should be compressed into key snippets that are easy to locate, and retries should have an upper limit to avoid an endless “fix—break again” loop. A simplified control loop looks like this:

    1. for step in range(max_steps):
    2. result = run_tool(action)
    3. if result.ok:
    4. break
    5. action = plan_fix(result.brief_error)

    Pairing this with a message queue to decouple tasks and object storage to persist intermediate artifacts gives long-horizon execution the ability to resume from checkpoints.

    4. Surprise 3: Caching Reshapes the Cost Structure of Long Tasks

    Long tasks have highly repetitive prefixes. After a cache hit, both the billing and latency of repeated context drop, so the total bill usually grows more slowly than the per-token price. In engineering terms, stable content should be placed first: system constraints, interface contracts, and directory structure belong at the front of the prompt, while volatile data should be placed later. This reduces cache invalidation caused by prefix jitter.

    5. The Surprise: “Overthinking” on Lightweight Tasks

    On simple problems involving logic traps, strong reasoning models sometimes give wrong answers because of repeated self-doubt, while a lighter configuration is often more direct and efficient. This suggests that reasoning depth does not yield monotonic returns and should be scheduled by task tier: simple tasks take a low-latency path, deep reasoning is enabled only for complex tasks, and IMO-level problems should have timeouts and multi-path voting to mitigate infinite loops and instability.

    6. Conclusion and Evaluation Checklist

    The value of large-scale benchmarks is that they expose problems hidden by averages. A recommended evaluation set should always include four sample categories: long-horizon engineering tasks, complex logic problems, high-difficulty math problems, and lightweight trap questions. For each category, record completion rate, number of human interventions, token consumption, and cache hit rate. To learn more about how enterprise-grade model services combine with general cloud capabilities such as compute, storage, and monitoring, you can explore the relevant product categories from Baidu AI Cloud to build a reproducible and observable evaluation pipeline.