You are halfway through a task and Claude Code says you have hit your limit. You did not ask for that much. Where did it go?

Claude Code sends your whole conversation with every request. In a long session, even a one-line question carries everything said before it. Keep sessions focused, look at what is in context, and start fresh when the task changes.

The docs put it this way: “a one-line question in a session that has been open all day still draws usage for the whole conversation.” (Manage costs effectively)

We Measured It: One Question, Two Sessions

We asked Claude Code the same thing in two sessions: “Reply with the single word OK.” The only difference was what had happened earlier in the session.

SessionTokens sent with the questionClaude Code’s own estimate, API list price
Fresh session26,505$0.0027
After Claude read one 600-line log file (59 KB)59,927$0.0061

The answer was four tokens both times. One file read earlier in the session more than doubled what the question carried. By the docs, that file rides along with every later message too.

The fresh session is not free either. Those 26,505 tokens are mostly the system prompt, the tool definitions, the list of skills and a 3,200-token CLAUDE.md. That was the floor on our machine before we typed anything.

How we ran it, so you can judge it:

  • Claude Code 2.1.328 with Sonnet 5.5, on 19 November 2026, one run per row.
  • claude -p --setting-sources project --model sonnet --output-format json, in an empty test folder. We added up the input and cache token counts in the usage block. The second row resumed the session with --resume.
  • User settings were off, so no extra MCP servers or plugins were loaded. Your own floor is probably higher.
  • In both rows almost every token was read from the prompt cache, so the two rows compare like for like.

Two limits on what this shows:

  • Tokens and dollars here are not “percent of your limit”. The dollar column is Claude Code’s estimate at API prices, not what a subscriber pays. The pages we read do not say how plan limits weigh cached tokens.
  • A cold cache costs more. In an earlier run, the same fresh question wrote about 9,300 tokens to the cache, and Claude Code’s estimate for it was about $0.04. More on that below.

You can check your own session without any of this. Type /context. In our long session it reported 60k tokens in total, 37.8k of them under “Messages”.

How Claude Code Usage Limits Work

On paid plans, Anthropic’s Help Center describes two limits (How do usage and length limits work?):

  • A session limit that resets every five hours. The period starts when you send your first message.
  • A weekly limit across all models, which resets at a fixed time assigned to your account. Max and Ultra plans also have a separate weekly limit for Fable.

Both are shared across claude.ai, Claude Code and Claude Desktop. A long chat in the browser draws from the same allowance as your coding session.

Verified Ultra accounts are the exception on the first limit: “Verified Ultra accounts don’t have a five-hour limit.” They still have the weekly one. An Ultra account that is not verified yet has a temporary limit. (What is the Ultra plan?) Ultra is the new name of the Max 20x plan. Our short film on that change:

It loads from YouTube only when you press play.

When you reach a limit, you can wait for the reset, upgrade, or turn on usage credits, which are billed on top of your plan.

If you reach the five-hour limit in the middle of a response, Claude Code may keep going briefly to finish the step in progress. You will see “Usage limit reached · wrapping up”. It does not apply to a new message. On Pro it happens at most once per weekly period, and Anthropic says it is still rolling out. (Use Claude Code with your Pro, Max, or Ultra plan)

To see where you stand, open Settings > Usage on claude.ai, or run /usage in Claude Code. Plan details change often, so treat that page as the truth, not this post.

Why Long Sessions Use Up Your Limit Faster

The docs have a sentence for the feeling in the first paragraph of this post: “A session that has been open for hours can use far more of your plan limits than your activity suggests”.

Everything in the conversation rides along with each request: your messages, every file Claude read, every command’s output. And one task is not one request. The docs: “each time Claude uses tools it sends another request carrying that batch of tool results.” Subagents and agent teammates add requests of their own on top.

Prompt caching softens this. Claude Code re-reads the history at the cached token rate, which is cheaper than fresh input. Two things undo that saving (How Claude Code uses prompt caching):

  • A long break. Your first message after a break longer than the cache lifetime “misses the cache and reprocesses your full context.” On a subscription, within your plan’s included usage, that lifetime is one hour for the main conversation. On usage credits or an API key it is five minutes.
  • Switching models mid-session. “Each model has its own cache”, so the next request reads the whole history with no cache hits. On most models, changing the effort level does the same. The docs list the current models that keep their cache.

Usage can also climb while you are away from the keyboard. The docs name these:

  • a scheduled task, which “fires on its interval even while the session is idle, sending your full context each time”;
  • a message from another of your sessions, delivered as a new turn;
  • check-ins on a background goal;
  • session recap and idle compaction, which the docs say “can use tokens while you’re idle”.

If your limit vanished overnight, look there first.

How to Reduce Claude Code Usage: 9 Habits

