← All guides

Stop Hitting Claude Code Usage Limits: Best Tools and Settings (2026)

Your 5-hour Claude Code window burns out in 30 minutes? Here is what actually consumes it and the verified tools that stretch it.

If you are on the Claude Pro plan, you have probably watched a 5-hour usage window disappear in under an hour. Community threads in July 2026 are full of the same complaint. Most of the burn is not your prompts. It is context you did not know you were paying for.

This guide has three parts: how the limits actually work, free habits that cut usage, and open-source tools we verified on GitHub before recommending.

Hit Your Codex Token Limit? Do THIS to Reset It

How Claude Code limits work

Anthropic documents this at code.claude.com/docs/en/costs:

  • You have two windows: a rolling 5-hour window and a weekly window. Both are shared across all models and across claude.ai, Claude Code, and Claude Desktop. Switching models does not reset them.
  • The full conversation is re-sent with every request. Every tool call is another request that carries the whole history. A one-line question in a session that has been open all day still bills for the entire conversation.
  • Prompt caching softens this, but the cache lasts one hour on a subscription. Come back after lunch and your first message reprocesses everything.
  • /compact is itself a large request — it must read everything it summarizes. /clear costs nothing.

That one mechanism explains most “I barely did anything” burn: long sessions, not hard questions.

Free habits that cut the most usage

  1. Run /clear between unrelated tasks. It is the single biggest free lever. Use /rename first if you want to /resume later.
  2. Plan in one session, implement in a fresh one. Use plan mode to produce a plan, save it to a file, /clear, then say “implement PLAN.md”. The implementation runs on a lean context.
  3. Keep CLAUDE.md under ~200 lines. It loads on every session and bills even when irrelevant. Move reference material into skills, which load only on demand.
  4. Check your effort and thinking settings. Thinking tokens bill as output. Use /effort or lower the thinking budget for routine work.
  5. Pick the model for the job. Sonnet for most coding, the big model only for architecture and hard debugging, Haiku for subagent grunt work.
  6. Run /usage and /context before you guess. /usage now shows which skills, subagents, and MCP servers consume your week, as percentages. Fix what the data names.
  7. Point at files, do not paste them. Large pastes and vague prompts (“improve this codebase”) trigger broad, expensive scanning.
  8. Disable MCP servers you are not using with /mcp. Tool definitions are deferred by default now, so this matters less than it used to — but zero is still cheaper than deferred.

Verified tools and repos

We checked each repo page before listing it. Tools split into three jobs. Only the second and third actually extend a session — a meter alone does not save tokens.

Measure where tokens go

ToolWhat it does
ccusagenpx ccusage@latest. Reads Claude Code’s local usage logs and produces daily, weekly, and per-session token and cost reports. The standard first step.
Claude Code Usage MonitorLive terminal monitor with burn-rate analytics and session forecasting — predicts when you hit the limit, which is the real Pro-plan question.

Compress what enters context

ToolWhat it does
RTKbrew install rtk. A Rust binary that sits between the shell and the agent and compresses output from 100+ dev commands (git, npm, docker, pytest) before it enters context. Claims 60–90% reduction on command output. Noisy tool output is the cheapest thing to throw away, so this is the most direct win on this list.
Context ModeMCP server that sandboxes large tool output into local SQLite; the agent gets summaries and references instead of full dumps.
token-optimizerClaude Code plugin with hooks that compress command output and turn repeat file reads into delta-only reads.

Avoid reads entirely with an index

ToolWhat it does
GraphifyBuilds a local, queryable knowledge graph of your codebase with tree-sitter — no API key, nothing leaves your machine. The agent queries the graph instead of re-reading files. Treat the big savings claims with skepticism: gains scale with project size, and small projects may see little benefit.
claude-memCompresses each session into semantic summaries injected into later sessions, cutting the “re-explain the project” tax at session start.
claude-contextSemantic code search MCP so the agent retrieves snippets instead of loading directories. Real setup cost: needs an embedding key and a vector DB endpoint.

One honest note: viral posts assign precise savings percentages to many of these tools. Those numbers come from aggregator blogs, not the repos. The mechanisms are real; the exact percentages are marketing.

The 10-minute setup

  1. npx ccusage@latest — see where last week actually went.
  2. Run /usage in Claude Code — see which skills and MCP servers eat your window.
  3. Cut CLAUDE.md to the essentials; move the rest into skills.
  4. brew install rtk if your sessions are command-heavy.
  5. Adopt the two habits that need no install: /clear between tasks, and plan-then-implement in separate sessions.

Do those five and the same Pro plan does several times the work.

On the free ChatGPT/Codex side, the app also grants periodic limit resets most people never redeem:

Free ChatGPT/Codex App Limit Resets: Why You Have Them + How to Redeem Them

Need OpenClaw fixed live?

Remote rescue sessions for gateway, auth, tunnel, VPS, and model access problems.

See Rescue Session

Read next

Stop Hitting Codex Usage Limits (2026): Resets, Free Tiers & Token Habits
How OpenAI Codex usage limits work in 2026, how to redeem banked limit resets, and the config and habits that cut token burn on a $20 plan.
Caveman Mode for Claude Code: Cut Output Tokens 61-75% (2026)
Caveman Mode is a CLAUDE.md snippet that strips preambles, summaries, and filler to cut Claude Code output tokens 61-75% — about $100-140/month saved with no loss of code quality.
Fix the claude -p $1,800 API Bill Trap (2026)
The claude -p print-mode flag bills via API even on a paid Max plan — one overnight run hit $1,800. Here is how to check your auth mode and never get burned.
ENABLE_TOOL_SEARCH: Cut Claude Code's 45K-Token Tool Tax (2026)
By default Claude Code injects every tool definition each turn — about 45K tokens. ENABLE_TOOL_SEARCH lazy-loads them, dropping per-turn context to ~20K and saving $50-100/month.