Agent Execution Loops Behind LLM Overthinking and Token Cost Optimization

    When flagship reasoning models upgrade, billed token quotas often rise while users still feel they run out faster. This article explains how agent execution loops inflate token use, why longer self-verification is treated as a feature, and practical controls: reasoning budgets, context compression, task splitting, and consumption baselines.

    When capability upgrades clash with quota experience

    After several Chinese flagship large models shipped upgraded reasoning versions, a familiar pattern appeared: vendors added token quota on paper, yet subscribers felt they had less to spend. Community reports described automation jobs that should have finished in tens of minutes still running after more than three hours, with progress bars stuck on reconnecting. Developers also hit frequent API errors that prevented tasks from closing.

    The issue is not that quotas shrank. Consumption patterns changed. Newer reasoning models tend to run longer chains of thought and self-verification, so a single task burns far more tokens than the previous generation. Extra billed allowance plus a worse felt experience is the direct result of that shift.

    How overthinking happens

    1. Natural amplification in agent loops

    Typical agent frameworks loop: the model thinks, calls tools, reads results, then thinks again until the job is done. At every step the full prior context is resent—system prompt, task description, reasoning trace, and every tool return.

    Token use therefore does not grow linearly; it is closer to quadratic. If each step’s context is S tokens and there are N steps, input tokens scale on the order of S × N × (N+1)/2. Moving from 10 steps to 60 can multiply input tokens by tens of times. Controlled tests showed that when step count was locked, old and new models used similar tokens. Once unconstrained, the new model took six to seven times as many steps: reading helper scripts, building test baselines, rechecking results item by item. Each step was careful; each step also spent quota.

    2. Integration cost of architectural change

    To raise reasoning quality without stacking parameters, some vendors tried iterative loop architectures: the model “thinks several times,” iterating and correcting to improve long-horizon work. Those designs were often proven on smaller models first. Rolling them onto flagship public APIs means routing, caching, and concurrency need to catch up, so reconnects and interface errors are unsurprising.

    The architecture itself is not a necessary cause of token blow-up. Other models using similar designs already achieve high token efficiency, and later versions further cut usage while improving quality. The more likely drivers are thinking-strategy configuration and training emphasis, not the loop idea in isolation. Blaming the new architecture alone is a weak inference.

    3. Treating overthinking as a product feature

    Some official docs do not hide long thinking; they frame it as a feature: continuous reflection and self-correction are what long tasks need. Technically that is reasonable—completion quality on hard work often tracks thinking depth. Developers are less convinced: they buy task completion, not a thinking process. When thinking cost is charged against subscription quota, the capability story collides with the commercial experience.

    What developers can do

    Faced with that cost pressure, practitioners have settled on a few workable controls.

    1. Cap the reasoning budget. Most reasoning APIs expose thinking-length or reasoning-token limits. Set them when the task boundary is clear to cut pointless re-verification. For example:
    1. {
    2. "model": "reasoning-model",
    3. "max_reasoning_tokens": 4096,
    4. "max_tool_calls": 10
    5. }
    1. Compress context between steps. For long-running agents, summarize tool returns and reasoning every N steps into a structured digest instead of resending the raw history. That pulls input growth from quadratic toward near-linear.

    2. Split work and check in stages. Break a large job into subtasks, each with its own call and acceptance, so one session cannot snowball context forever.

    3. Build a consumption baseline. Before switching versions, run a fixed test set on old and new models and compare steps and tokens. Treat migration as a measured evaluation, not a billed-quota promise.

    Platform-side governance

    For subscription model services to stay sustainable, thinking cost has to be transparent. Practical directions include pricing by task complexity instead of a flat quota; offering adjustable thinking-depth tiers so users trade quality against cost; and exposing token breakdowns plus execution-trace replay in the console so spend is inspectable and explainable.

    Closing

    Stronger reasoning and higher token use are two sides of the same coin. A mature answer is neither unlimited “thunderous thinking” nor a blunt cap. Thinking depth should be a configurable, measurable, tunable engineering parameter. For developers, understanding loop amplification and applying context compression plus budget limits is the practical way to control cost now. For platforms, flattening the thinking-cost curve and explaining it clearly is how to earn trust in the next round of model-service competition.