Long-Range AI Agent Coding Tested with Over 10 Million Tokens: Three Surprises and One Unexpected Finding
This article reports on a hands-on evaluation of mainstream large language models in real engineering scenarios, consuming more than 10 million tokens in total. Instead of measuring single-turn Q&A accuracy, the tests focused on whether models can independently complete the loop of planning, execution, and verification when given a goal with minimal constraints. The article shares three positive surprises—stronger long-range autonomous planning, coordinated tool use and self-correction, and stable performance on complex logic puzzles—along with one unexpected finding: more capable models can overthink simple tasks. It also discusses task-tiered model selection, structured error feedback, and why cost should be measured per task rather than per token.
1. Test Background and Methodology
To evaluate how current mainstream large language models perform in real engineering scenarios, we designed a set of multi-dimensional, long-cycle hands-on tests that consumed more than 10 million tokens in total. The focus was not the accuracy of isolated question answering, but whether a model could independently complete the full loop of planning, execution, and verification under conditions of “a given goal with no fine-grained constraints.”
The methodology followed three principles:
- Task realism: We selected tasks with complete engineering chains, such as database design and mobile emulator development.
- Minimal constraints: Prompts specified only the goal and acceptance criteria, without prescribing an implementation path, so we could observe autonomous planning.
- Observable process: We recorded thinking time, number of tool calls, interruptions, and loops, rather than looking only at the final output.
Note that this article does not recommend or compare any specific product. All findings are abstracted into general observations about technical capabilities.
2. Surprise One: Noticeably Stronger Long-Range Autonomous Planning and Execution
In the database design task, the model first spent a short period “thinking,” then produced a complete plan: eight core functional modules and six data tables, covering the target capabilities of bookkeeping and transaction statistics. More importantly, it added a development workflow on its own and listed a ten-item verification checklist at the end, planning to run automatic checks after implementation.
We then let it run entirely on its own. The model coded autonomously for nearly 60 minutes without interruptions, infinite loops, or missing critical steps, strictly following the established plan. The final product was slightly lacking in front-end aesthetics, but all core functions worked: adding a record produced no errors, and custom operations such as adding categories and editing or deleting data all completed normally.
This shows that the key to long-range task capability is not the quality of a single generation, but whether the “plan–execute–self-check” loop is stable. In engineering practice, this capability can be strengthened as follows:
Goal → Module breakdown → Data model → API contract → Implementation → Automated verification checklist
The automated verification checklist is the core mechanism that turns a model from a “generator” into an “executor.”
3. Surprise Two: Coordinated Tool Use and Self-Correction
In the more complex mobile emulator development task, the model had to chain together multiple stages: environment setup, code generation, and run verification. During testing, we observed that when the model encountered compilation or runtime errors, it could read the error messages, locate the problem, and roll back its changes, rather than blindly retrying. This “read error–modify code–verify again” loop is key to keeping long-range tasks from stalling.
Practical recommendations:
- Provide the model with structured error feedback rather than natural-language descriptions.
- Limit the scope of changes in each round to avoid regressions caused by overly large modifications.
- Keep rollback-able intermediate artifacts so recovery is fast when a failure occurs.
4. Surprise Three: Strengths on Complex Logic Problems
On logic puzzles that require multi-step reasoning and hypothesis elimination, such as lateral thinking puzzles, the model performed stably. It could enumerate possibilities one by one and reach a converging conclusion. This indicates a usable capability in “constraint reasoning” and “hypothesis management,” which can transfer to engineering tasks such as requirement clarification and boundary-condition analysis.
5. The Unexpected Finding: Overthinking on Lightweight Tasks and Reasoning Stability
Problems also exist. On some extreme math problems, the model fell into circular reasoning or produced incorrect conclusions. On extremely simple tasks—for example, common-sense questions like the “car wash problem”—more capable versions sometimes deviated from the correct answer due to “overthinking,” while lighter versions were more direct and efficient.
This suggests that model capability and task complexity are not monotonically correlated. Engineering deployment should tier tasks:
- Lightweight, deterministic tasks: Prefer low-latency, low-cost lightweight models.
- Long-range, open-ended tasks: Choose models with stronger planning and tool-use capabilities.
- High-risk reasoning tasks: Introduce external verification or multiple rounds of validation instead of relying on a single output.
6. Cost Perspective: A Higher Unit Price Does Not Mean a Proportionally Higher Bill
During the test period, the service unit price of comparable models showed an upward trend. However, because long tasks repeatedly read large amounts of context, caching mechanisms can reuse already-computed content, so the actual total bill grew significantly less than the unit price increase. Therefore, cost evaluation should look at “cost per task” rather than “price per token.”
A reference metric:
Cost per task = Total tokens consumed × Unit price − Savings from cache hits
7. Deployment Checklist
- Use minimally constrained prompts to test real planning capability.
- Require the model to output and execute a verification checklist.
- Process error feedback in a structured way.
- Select models by task complexity tiers.
- Use cost per task and success rate as core metrics.
In summary, long-range agentic coding has moved from “usable” to “controllable,” but stability and task matching remain the key variables for engineering deployment.
