Make Claude Code limits last: 10 habits from the official docs
Find what is eating your usage with /usage, then clear context, pick the right model, lower effort and slim down CLAUDE.md. Every point checked against Anthropic's docs.
Oct 26, 2026
Every point here comes from Anthropic’s “Manage costs effectively” page (checked 2026-10-26). Commands and versions may differ in your install.
Claude Code usage scales with context: the bigger the context, the more every message costs. Saving usage comes down to a single rule — send less context with every request.
1. Find out what is eating your usage: /usage
On Pro, Max, Ultra, Team and Enterprise plans, /usage attributes recent usage to skills, subagents, plugins and individual MCP servers, and lists recommendations (for example, “Trim CLAUDE.md · 49k tokens per request”).
- Press
d/wto switch between the last 24 hours and 7 days. - Recent versions let you press
fto have Claude Code apply the recommendations it can. - The figures come from local history, so usage from other devices or claude.ai is not included.
2. /clear between tasks
Stale context wastes tokens on every later message. When you switch to unrelated work, /rename the session, then /clear; come back later with /resume.
/clear costs nothing. /compact has to read the whole conversation to summarize it, so it is itself a large request. If you want a fresh start, clear.
3. If you compact, say what to keep
/compact Focus on code samples and API usage tells Claude what to preserve. You can also add a “Compact instructions” section to your project’s CLAUDE.md.
4. Pick the right model
Sonnet handles most coding tasks; keep Opus for complex architecture and multi-step reasoning; give simple subagents model: haiku. Switch mid-session with /model.
Note: after “You’ve hit your session limit” or “weekly limit”, switching models does not help — those windows are shared across all models. Only after a model-specific limit (“Opus limit”, “Sonnet limit”) does switching to another model family keep you working.
5. Lower effort for simple work
Thinking tokens are billed as output, and the default budget can be tens of thousands of tokens per request. Use /effort to turn it down for simple tasks.
6. Keep CLAUDE.md under 200 lines
CLAUDE.md loads into every session. The docs suggest keeping it under 200 lines and moving workflow-specific instructions (PR reviews, migrations) into skills, which only load when invoked.
7. Trim MCP servers
Run /context to see what takes space and /mcp to disable servers you are not using. CLI tools like gh, aws and gcloud are more context-efficient than MCP servers.
8. Filter verbose output with hooks
Instead of having Claude read a 10,000-line log, a hook can grep for ERROR first. The docs show a PreToolUse hook that returns only failing tests, cutting context from tens of thousands of tokens to hundreds.
9. Push verbose work to subagents
Tests, doc fetching and log processing can run in a subagent so only a summary returns to your main conversation. Subagent requests still count against your usage, so give simple ones a smaller model.
Agent teams use roughly 7x more tokens than a standard session when teammates run in plan mode.
10. Be specific, and stop early
“Improve this codebase” triggers broad scanning; “add input validation to the login function in auth.ts” reads a few files. Use plan mode for complex tasks, press Esc as soon as it heads the wrong way, and /rewind to a checkpoint.
Why long sessions burn usage faster
- Every request carries the whole conversation, so a one-line question in an all-day session costs the whole session.
- After a long break, the first message misses the prompt cache and reprocesses everything.
- Scheduled tasks (
/loop) fire on their interval with full context, even while you are idle.
When you hit the wall
- Check which limit it is: session, weekly, or model-specific.
- With usage credits on,
/usage-creditslets you keep going (billed separately). - Recent versions can wait for the reset and continue the interrupted task automatically.
- For global resets and what may come next, see Claude’s reset history.
Paste this into your AI
Paste the text below into Claude Code. It checks your project against this guide.
Find out where this Claude Code project spends its usage, and give me changes I can act on.
1. Read this guide first: https://tokenreset.dev/guides/claude-code-limits/
2. Check CLAUDE.md, auto-loaded memory, MCP servers, skills, subagents and hooks for anything that costs tokens on every request.
3. Ask me to paste the output of /usage, then rank what you find by impact.
4. For each suggestion, say what it saves and what it costs.
Give me the list first and change files only after I confirm. Do not delete anything or change my settings without my approval.
Source
- Anthropic, “Manage costs effectively”, Claude Code documentation (checked 2026-10-26)