Hands-On Testing of Long-Horizon LLM Agents: Lessons from Over 10 Million Tokens
This article reports on a multi-dimensional evaluation of two specifications of an open-source LLM series, referred to as the Pro and Flash specifications, based on cumulative consumption of more than 10 million tokens. The tests cover agentic coding, complex logical reasoning, lightweight Q&A, and cost structure. Key findings include mature long-horizon coding behavior, improved delivery efficiency through tool integration, a changed cost curve driven by prefix caching, over-thinking on simple tasks by the larger model, and stability issues in complex reasoning. The article also provides a reusable evaluation and deployment checklist for technical selection and platform building. It does not recommend any specific product; instead, it abstracts the testing process into a transferable evaluation framework.
1. Why Testing at the 10 Million Token Scale Matters
Single-turn Q&A evaluations can show whether a model can answer a question, but they rarely answer what engineering teams actually care about: whether a model can work continuously, correct itself, and stay aligned with a goal across a long workflow. To address this, we tested two specifications of an open-source LLM series—referred to below as the Pro specification and the Flash specification—across multiple dimensions after consuming more than 10 million tokens in total. The evaluation covered four areas: agentic coding, complex logical reasoning, lightweight Q&A, and cost structure.
This article does not recommend any specific product. Instead, it abstracts the testing process into a transferable evaluation framework that can inform technical selection and platform development.
2. Surprise One: Long-Horizon Agentic Coding Has Matured Significantly
In a database design task that required autonomous delivery from a vague goal, we deliberately withheld the table schema, field constraints, and acceptance criteria, describing only the business intent (bookkeeping and transaction statistics).
The model’s behavior unfolded in three stages:
- Planning: it produced a design proposal containing core functional modules and data tables, and generated its own acceptance checklist.
- Execution: it coded autonomously for nearly 60 minutes without interruption or infinite loops, and did not skip key steps.
- Verification: it self-checked each item against the plan, and the core functionality could read and write data normally.
A sample prompt structure is shown below:
Goal: Build a usable backend for a bookkeeping systemConstraint: No fixed table schema; design it yourselfRequirements:1) First provide the module and data table design2) Then provide the implementation steps and acceptance checklist3) After completion, self-check each item and report the results
Engineering takeaway: the key to long-horizon tasks is not single-step accuracy, but the decomposability of planning, the recoverability of state, and the closed-loop capability of tool invocation. In practice, it is advisable to introduce external checkpoints—for example, by turning the acceptance checklist into executable test cases and letting the pipeline, rather than the model’s self-assessment, determine completion.
3. Surprise Two: Tool Collaboration Improves Delivery Efficiency
After connecting the model to an intelligent coding tool, code generation, file reading and writing, dependency installation, and runtime debugging formed a closed loop, with human review needed only at key checkpoints. Practical considerations include setting least-privilege permissions for tool calls, sandboxing write operations, and applying allowlists to external network access to prevent side effects from spreading during autonomous execution.
4. Surprise Three: Caching Changes the Cost Curve of Long Tasks
Long tasks involve substantial context repetition, and prefix caching can significantly reduce redundant computation. Although the per-token price has increased, the total bill grows much more slowly in long workflows once the cache is hit. Actionable practices include:
- Stable prefix: place the system prompt, specification documents, and interface contracts at the front and keep them unchanged;
- Segmented summarization: compress long historical outputs into structured summaries before feeding them back;
- Batching and asynchrony: merge requests for non-real-time tasks to increase throughput and amortize costs.
5. Unexpected Finding: Over-Thinking on Lightweight Tasks
On extremely simple logic problems, such as routine everyday reasoning, the Pro specification occasionally reached incorrect conclusions through repeated deliberation, while the Flash specification was more direct and efficient. This suggests that a larger model specification is not always better, and that routing should be based on task complexity. A routing strategy can be implemented as follows:
def route(prompt, task_type):if task_type in ("simple_qa", "classification", "extraction"):return flash_modelif task_type in ("agentic_coding", "multi_step_reasoning"):return pro_modelreturn flash_model # Default to the low-cost path
6. Stability Issues in Complex Reasoning
On challenging math problems requiring rigorous derivation and certain logic-trap questions, the model may exhibit circular reasoning or produce a final answer that is incorrect. Possible improvements include requiring the model to explicitly list known conditions and the reasoning chain, setting a maximum number of reasoning steps, introducing external computation tools for verification, and applying secondary sampling with majority voting to reduce variance caused by single-run randomness.
7. A Reusable Evaluation and Deployment Checklist
- Evaluation dimensions: planning quality, long-horizon stability, self-correction, closed-loop tool invocation, and cost;
- Stability safeguards: checkpoints, timeouts and retries, sandboxing, and least-privilege permissions;
- Cost control: prefix caching, summary compression, and specification routing;
- Observability: integrate logging services with monitoring and alerting, record the token count and latency of each step, and build a traceable chain.
8. Conclusion
Testing at the 10 million token scale shows that long-horizon capabilities represented by agentic coding are now practically usable in engineering. However, stability and cost still need to be backed by architectural measures. Treating the model as an “orchestratable execution unit” rather than a “one-shot answer machine” is the key to reliable deployment.
