Long-Running AI Agents: Overthinking and Quota Governance

    Benchmark scores for long-horizon AI coding agents keep climbing, yet real-world user experience is getting worse. Drawing on reported failure cases, this article breaks the problem into three separate issues—stability, efficiency, and output quality—and explains why token consumption grows faster than step count, why subscription quotas can increase on paper while shrinking in practice, and why the debate over "overthinking" misses the real question. It then presents three governance approaches: explicit step, token, and wall-clock budgets with progress thresholds; context compression techniques such as layered memory, tool-output trimming, subtask isolation, and prompt caching; and the stability and cost observability metrics needed to turn subjective regressions into tunable engineering parameters. Practical tips for users on scoping, splitting, and validating tasks are included.

    1. The Symptom: A Three-Hour Task With Mediocre Results

    Discussions around long-horizon AI coding tools keep circling back to a contradiction: benchmark scores keep rising, while the experience of real users keeps getting worse.

    One user documented a typical failure. The task started a little after 3 p.m. and was still running close to 7 p.m. After three hours and thirty-four minutes, it was only about 60% complete, and the interface repeatedly warned that the connection had dropped. What was harder to accept was that, after all that “thinking,” the model still got the basic path of the script sandbox wrong. Another user’s report was more blunt: requests kept failing and the task could not move forward at all.

    Broken apart, this feedback is really three independent problems stacked on top of each other:

    • Stability: long-lived connections drop, requests fail, and the task cannot proceed continuously.
    • Efficiency: time and resource consumption per task far exceed expectations.
    • Effectiveness: after enormous compute input, output quality does not improve proportionally.

    Much of the discussion attributes the first two problems to “the server side of the new architecture not being fully adapted yet.” That guess has some merit: when a model shifts from single-pass forward inference to multi-turn internal reasoning loops, the session state, timeout policies, concurrency scheduling, and retry logic the server must maintain all need to be re-tuned. But it must be stressed that, absent official confirmation, this remains a possibility rather than a conclusion.

    2. The Mechanism: Why Tokens Get “Thought” Away

    To understand why quotas feel smaller, you first have to look clearly at the cost structure of long-horizon agents.

    2.1 Step count is the most important cost amplifier

    Every step an agent takes usually resubmits all the context accumulated so far. Per-step cost is therefore not constant; it grows roughly linearly with the step index, and total consumption for a whole task grows on the order of the square of the step count.

    A minimal illustrative model:

    1. def task_cost(steps, base_ctx, growth_per_step):
    2. total = 0
    3. for i in range(steps):
    4. ctx = base_ctx + growth_per_step * i
    5. total += ctx # input accumulates with each step
    6. return total
    7. # Doubling the steps costs far more than double
    8. print(task_cost(20, 2000, 800))
    9. print(task_cost(120, 2000, 800))

    2.2 The “read first, establish a baseline, then re-verify” pattern naturally stretches step counts

    One developer ran a controlled comparison: with the step limit locked, resource consumption of the old and new versions was roughly on par; once the limit was lifted, the new version autonomously executed six to seven times as many steps as the old one. The reason is not mysterious—it reads the helper scripts end to end first, establishes a baseline, and then re-verifies item by item. These behaviors usually add to quality, but they multiply cost.

    2.3 Subscriptions pass efficiency swings straight through to user experience

    Subscription products typically grant a fixed quota per billing cycle, with higher tiers granting more. When the vendor announced that the new version’s per-cycle quota was raised to 1.5x that of the old version, it looked like more on paper—but if steps per task rose sixfold, the number of tasks a user can actually run goes down. That is the root of “more on paper, less in practice”: the quota is linear, while consumption is superlinear.

    Worth noting: this is not unique to any single vendor, but a common tension the industry faces as long-horizon agents enter the subscription era.

    3. The Core Dispute: Is Overthinking a Feature or a Flaw

    The official blog’s position frames long thinking as a feature: the model tends to enter a prolonged deep-thinking mode, reflecting and self-correcting as it goes, which is exactly the capability long-horizon tasks require.

    The developer community pushed back sharply: other models using the same loop-based internal reasoning architecture already achieve fairly high token efficiency, and later versions compressed token requirements further while performance went up. This shows that “architecture determinism” does not hold—what really determines cost is the scheduling policy and budget constraints, not the architecture itself.

    A more rigorous conclusion would be:

    • Deep thinking has real value, especially for long-horizon, multi-constraint tasks that need self-verification.
    • But unlimited thinking without a budget degrades into a low-return, high-consumption loop.
    • So the engineering focus is not “whether to think” but “how to price and rate-limit thinking.”

    4. Governance Approach 1: Give Thinking a Budget and Brakes

    4.1 Explicit dual budgets for steps and tokens

    Do not cap steps alone; also set a token budget and a wall-clock limit, and stop at whichever comes first:

    1. budget:
    2. max_steps: 40
    3. max_input_tokens: 400000
    4. max_wall_clock_seconds: 900
    5. on_exceed: summarize_and_report # or escalate_to_human

    4.2 Tiered thinking, routed by task difficulty

    Simple tasks take the fast path; only complex tasks are allowed a deep loop. Routing signals can come from a task classifier, the number of files changed, the number of test failures, and so on.

    4.3 Set a progress threshold and exit early

    If several consecutive rounds produce no new useful information (passing test count does not increase, the error signature does not change), the agent should converge on its own and emit the best current result rather than keep consuming.

    5. Governance Approach 2: Compress Context to Break the Quadratic Growth

    • Layered memory: move the full history to external storage and put only summaries and key conclusions back into the context.
    • Tool-output trimming: keep only relevant fragments of logs and retrieval results instead of feeding whole blocks back in.
    • Subtask isolation: hand exploratory work to a separate sub-session and return only structured conclusions.
    • Prompt caching: reuse cached prefixes for stable, unchanging content to cut repeated input cost.
    • Structured intermediate artifacts: replace natural-language restatement with checklists and state files to reduce redundant expression.

    Illustrative context assembly logic:

    1. def build_context(task, memory, budget):
    2. parts = [task.spec, memory.summary, memory.open_questions]
    3. for item in memory.recent_results[-3:]: # carry only the last few details
    4. parts.append(item.digest)
    5. ctx = "\n".join(parts)
    6. return ctx[:budget] # hard truncation as a fallback

    6. Governance Approach 3: Shore Up Stability and Observability

    Moving a new architecture from the lab to large-scale open service requires a full set of engineering support: persistence and recovery of session state, resume-from-checkpoint, idempotent retries, request queuing and rate limiting, gradual rollout, and fast rollback.

    A cost-oriented observability system is equally necessary. At minimum, collect these metrics:

    • Distribution of steps per task (P50/P90/P99) and the timeout rate.
    • Distribution of input/output tokens per task, plus cache hit rate.
    • Connection drop rate, retry rate, and a breakdown of failure causes.
    • Cost per unit of effective output (token spend per test case passed).
    • Quota consumption rate and a forecast of remaining tasks available.

    With these metrics, “it feels worse” can be translated into engineering parameters you can actually optimize.

    7. Practical Advice for Users

    • State constraints explicitly: write acceptance criteria and prohibited actions into the task description to reduce exploratory loops.
    • Split tasks: break a large change into small steps that can be verified independently, so no single task balloons indefinitely.
    • Validate on a small sample first: run a tiny sample, measure consumption at each tier, then scale up.
    • Watch the quota burn rate, not the total quota: decide based on “how many similar tasks can I still run this week.”
    • Keep a human gate: set confirmation points before high-risk changes to avoid a long loop producing wrong results.

    8. Conclusion

    “Overthinking” is neither a simple virtue nor a simple defect; it is a capability that has not yet been priced well. For providers, real competitiveness lies not in how long the model thinks, but in whether they can offer a transparent and predictable balance among stability, effectiveness, and cost. For users, putting budgets, context, and acceptance criteria up front is the key to getting value from long-horizon agents. Once thinking is given clear boundaries and measures, deep reasoning turns from a controversy into a dividend.