These are habits the docs themselves recommend. The first six cost nothing. None of them means “cut one task into many small sessions”. More on that after the list.

  1. Look first. Run /context to see what is taking space. Run /usage for your plan numbers. The docs say its breakdown “recommends a change for behaviors behind 10% or more of your recent usage.” Its figures are approximate and come from this machine only. If an MCP server you do not use shows up, disable it in /mcp.
  2. Start fresh between unrelated tasks. “Use /clear to start fresh when switching to unrelated work. Stale context wastes tokens on every subsequent message.” According to the docs, /clear costs nothing. Run /rename first if you want to find the session again with /resume.
  3. Ask for something specific. The docs warn that vague requests like “improve this codebase” trigger broad scanning. A request that names the function and the file lets Claude read less.
  4. Plan before you build. “Press Shift+Tab to cycle to plan mode before implementation.” The docs’ reason: it prevents “expensive re-work when the initial direction is wrong.”
  5. Keep CLAUDE.md short. It is “loaded into context at session start”, so it is part of the floor in our table. “Aim to keep CLAUDE.md under 200 lines by including only essentials”, and move instructions for specific workflows into skills, which load only when used.
  6. Stop loops and teammates before you walk away. A scheduled task keeps sending your full context on its interval, and each agent teammate “keeps consuming tokens until it exits”.
  7. Compact only when the session will go on. /compact replaces the history with a summary. You can steer it: /compact Focus on code samples and API usage. But it is not free. See the numbers below.
  8. Pick the model and effort at the start. “Sonnet handles most coding tasks well and costs less than Opus.” /effort sets how much Claude thinks, and thinking tokens are billed as output tokens. Change either at the start of a session or at a natural break, because a mid-session switch can start a fresh cache.
  9. Send noisy work to subagents. A subagent is a helper with its own context, so verbose output stays out of your main conversation. The subagent’s work is not free: “The subagent’s own requests still draw on your usage.” What you gain is a smaller main conversation for every later message. Not all work belongs there. See the next section.

None of the docs put a number on these savings, so we will not promise any.

Fewer Tokens Is Not the Only Goal: When to Keep One Session

In October 2026 Anthropic published Building agents: When to fold subagents into your main agent loop. It is about agents that teams build on Claude Platform, not about Claude Code sessions or plan limits, so we apply it here by analogy. Across several enterprise deployments, a single agent with skills “frequently outperformed” the subagent design on quality. One reason given: when agents are split by problem type, they play a “telephone game”, and each handoff loses some detail. An agent that has seen the result of each earlier step can connect them. We covered the article in a short film: Your agent may not need subagents.

The same article says “subagents still have their place”. Two of its three cases are close to habit 9: a single loop that measurably degrades from context bloat, and parallel tasks with fresh context windows “that can be discarded once the task is done”.

The two sources look at different things. The cost docs count the tokens each message carries. The article looks mostly at the quality of the result, and reports that the single agent was often cheaper and faster too. Our reading of both:

  • Hand off work when you need only the result. A search across the repo, a long test run, a log to scan. The noise stays out of your session and a short answer comes back.
  • Keep in one session the work whose details the next steps need. A design discussion, a debugging trail, a multi-step change. A summary handed back, or a fresh session, drops some of that.
  • Start fresh when the task changes, not in the middle of one. /clear is for unrelated work. Cutting one task into several sessions may save tokens, and it costs you the thread.

This is a rule of thumb from reading the two sources side by side. We have not measured it.

What Compacting Cost in Our Run

After /compact, the same question carried 27,881 tokens instead of 59,927. That is the gain.

The price: the /compact request itself read about 60,000 tokens from the cache and wrote a summary, at an estimated $0.021. The next two questions rebuilt the cache and came to about $0.037 and $0.018, against $0.006 for a question in the uncompacted session.

So in our run, compacting would pay for itself only after roughly twenty more requests. That is our rough arithmetic from one run, not a rule. The practical reading: compact at a natural break when a lot of work is still ahead. For a short remainder, just finish. For a new task, use /clear.

The docs add one more case: /compact costs the most when you come back to an old session, because there is no cache left to read.

What We Tested

We ran /context, /compact and /usage ourselves, in the session described above. We did not test the other commands for this post. All of them are listed in the commands reference.

Keep Claude Code Sessions Focused

A focused session carries less with every message. Focused means one task per session. It does not mean cutting a task into pieces: when the next step needs what the session already knows, stay in it.

We make Pathista, which hands an AI assistant a process one step at a time. We have not measured whether it changes usage, so this is not a claim about limits.

For a first move, run /context in your next session and see what every message is carrying.

Sources: Anthropic, Claude Code documentation “Manage costs effectively”, “How Claude Code uses prompt caching” and “Commands” (code.claude.com/docs/en, read 19 November 2026); Anthropic Help Center articles linked above (read 19 November 2026); Anthropic, “Building agents: When to fold subagents into your main agent loop”, Diane Sarkis, 22 October 2026 (claude.com, read 19 November 2026); our own measurements, 19 November 2026.