Why is Claude Code using so many tokens?

Short answer: Claude Code is using so many tokens because it sends your full conversation with every request, including each round of tool results. A one-line question in a session open all day still draws usage for the whole history. Breaks past the cache lifetime, subagents, scheduled tasks and compaction add more. Run /usage to see what's behind yours.

CauseWhy it costsWhat to do
Long conversationEvery request carries the whole history/clear between unrelated tasks
Coming back after a breakThe cache has expired, so the full context is reprocessedClear or compact before you step away
Subagents, workflows, agent teamsEach sends its own requests on top of yoursUse them for verbose work, on a smaller model
Scheduled tasks and idle check-insThey fire while you're away, sending full contextStop loops you no longer need
/compact on a huge historyIt reads everything it summarises/clear instead when you don't need continuity
Extended thinkingThinking tokens count as outputLower /effort for simple tasks

Why does Claude Code usage climb in long sessions?

Because the cost of each message grows with the conversation. Claude Code's docs say it "sends your full conversation with every request". Each time Claude uses a tool, it sends another request carrying those tool results.

Prompt caching softens this. Claude Code re-reads cached history at the cheaper cached rate, rather than processing it from scratch. Cheaper isn't free, though. The docs put it plainly: "a one-line question in a session that has been open all day still draws usage for the whole conversation."

So the same short prompt costs more at 17:00 than it did at 09:00, if you've kept one session going all day. Nothing is wrong. That's how the requests are built.

Why does my first message after a break use so much?

Because the cache has expired. Cached context lasts for a set time after your last request, and each request that hits the cache resets the timer. After a longer gap, "your first message after a break longer than the cache lifetime misses the cache and reprocesses your full context".

On a Claude subscription, within your plan's included usage, Claude Code requests a one-hour cache for your main conversation. Subagents and other helper requests usually get five minutes. Once you're past your plan's limit and drawing on usage credits, the main conversation drops to five minutes too, unless you set promptCacheTtl yourself.

Some changes also invalidate the cache mid-session, giving you one slower, more expensive turn. Switching models is the common one: the next request reads the entire history with no cache hits. Compaction does it by design, because the history is replaced with a summary.

What uses tokens when I'm not typing?

Several things can start a turn while the session sits idle, and each sends your full context:

  • Scheduled tasks, such as /loop, fire on their interval whether you're there or not.
  • Goal check-ins: while background work keeps a goal waiting, Claude Code asks Claude to check on it. It starts at most three idle check-ins per goal between your prompts.
  • Messages from your other sessions arrive as new turns. Set crossSessionInbound to hold to hold them instead.
  • Session recap and idle compaction can also use tokens while you're away.

If usage moves overnight on a machine you left running, look here first.

Do subagents and MCP servers use extra tokens?

Subagents do. Each subagent, each agent a workflow spawns and each agent teammate sends its own requests on top of the main conversation's. Anthropic says agent teams use about 7 times more tokens than a standard session when teammates run in plan mode.

Subagents can still save you usage overall. Long test output or log files stay in the subagent's context, and only a summary comes back to your main conversation. Give simple subagent tasks a smaller model, such as model: haiku, to keep their share down.

MCP servers matter less than they used to. Their tool definitions are deferred by default, so only tool names and server instructions enter context until Claude uses a tool. Disable servers you aren't using in /mcp, and prefer CLI tools such as gh where they exist.

How do I see what's using my Claude Code tokens?

Run /usage. On Pro, Max, Ultra, Team and Enterprise, it shows what counts against your plan limits:

  1. Attribution: the share of recent usage from skills, subagents, plugins and each MCP server.
  2. Recommendations: one row per behaviour behind at least 10% of recent usage, such as 25% Trim ~/code/api/CLAUDE.md · 49k tokens per request. The share is how much usage the row applies to, not how much fixing it saves.
  3. Loops: the heaviest scheduled tasks, with how often they fire and their tokens per run.

Press d or w to switch between the last 24 hours and the last 7 days. If the footer shows a hint like f to fix 2 of 3, press f and Claude Code will act on the rows it can, showing you each change first. The breakdown comes from history on this machine, so usage from other devices or claude.ai isn't included.

/context answers a different question: what's filling the context window right now. Use it to spot a large CLAUDE.md, heavy tools or memory files. For the habits that keep usage down day to day, see how to make your Claude Code limit last longer.

FAQ

Is high Claude Code token usage a bug?

Usually not. Long context, cache misses after breaks and background tasks explain most of it, and /usage shows which applies to you. If none of them fits, report it with /bug rather than guessing.

Does /compact save tokens?

It shortens the history that later messages carry, but compacting is itself a large request because it reads the conversation it summarises. After a long break it reprocesses that history uncached, so it costs the most then. If you don't need continuity, /clear costs nothing.

Does a big CLAUDE.md use tokens on every message?

Yes. CLAUDE.md loads into context at the start of every session, so its tokens are present even when you're doing unrelated work. Anthropic suggests keeping it under 200 lines and moving workflow-specific instructions into skills, which load only when used.

Why does the token count look huge but my plan barely moved?

Cached tokens dominate a long session's raw count, but they're read at the cheaper cached rate. Judge your plan by the usage bars in /usage, not the token totals. To keep those bars in view while you work, see how to show usage in the status line.

Sources