Subagents Account for Most Token Costs in Long Agent Runs: Fixes That Cut Usage 70 to 90 Percent in Practice

Reddit r/artificial Papers

Summary

The article analyzes a 2026 paper by Bai et al. showing that subagents and context bloat cause token costs in long agent runs to be ~1000x higher than chat, and presents three practical fixes (PLAN.md, read budget, out-of-band notes) that reduce token usage by 70-90%.

Running multi-turn or multi-agent AI sessions? There is a consistent degradation pattern across tools: context fills with repeated history, tool schemas, and subagent handoffs. A [2026 paper by Bai et al.](https://arxiv.org/abs/2604.22750) studying SWE-bench across eight frontier models found agentic coding tasks consume roughly 1000x more tokens than ordinary chat, with 30x variance on identical tasks. Accuracy does not rise with spend. In one tracked research synthesis run I observed context hit 450,000 tokens. The agent dropped early constraints, re-queried sources already in history, and required manual reset. After adding three controls, the same class of task peaked near 85,000 tokens: * **PLAN.md and INVARIANTS.md** outside the conversation window, read fresh each major turn * A **2,000-line read budget gate** per turn (agent states intent before any retrieval) * **Out-of-band notes** for subagent coordination so side traffic never enters the main transcript Dynamic tool discovery produces similar ratios. One harness reduced input tokens 96% and total spend 90% by loading schemas only for tools the agent actually selects, rather than injecting a full catalog on every call. [Full write-up with the paper analysis, tree-sitter extraction patterns, and an implementation checklist](https://jackmaguire.org/blog/subagents-account-for-most-token-costs-in-long-agent-runs/) What token or cost patterns have you run into in your own agent sessions?
Original Article

Similar Articles

How are you actually saving cost on your agent systems?

Reddit r/AI_Agents

The article discusses the challenges of cost optimization and FinOps for AI agent systems, highlighting issues with unpredictable token bills, lack of granular attribution tools, and strategies like caching and hard caps.