The complete reference for staying within your Claude quota. Works for claude.ai web, Claude Code CLI, the VS Code extension, and the API. Updated for 2026.
/compact after big subtasks, switch to Sonnet or Haiku for routine work.Resets 5 hours after your first message of a session, not at midnight. Your plan sets the size: Max 5x is roughly 5x Pro, Max 20x roughly 20x. Anthropic has raised these caps several times in 2026, so exact message counts shift.
A secondary ceiling on top of the 5h window. Newer models can also carry their own weekly cap; the tracker shows those as separate rows. Hitting any one of them stops you for that scope.
claude.ai web, Claude Code CLI, and the desktop app all draw from the same usage budget. There is no “switch surface to reset”.
Claude re-reads your entire conversation on every reply. Message 50 in a thread costs far more than message 1 in a fresh chat.
claude.ai web caps each chat’s context (roughly 200K tokens). Claude Code and the API support up to 1M on the newest Opus and Sonnet models. Enterprise plans get larger windows on some models.
Cowork tasks (file access, multi-step autonomous work) can use 10 to 20x the tokens of a plain chat message. Use regular chat for questions; save Cowork for real tasks.
Carrying a 40-message conversation into an unrelated question makes every new reply re-read all 40 previous ones. A fresh chat starts at zero cost.
“Fix the bug in src/auth/validate.ts line 42” is up to 10x cheaper than “Fix the authentication bug”, which sends Claude searching your whole codebase.
Claude processes everything you send. Pasting a 500-line file when you need 20 lines burns ~25x more of your quota.
Three related questions in one message = Claude reads the context once. Three separate messages = three full re-reads. Group your questions before you send.
Web search, Research mode, and MCP connectors are token-intensive. Anthropic explicitly recommends disabling them when you don’t need them. The toggles live in the message composer.
Great for hard reasoning problems, expensive for simple ones. On newer models the composer’s model picker also sets a reasoning-effort level; thinking tokens count toward your quota, so keep it low for routine asks. “Rewrite this sentence” doesn’t need it. “Design this distributed system” does.
Adding “no explanation needed, just the code” can cut response length, and therefore cost, by 40 to 60% for straightforward tasks.
Every PDF, screenshot, and image counts toward your tokens. Images are processed as vision tokens and add up fast. Attach only what Claude actually needs to see.
In a long chat, “as I mentioned earlier about the auth flow” is cheaper than re-pasting the whole flow. Claude already has it in context.
One well-prepared message beats five follow-up corrections. Re-read your prompt once. Did you include all the context? Did you specify the output format you want?
If you’re already at 70% of your 5h window, consider waiting for the reset before a complex, multi-step task. The status bar shows your live usage.
Project knowledge is indexed with retrieval-augmented generation. Each conversation pulls only the relevant chunks, not the full content. A 200-page reference doc costs almost nothing per chat once it’s uploaded.
Every conversation in a Project inherits its instructions automatically. Write your conventions, tone, output format, and constraints once. Stop re-explaining them in every new chat.
Stale designs, old drafts, dead-end experiments stay searchable until you delete them, which means Claude can still spend tokens retrieving them. Treat your Project like a working set, not an archive.
Project instructions are loaded into every single conversation. A 50-line ruleset is fine. A 500-line manifesto silently taxes every message you send.
/compact compresses history but keeps context.Replaces your conversation history with an AI-generated summary. You keep the context you need, but the token cost of future messages drops significantly. Use it after completing a major subtask.
/clear is a full reset for a fresh start.Wipes the entire context. Ideal when switching to an unrelated task. Unlike closing and reopening, it keeps your terminal session intact.
CLAUDE.md in your project root.Claude reads this automatically at session start. Document architecture decisions, file locations, and conventions once. No more re-explaining your project every session. Keep it under 200 lines.
The newest Opus is the most capable model, but also the most expensive per message. Use /model mid-session: Haiku for quick fixes and lookups, Sonnet for everyday tasks, Opus only for hard architectural problems.
.gitignore aggressive.Claude Code respects .gitignore when searching files. Add node_modules/, dist/, .next/, coverage/, log files, and any other heavy folders. Every directory it skips is tokens you don’t spend on exploratory reads.
Asking Claude to plan first catches misunderstandings before expensive code generation. A 5-message planning phase avoids a 30-message correction spiral. Toggle with Shift+Tab.
A subagent (the Agent tool) runs in its own context window and returns only a summary. This keeps exploratory searches out of your main conversation, so the parent context stays small.
A Git commit gives you a clean checkpoint. You can start a new session with a clear context instead of continuing an expensive, sprawling one.
/compact first in Claude Code, or summarise what you need and start a fresh conversation on claude.ai web. You keep momentum without dragging old context into every new reply.
/model; on claude.ai use the model selector at the top of the composer.