Hands-On Testing of Autonomous Coding by Large Models: Four Takeaways After 10 Million Tokens
This article reports on a continuous hands-on test of large language models that consumed more than 10 million tokens across engineering development, logical reasoning, lightweight Q&A, and cost observation. It summarizes four key findings: long-horizon planning and self-correction can now support complete engineering tasks; complex reasoning shows promise but suffers from unstable termination; lightweight models can outperform stronger ones on simple tasks, making task-to-model routing essential; and caching, rather than per-token price, is the main driver of actual long-task bills. The article also outlines a reusable evaluation method and practical engineering techniques such as reasoning budgets, routing rules, and cache-friendly context organization. It does not rank any specific vendor or model version.
1. Why a 10-Million-Token Test Matters
Short, question-and-answer style evaluations only show whether a model can answer. They do not show whether it can finish a job. What really determines whether an AI agent can enter a production workflow comes down to three long-horizon metrics: whether task planning is internally consistent, whether execution can recover from failure, and whether the cost per task stays under control.
To examine these factors, we ran a continuous test that consumed more than 10 million tokens in total, covering four dimensions: engineering development, logical reasoning, lightweight Q&A, and cost observation.
Note that this article does not rank any specific vendor or model version. Instead, it abstracts the observed behavior into general capability items and discusses what they mean for real development pipelines and how to address them from an engineering perspective.
2. Takeaway 1: Long-Horizon Planning and Self-Correction Can Support Complete Engineering Tasks
The most valuable finding was the model’s long-horizon task capability. In a database design task that provided only a goal and no constraints, the model first produced a structured plan: 8 core functional modules and 6 data tables covering bookkeeping and transaction statistics. It then broke the work into a development workflow on its own and listed a 10-item post-delivery self-check checklist.
Once execution began, the model coded autonomously for nearly 60 minutes without interruption, infinite loops, or skipped steps, following the plan strictly. The output was somewhat plain in terms of frontend interaction and visual polish, but the core flow worked: adding records produced no errors, and custom operations such as adding, deleting, and modifying categories all worked.
The engineering implication is that the model now shows the beginnings of a closed loop: plan first, execute next, and verify last. A reusable prompt structure looks like this:
Goal: <one-sentence business goal>Constraints: <tech stack / data structures / performance limits; can be empty>Output: 1) design plan 2) task breakdown 3) acceptance checklistRules: execute item by item; on failure, self-diagnose before retrying, up to N times
3. Takeaway 2: Complex Reasoning Shows Promise, but Stability Is the Weak Point
The model performed well on logical reasoning problems that required multi-step semantic restructuring. However, on high-difficulty math competition problems and some lightweight tests, two typical failures appeared: getting stuck in a loop of repeated derivation, and producing conclusions that looked reasonable but were wrong.
The root cause is not that the model “cannot do it,” but that search and termination conditions are unstable: there is no explicit budget for reasoning depth, and no deduplication of paths already tried. In engineering practice, these gaps can be filled with external constraints:
# Example: add a budget and deduplication to the reasoning process to avoid unbounded expansionstate = {"visited": set(), "budget": 8}def step(problem, path):key = hash(path)if key in state["visited"] or state["budget"] <= 0:return give_up_or_switch_strategy(problem)state["visited"].add(key)state["budget"] -= 1return next_reasoning(problem, path)
Combined with an output order of “answer first, proof second” and a second check of key conclusions, this can significantly reduce rework caused by instability.
4. Takeaway 3: “Overthinking” in Lightweight Scenarios Reduces Efficiency
A counterintuitive observation is that on extremely simple problems, a more capable version sometimes takes a detour by weighing options repeatedly, while a lightweight version gives a direct answer that is both faster and more accurate. This suggests that model selection should consider not only the capability ceiling but also how well the task matches the model.
A practical approach is to route by task complexity: simple Q&A, format conversion, and field extraction go through a lightweight channel; multi-file refactoring and cross-module design go through a strong-reasoning channel. Routing criteria can be implemented with observable features, such as input length, whether multiple files are involved, and whether external tool calls are required.
5. Takeaway 4: A Higher Price Does Not Mean a Higher Bill—Caching Is the Key Variable
The API unit price of a new-generation model is usually higher, but the actual bill for long tasks does not grow linearly with the unit price. The reason is that in long-horizon coding, system prompts, project context, and conversation history are reused repeatedly. Once a cache hit occurs, this part of the input is not billed again, so the cost is significantly diluted.
Therefore, cost evaluation should focus on the total cost per task rather than the price per million tokens. Practical optimization measures include: a stable prefix (putting unchanging project descriptions at the very front), trimmed history (rolling summaries instead of full replay), and segmented submission (avoiding loading an extremely long context all at once). In a cloud environment, you can use object storage to save build artifacts, and log services plus monitoring and alerting to track token usage and latency trends, forming a cost dashboard.
6. A Reusable Evaluation Method
- Layered task set: include a certain proportion of engineering-level, reasoning-level, and lightweight tasks to avoid conclusions being skewed by a single scenario.
- Process metrics: record the number of interruptions, retries, and time spent in loops, rather than only whether the final result passes.
- Cost metrics: record input/output tokens, cache hit status, and total time per task at the same time.
- Manual acceptance: have developers check whether the output is runnable; a model’s self-check checklist cannot replace a real run.
7. Conclusion
The core judgment from 10 million tokens is this: long-horizon planning has raised the floor of agentic coding, while the ceiling is constrained by reasoning stability and task-to-model fit. Getting budget constraints, routing strategies, and cache-friendly context organization right is the key to reliably integrating these capabilities into a development workflow.
