Agentic Coding: Capabilities and Boundaries from a Ten-Million-Token Usage Experience
A large-scale usage experience involving more than ten million tokens provides a practical lens for examining agentic coding. This article separates usage scale from test coverage, evaluates agentic coding as a complete engineering loop, and analyzes positive signals in long-horizon execution, planning, and tool-driven correction. It also examines risks such as over-reasoning on simple tasks, instability in complex reasoning, permission and budget controls, cost per successful task, and the need for reproducible evaluation. The goal is to show where agentic coding can deliver engineering value, how those gains can be verified, and what constraints are needed for safe adoption.
From generating code to autonomously completing engineering tasks, the way large models are applied is changing. Developers no longer ask only for a function completion; they want the model to understand requirements, design data structures, modify multiple files, run tests, and continuously correct its work based on feedback.
The reference material describes a set of usage experiences with cumulative consumption of more than ten million tokens. These include an autonomous development process lasting about one hour, as well as reasoning failures on complex problems and judgment errors on simple ones. These phenomena deserve analysis, but they cannot be directly treated as universally applicable performance conclusions: token consumption reflects usage scale, not sufficient test coverage; continuous execution time reflects runtime persistence, not necessarily software quality.
The valuable questions are: where does agentic coding bring engineering benefits, how can those benefits be verified, and what constraints are needed for safe adoption?
1. Reconsidering Agentic Coding: The Unit of Evaluation Is the Complete Loop
Traditional code generation mainly focuses on whether the output is correct. Agentic coding, by contrast, needs to evaluate whether the task can be closed as a loop.
A typical loop includes the following stages:
Requirement understanding → Task decomposition → Environment inspection → Code modification → Execution validation → Problem localization → Correction and delivery.
Within this loop, the model proposes actions and explains results, while the execution environment reads and writes files, runs programs, and returns feedback. The final outcome comes from the combined effect of the model, tools, context organization, and validation mechanisms. Success or failure cannot simply be attributed to the model itself.
For example, if a tool returns an error but the system does not pass the full error context to the model, subsequent fixes may go in the wrong direction. Conversely, even if the model has strong reasoning ability, the absence of a test environment makes it difficult to judge whether a modification is actually effective.
Therefore, evaluating an agent should distinguish at least four dimensions:
- Planning quality: Does it identify dependencies, key risks, and acceptance conditions?
- Execution quality: Does it complete the necessary modifications in the correct workspace?
- Correction quality: Does it fix problems based on actual feedback rather than repeating attempts?
- Delivery quality: Is the result runnable, re-verifiable, and maintainable?
Only when these four dimensions hold together does long-running autonomous execution have practical meaning.
2. First Positive Signal: Long-Horizon Tasks Can Sustain Continuous Progress
The bookkeeping system development in the reference material points to an important direction: the model can first form a plan for modules and data structures, then continuously complete implementation and validation, rather than only generating isolated pages or functions.
This capability has direct value for engineering development. Multi-step tasks often involve cross-file dependencies: after a data structure changes, interface validation, business logic, page interactions, and test cases may all need to be updated together. If an agent can retain task state, it has a chance to reduce the cost of developers repeatedly explaining background context.
However, “continuous operation for about one hour” only shows that a particular task did not have obvious interruptions. It cannot be used to conclude that the agent can reliably handle all work of the same duration. A stricter evaluation should record:
- The proportion of completed acceptance items.
- The number of human interventions and the reasons for them.
- The number of ineffective modifications and rollbacks.
- Test execution and failure distribution.
- Remaining issues and their severity.
In addition, autonomous development should not mean unlimited authorization. It is advisable to divide execution into three permission levels:
- Reading code, analyzing logs, and writing plans can be executed automatically.
- Modifying workspace files and running local tests can be executed in a controlled environment.
- Deleting important data, accessing sensitive credentials, and changing production environments must require explicit approval.
This preserves the efficiency of continuous agent progress while avoiding the accumulation of long-horizon risk.
3. Second Positive Signal: Planning Is Moving Toward Verifiable Engineering Structure
The model’s ability to list functional modules and validation checklists is a notable step forward. However, the number of modules, data tables, and checklist items is not a quality metric. What matters is whether these designs cover business invariants.
Take the bookkeeping system as an example. Requirements should not stop at “can add records and view statistics”; they should further clarify:
- How amounts are represented and whether zero amounts are allowed.
- How income and expenses are distinguished.
- How dates are stored and how reporting periods are defined.
- How historical transactions are handled after a category is deleted.
- Whether data is strictly isolated between multiple users.
- Whether duplicate submissions can cause duplicate bookkeeping entries.
3.1 Data Design Should Start from Constraints
A basic system usually needs to represent concepts such as accounts, categories, and transaction records. Whether to split these into more data tables should be determined by query requirements, consistency requirements, and extension needs, not by making the design appear complex.
Amounts should use a storage method that accurately represents business precision, such as fixed-precision values or integers stored in the smallest currency unit. Binary floating-point numbers should not be used directly for financial aggregation.
If multiple currencies are involved, the precision of each currency, conversion timing, and exchange-rate source must also be defined. It cannot be assumed that all amounts can be added directly.
3.2 Acceptance Should Verify State Changes, Not Just Page Behavior
“Adding a record did not throw an error” only shows that a particular path did not produce an obvious exception. It does not prove that the data was saved correctly.
A more complete acceptance chain should be:
Enter valid data → Submit successfully → Query results are consistent → Aggregates update correctly → Data remains after page refresh.
Reverse operations should also be covered:
- After editing an amount, the old amount should no longer affect statistics.
- After deleting a record, the list and aggregates should remain consistent.
- When invalid values are entered, the system should reject saving and return a clear message.
- Under concurrent submissions, duplicate records that violate business rules should be avoided.
- One user should not be able to read or modify another user’s data.
This acceptance approach, centered on business invariants, reflects engineering completeness better than “the page opens and the button can be clicked.”
4. Third Positive Signal: Tool Feedback Makes Error Correction More Grounded
Pure text generation can easily remain at the level of “looks reasonable.” With execution feedback, the model can adjust its approach based on test failures, runtime errors, and data results, forming a loop closer to real development.
However, a high number of tool calls does not mean strong correction ability. Effective correction should satisfy three conditions:
First, it should locate where the failure occurs. For example, is it a data validation error, a query logic error, or a page that did not refresh?
Second, each modification should correspond to an explainable hypothesis. For example, “the aggregation anomaly comes from inconsistent date boundaries,” followed by boundary tests to verify it, rather than modifying multiple unrelated modules at the same time.
Third, after a fix, regression validation must be performed to prevent a local fix from breaking overall behavior.
To improve correction efficiency, the agent can maintain a short task-state record:
- Current goal.
- Confirmed facts.
- Failed attempts and their causes.
- Hypotheses to verify next.
- Acceptance items not yet completed.
This record should be based mainly on verifiable facts and avoid accumulating lengthy self-explanation. It can help long-horizon tasks stay on track and also supports human takeover.
5. A Risk to Watch: Simple Tasks Can Fail Through Over-Reasoning
Complex problems require reasoning, but not all problems are suitable for prolonged reasoning. In the reference material, judgment errors in simple scenarios point to a common risk: the model may introduce conditions not provided by the task or repeatedly modify an originally reasonable conclusion.
However, it cannot be concluded from a long output alone that the error was necessarily caused by “overthinking.” A long response may appear together with an error, but the specific cause may also include semantic misunderstanding, missing necessary facts, or ambiguity in the task description itself.
From an engineering perspective, a layered processing strategy can be used:
- For clear format conversion, field extraction, and short-text cleanup, prefer a short path.
- For tasks involving multi-constraint decisions, cross-module modifications, or computational validation, add planning and checking steps.
- For high-risk results, retain necessary validation regardless of how simple the task appears.
This means task routing should not depend only on model size. It should consider task complexity, error consequences, verifiability, and latency requirements together.
A simple but high-risk amount conversion may require stricter validation than a longer text summary.
6. Complex Reasoning: The Main Issue Is Stability, Not Just Capability
Good performance on one type of logic puzzle does not prove that a model is equally reliable in rigorous mathematical proofs or multi-constraint derivations. Different tasks depend on different capabilities, and test results must be separated by task type.
For complex reasoning, at least the following should be distinguished:
- Whether the final answer is correct.
- Whether the intermediate steps hold.
- Whether boundary conditions are missed.
- Whether repeated independent runs are stable.
- Whether the model can recognize situations it cannot complete.
In particular, repeated reasoning should be prevented from forming unproductive loops. The agent should have an adjustable execution budget, including maximum runtime, consecutive failure count, and limits on repeated actions. When the budget is triggered, it should stop and report the current evidence, attempted paths, and unresolved issues, rather than continuing to consume resources.
Executable calculations can be validated with deterministic programs; conclusions involving proofs still require checking the derivation structure; judgments involving engineering design should combine constraints, tests, and human review. A model’s self-report that something has been “verified” cannot replace actual evidence.
7. Cost Evaluation Should Focus on Cost per Successful Task, Not Token Price Alone
A long-horizon agent repeatedly carries requirements, code snippets, tool outputs, and historical records, so cost is not determined only by the length of the final answer.
In general, total cost can be broken down as:
Total cost = input processing cost + output generation cost + tool execution cost + human review cost + failed retry cost.
If a service provides context caching, repeated portions of input may reduce processing cost. But the actual effect depends on cache scope, validity period, hit rate, and specific billing rules. It cannot be assumed that all long tasks will receive the same benefit.
More reliable optimization directions include:
- Organize stable background separately from frequently changing execution results.
- Pass only logs and code relevant to the current task.
- Use structured state summaries instead of an ever-growing full history.
- Set separate budgets for clearly defined subtasks.
- Stop or hand off to a human after repeated ineffective retries.
Ultimately, the focus should be on “cost per successful task”: how many resources and how much human time were actually spent to complete one task that passed acceptance. A low unit price with frequent failures may not be cheaper than a solution with a higher per-call cost but more stable delivery.
8. Building a Reproducible Evaluation Process
To use agentic coding for team development, it is advisable to first establish a fixed task set and then gradually expand the scope of authorization.
Test tasks can cover new features, defect fixes, structural changes, data processing, and exception recovery. Each task type should provide the same starting code, runtime environment, permission boundaries, and acceptance criteria, and the full execution process should be recorded.
During evaluation, observations should be separated from inferences:
“Continuously completed multiple rounds of modifications” is an observation; “can autonomously deliver complex engineering over the long term” is a stronger inference that requires support from more tasks.
“Answered one simple question incorrectly” is an observation; “all lightweight tasks are unsuitable for complex reasoning” goes beyond the evidence.
The adoption sequence should also be gradual: first use it for plan drafting and test supplementation, then for small-scope modifications in isolated environments, and only later consider more complex autonomous development. Changes involving permissions, security, finance, and important data should always retain clear review and rollback mechanisms.
Conclusion
The core insight from large-scale usage experience is not how much code a model can output, but that engineering tasks are gradually shifting from single generation toward continuous planning, execution, and correction.
This shift may indeed improve development efficiency, but only if capabilities are placed within the right boundaries: organize requirements around business constraints, confirm results through executable acceptance, control risk through permissions and budgets, and measure benefits by cost per successful task.
Agents are best suited to work that can be decomposed, fed back on, and verified. The closer the work is to critical production systems, the more it needs clear evidence, human review, and recovery paths. A truly mature approach is not to let the system run continuously, but to make every step explainable, checkable, and safely stoppable when necessary.
