Recipe · Build apps (vibe coding)
Slow Claude Code token burn: idle compaction, resume warnings and /rate-limit-options
Cut wasted weekly and 5-hour Claude Code usage by turning on Anthropic's idle compaction, heeding the Pro/Max resume warning, starting fresh sessions instead of reprocessing a huge idle thread, and stopping unattended sessions from burning the limit after you walk away.
Steps
- Update Claude Code (`claude update` or your install path) so you are on a build that includes idle compaction (changelog: terminal idle compaction from v2.1.290+, with `/config` Idle compaction row later) and the Pro/Max resume warning (changelog entry for 2.1.304, 19 Oct 2026). Check with `claude --version`. (Changelog checked 5 Nov 2026.)
- Leave long chats to idle-compact: Anthropic's changelog says a 200K+ token conversation left idle about 54 minutes is summarized before the one-hour prompt cache expires, so the next message does not reprocess it all. Confirm Idle compaction is on in `/config` (or leave the default).
- If you must raise or lower the threshold, set `CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS`, or turn the feature off with `"idleCompaction": false` in settings.json — only if you understand you will pay the reprocess cost on resume. Prefer leaving it on.
- When Claude Code warns that resuming an inactive conversation would use a noticeable share of your 5-hour usage limit (Pro/Max), choose start a new conversation unless you truly need that exact thread. Anthropic notes Claude can look up the previous one if you refer to it.
- If a usage limit blocks a request mid-task, type `/rate-limit-options` instead of closing the session. Anthropic's command reference (checked 9 Nov 2026) says it shows ways to keep working: wait and continue automatically when the limit resets, add usage credits, or upgrade your plan. It needs a claude.ai subscription, and the wait-and-continue options need Claude Code v2.1.234 or later.
- Reported by users, not measured by us (X, 5 to 7 Nov 2026, checked 9 Nov): one user says an Agent SDK chat UI used up the 5-hour limit about 1.7x faster than the terminal UI. If you are close to the limit, staying in the terminal is a cheap thing to try.
- Reported by users, not confirmed by Anthropic or Google (X, 5 to 7 Nov 2026, checked 9 Nov): people who moved to Claude models inside Google Antigravity after a Claude Code lockout say that quota ran out within minutes. If you switch tools, start a short fresh session from a handoff note instead of pasting the whole transcript.
- Before you walk away: turn off automatic continue at the usage limit if you do not want Claude Code to keep working after a reset while you are gone. Anthropic's interactive-mode docs (checked 2026-11-13) say automatic continue is on by default in interactive sessions signed in with a claude.ai subscription, and it needs Claude Code v2.1.234 or later. In `/config`, turn off "Continue automatically at usage limit", or set `autoContinueAtUsageLimit` to false in your user settings. `/config autoContinueAtUsageLimit=false` also works, including with `-p`.
- Before you walk away: look for leftover headless jobs with `ps aux | grep "claude -p"` (or your system's process list) and stop stale `claude -p` processes before you start another run. Reported in issue 108211 (https://github.com/anthropics/claude-code/issues/108211, open, checked 2026-11-13).
- Before you walk away: in Claude Desktop, close the coordinator session and any side sessions instead of leaving them open overnight. Reported in issue 108238 (https://github.com/anthropics/claude-code/issues/108238, open, checked 2026-11-13).
- After you upgrade a plan or switch accounts, open Settings > Usage and check the meter before you trust it, and remove old scheduled tasks if you switched accounts. Reported in issue 108206 (https://github.com/anthropics/claude-code/issues/108206, open, checked 2026-11-13) and issue 108237 (https://github.com/anthropics/claude-code/issues/108237, open, checked 2026-11-13).
- For day-to-day work: keep AGENTS.md short, commit often, and hand off with a short HANDOFF.md when a limit is near (see the usage-limit handoff recipe) instead of one mega-thread that burns tokens on every wake.
Agent template
Replace anything in { } with your details.
I use Claude Code on a Pro or Max plan. Using only Anthropic's changelog facts (idle compaction for 200K+ token chats idle ~54 minutes; Pro/Max resume warning on inactive conversations), walk me through checking `claude --version`, confirming Idle compaction in /config, and deciding whether to resume or start fresh when the resume warning appears. Do not invent usage numbers. Expected output
Idle compaction stays on, you heed resume warnings, unattended sessions are stopped before you walk away, and large idle threads no longer silently reprocess into your 5-hour or weekly limit.
Gotchas
- ⚠ Cite only Anthropic's own changelog for behaviour and dates; do not treat third-party blog numbers or user screenshots as official limits.
- ⚠ Turning idle compaction off can increase burn when you resume a huge thread after the prompt cache expires.
- ⚠ We have not measured token savings on a private account; follow the vendor steps and your own /usage.
- ⚠ User reports (the 1.7x chat UI figure and the Antigravity quota) are what people posted, not measurements. Check your own /usage.
- ⚠ The leftover `claude -p` jobs, Desktop side sessions, and the meter after an upgrade or account switch are reported in open GitHub issues 108211, 108238, 108206, 108237, 108272 and 107956 (all open, checked 2026-11-13), not confirmed in Anthropic's docs. We have not reproduced them.
Where Claude Code breaks
- The limit, from Claude Code’s page: Claude Code draws from the same pool as Claude chat: Pro ($20/mo) and Max ($100/mo, 5x Pro) each have a 5-hour session cap plus a weekly cap, while Ultra ($200/mo, 10x Pro… (support.claude.com, checked )
- Known problem with Claude Code: Fake extension copies on Cursor's marketplace (29 Oct) (, cursor.com)
- Watch out with Claude Code: Claude Code is not on the free Claude plan; it uses your Pro or Max usage limits, and a batch of photos burns through them faster than text. Do 30 to 50 receipts at a time. From a recipe
- Real example with Claude Code: Burned a 5-hour Claude Max quota in 30 minutes via subagent file reads vs Spotify's 90% token-reduction harness. The catch: Self-reported developer post on X (24 Oct 2026) and architectural summary of Spotify's engineering setup; token savings depend on codebase size and subagent… (source dated )
Hit your Claude Code usage limit mid-task? Hand off to Codex or Cursor without losing context Claude Code vs Codex vs Cursor: Usage Limits, Compaction & Handoffs Stretch a Codex Plus usage limit: 5 habits that cut re-reads tools/claude-code
Sources (13): public reports, not re-tested by us
Claude Code changelog (checked 2026-11-13): idle compaction; Pro/Max resume warning in 2.1.304 anthropics/claude-code CHANGELOG v2.1.299: idle compaction + idleCompaction setting anthropics/claude-code CHANGELOG v2.1.304: Pro/Max inactive-resume usage warning Claude Code commands (checked 2026-11-13): /rate-limit-options and /config Claude Code interactive mode (checked 2026-11-13): automatic continue, autoContinueAtUsageLimit, wait for a usage limit to reset User report on X, Nov 2026: chat UI vs terminal UI (not a measurement) User report on X, Nov 2026: Claude in Antigravity quota Reported in issue 108211 (open, checked 2026-11-13): headless claude -p waited through a usage limit Reported in issue 108238 (open, checked 2026-11-13): Desktop side sessions and parent wakes Reported in issue 108206 (open, checked 2026-11-13): meter after a Pro to Ultra upgrade Reported in issue 108237 (open, checked 2026-11-13): cron after an account switch Reported in issue 108272 (open, checked 2026-11-13): unusual Max weekly meter drain Reported in issue 107956 (open, checked 2026-11-13): unusual Fable weekly meter reading