Why does my coding agent hit its usage limit so fast?
A coding agent sends the whole conversation again on almost every step. One real session, measured request by request, the limits of Claude Code, Cursor and Codex, and what to change first.
Because a coding agent sends the conversation again on almost every step, and it takes many steps for each thing you ask. Your one-line question also carries everything before it. So start a new session for each task, keep what loads at the start small, and use a smaller model for easy work.
What one real coding agent session used, step by step
Tokens sent in each request of one sessionEach dot is one request to the model. The line only goes up.
One real session, Opus 5.5, 22 Oct 2026, 48 minutes. My team’s own logs (token counts only, no message text).
See the numbers
| Request | Tokens sent |
|---|---|
| 1 | 41,385 |
| 9 | 92,829 |
| 17 | 166,357 |
| 25 | 186,598 |
| 33 | 212,688 |
| 41 | 236,489 |
| 49 | 254,455 |
| 57 | 271,431 |
| 65 | 284,938 |
| 73 | 290,738 |
| 81 | 297,908 |
| 89 | 304,582 |
| 97 | 309,189 |
| 105 | 314,216 |
| 112 | 327,812 |
I run a team of agents every day in my Mac app, VShell. I took the token counts from one working session in our logs: 22 October 2026, Opus 5.5, 48 minutes, 112 requests. A token is a small piece of text, about three or four letters.
The first request carried 41,385 tokens. The last carried 327,812. The session went through 27.2 million tokens in total, and 98.6% of them were old conversation being read again from the cache (a short-term store that makes repeat text cheap). The model wrote only 90,106 tokens.
Cached text costs a twentieth of the normal input price on this model. It still came to about 56% of this session’s cost at API list prices. That share is my estimate, because Anthropic does not publish how a plan limit weighs each kind of token.
Claude Code’s docs say “a one-line question in a session that has been open all day still draws usage for the whole conversation”. Across all 1,087 sessions in these logs, cache reads were 92.3% of all tokens.
What is inside one coding agent request
What one request carries, on averageShare of input tokens, GitHub Copilot agent sessions
- 68,000tokens inmedian request
- 247tokens outmedian request
Source: Liu et al., arXiv 2608.00101. GitHub Copilot, first week of June 2026, 13.5 million sessions. Output leaves out hidden thinking.
Microsoft researchers measured 13.5 million GitHub Copilot sessions in one week of June 2026. The median request sent 68,000 tokens and got 247 back, not counting hidden thinking. In another 2026 study, runs on the same task differed by up to 30 times in tokens.
What the usage limit is in Claude Code, Cursor and Codex
| Tool | The limit | Where to see it |
|---|---|---|
| Claude Code | Pro and Max: a five-hour limit and a weekly limit. Shared with Claude chat. | /usage, /status, /context |
| Codex | Plus: estimated 15 to 160 local messages per five hours on GPT-6.1 Sol, 350 to 3,000 on GPT-6 Luna. Weekly limits “may also apply”. Pro has no five-hour limit. | /status, usage dashboard |
| Cursor | A pool that refreshes weekly, shared with the Grok apps. “Different models draw from the pool at different rates”. | Editor settings, Usage dashboard |
All read on 3 November 2026. None of the three gives the limit as a token number. OpenAI’s range of 15 to 160 messages shows why: its docs say extended sessions “will use significantly more per message”. The Cursor pages I could read do not explain re-sending, but they price cache reads separately for every model.
Six things that drain a coding agent usage limit
| What drains it | How to see it | What to do |
|---|---|---|
| One long session for many tasks | /context keeps climbing | /clear, or a new chat, for each new task |
| Coming back after a break | Cache misses in /usage | Start fresh instead of continuing |
| A big model on small work | Suggestions in /usage | /model and /effort at the start |
| Heavy rules and MCP servers | /context, /mcp | Trim the file, turn off unused servers |
| Huge tool output | A long log inside the chat | Return only the lines you need |
| Agents you forgot | /usage, by subagent | Stop them, check scheduled tasks |
Commands are for Claude Code. In Codex, /status and /compact do the closest job.
Start a new session for each task
The same work, one session or threeTotal tokens sent, same requests, same growth per request
Arithmetic on the same real session. A fresh session may need to read some files again.
I reran that session’s numbers as three shorter sessions, with the same growth per request. Total input fell from 27.1 million tokens to 10.7 million. A fresh session may need to read some files again, so treat 60% as the ceiling of the saving.
In my team each member takes one assignment in one session, writes a short report (what I did, the result, what is left), and exits. The next session reads the report, not the whole history.
/clear costs nothing. /compact reads the whole conversation to summarise it, so “compacting a large context is itself a large request”. Use it only to continue the same task. In the Copilot data, the 7.8% of sessions with a compaction held 44.2% of all tokens.
Why a break or a model switch uses more of your limit
The cache has a short life. On a Claude subscription, the main conversation gets one hour, and subagents get five minutes. On an API key or usage credits the main conversation also gets five minutes. After that, your next message “reprocesses your full context”. In Copilot, cache hits averaged 90% within a turn, 55% across turns and 8% after a model switch.
So pick the model when the session starts. My hands-on agents run one step below the top model. Anthropic says Sonnet “handles most coding tasks well”. Once you hit a Claude Code limit, /model will not bring access back, because the window is shared across all models.
Extra agents add their own requests, and an agent team in plan mode uses about 7 times the tokens of a normal session. My article on running several agents starts with two for this reason.
Keep what loads on every request small
Everything loaded at the start is sent again on every step. A rule of 1,000 tokens in a 112-request session is sent 112 times. My sessions start at about 50,000 tokens before any work, because they load a team brief and tools.
Claude Code’s docs say to keep CLAUDE.md under 200 lines. Cursor says to keep rules under 500 lines. An ETH Zurich study found context files raise cost by over 20% on average, so write only what the agent cannot guess. My article on a good CLAUDE.md shows how. OpenAI says “Every MCP server adds more context to your messages”; Claude Code now defers tool definitions by default.
Be careful with compression tools. In a test of 2,848 Claude Code runs, the most aggressive setup cut tool output tokens by 38.4% and raised the billed cost by 6.8%. Tool output was a small part of those short tasks, and agents with less to read took extra steps to look again. Long sessions may differ. Cut at the source: Claude Code’s docs show a hook that greps a 10,000-line log, taking it from tens of thousands of tokens to hundreds. And give a clear target, because “improve this codebase” makes the agent scan everything.
Usage limits in 2025, 2026 and a guess for 2027
- Weekly limits28 Aug: weekly limits on Claude Pro and Max.
- Bigger windows, raised limits1 million token window on default models. 22 Sep: five-hour limits raised.
- Both growLimits grow. Agents run longer.
- 2025. Weekly limits came to Claude Pro and Max on 28 August, on top of the five-hour limits.
- 2026. Claude Code’s default models got a 1 million token window, so a session can grow much further (what’s new). Anthropic raised five-hour limits on 22 September.
- 2027 (my guess). Limits grow, and agents run longer, so people still hit them.
How to check why your coding agent used its limit
Limit gone fast?
Open /usage or /status
- One old sessionNew session per task
- High number in
/contextat the startTrim rules and servers - Many agents or scheduled tasksStop what you do not need
Still high? Smaller model, lower effort
- Run
/usageand presswfor the last 7 days. Claude Code lists what drove your usage by skill, subagent, plugin and MCP server. It counts this machine only. - Run
/contextin a fresh session. That number goes out on every step. - Fix the biggest one and watch for a week, since one task can differ widely from the next.
Setting this up for a team’s agents is part of what my team does, and here is how we work. Which tool fits which job is in my comparison of Claude Code, Cursor and Codex.
Why did my limit go? Three checks
- 1.
/usage, pressw: what drove the last 7 days - 2.
/contextin a fresh session: what goes out on every step - 3. Fix the biggest one, watch for a week
One task, one session.
Questions people ask
Does chatting in the Claude app use my Claude Code limit?
Yes. “These limits are shared across Claude and Claude Code”. Codex works the same way with ChatGPT Work.
Why did my usage go up when I was doing nothing?
A scheduled task “fires on its interval even while the session is idle, sending your full context each time”. Active teammates also keep using tokens until they exit. Usage on another device also counts, and the breakdown in /usage does not show it.
Will a bigger plan fix it?
It buys more room, and the same session still grows the same way. Fix the habit first, then judge the plan. Claude’s usage credits, Codex credits and Cursor top-ups let you keep working past a limit.
If you want coding agents set up for your team, working side by side with real checks, see how I can help or tell me about your project.
Have an app idea, a stuck app, or a daily job you want an AI agent to do?
Write three lines. I reply within one working day with a plain answer.
Sources. My own session logs (22 Oct 2026; all sessions to 2 Nov 2026; counts only). Claude Code docs: Manage costs, Prompt caching, Context window, What’s new. Claude Help Center: Using Claude Code with your Pro or Max plan. Claude API docs: Prompt caching. OpenAI: Codex Pricing, Best practices. Cursor docs: Models, Rules (all read 3 Nov 2026). Anthropic, Opus 5.5 news (22 Sep 2026). TechCrunch (28 Jul 2025). Liu et al., arXiv 2608.00101 (30 Jul 2026). Bai et al., arXiv 2604.22750 (v3, 2 Oct 2026). Weinberger and Hozez, arXiv 2607.12161 (v5, 12 Aug 2026). Gloaguen et al., arXiv 2602.11988 (v3, 29 Sep 2026).


