Your context is burning more tokens than you think

Every week, someone on r/ClaudeAI asks some version of this:

Why is my usage draining so fast? I keep everything in one chat because I don't want to lose context. It's at about a million tokens now. But I'm only asking a few simple questions.

The problem is "a few simple questions." In a million-token conversation, there is no such thing.

I got curious about what one actually costs, so I had Claude measure it on a real task.

The answer: roughly 11x more than doing the same thing in a fresh session.

Your message is only the end of the request

When you send a follow-up, Claude doesn't just get the new sentence. It also gets the system prompt, tools, CLAUDE.md, conversation history, files, command output, loaded skills, and whatever else has accumulated. Your question is the bit at the bottom.

Prompt caching makes this much cheaper:

What happens to a token Price
Sent normally, uncached 1x
Written into the cache 1.25x (5 min) or 2x (1 hour)
Read back from the cache 0.1x
Generated by the model 5x

But it doesn't make the context disappear. A giant conversation is still a giant conversation. And if the cache has expired, coming back to it gets expensive fast.

A million tokens is longer than War and Peace

A million tokens is about 750,000 words. War and Peace is roughly 587,000. So a million-token context window can hold the whole novel with room to spare.

Bound volumes of War and Peace

For the record, that's four volumes, fifteen parts, 361 chapters, five aristocratic families, Napoleon's invasion, and a two-part epilogue whose second half abandons the story for an essay on historical causation and free will.

Almost nobody finishes that part. You are shipping it on every request.

And Claude Code may ship it several times

Claude Code often needs several requests to the model to finish one thing. Claude asks to use a tool. The tool runs. The result goes back to Claude. Claude asks for another tool. Repeat.

Call each trip to the model a crossing.

From your side, you asked one question. Underneath, your copy of War and Peace may have made four, eight, or twenty crossings.

Four crossings for one gnome

I tested this with:

Create a simple website with a picture of a gnome. When I click on the picture the gnome gives me a thumbs up.

Gnorman, a garden gnome giving a thumbs up

That is Gnorman: about 300 lines of hand-written SVG, produced from one sentence of instruction. From Claude Code's side, he took four crossings: fetch a design skill, write the file, publish it, then answer.

I first ran the task inside an 800,000-token conversation whose cache had expired.

Four API crossings for one gnome, priced in tokens

Those four crossings cost roughly $9.65 at Opus rates. Eighty-three percent of that was the first crossing, before the model had done anything useful.

That was the cover charge for walking back into the room.

Then I ran the exact same task from a fresh session. Same gnome. Same HTML. Same tool calls.

pass 1:   35k x 2 cold write      =   70k
          <- 1.0k out x 5         =    5k
pass 2:   35k x 0.1 + 4k x 2      =   12k
          <- 9.6k out x 5         =   48k
pass 3:   39k x 0.1 + 10k x 2     =   24k
          <- 0.2k out x 5         =    1k
pass 4:   49k x 0.1 + 0.5k x 2    =    6k
          <- 0.9k out x 5         =    5k
                                    -----
Total:                               170k tokens  (about $0.85)

About $0.85. Eleven times cheaper.

The conversation was barely the conversation

I had Claude classify the session that produced this article.

What Tokens Share
Injected skills, docs and reminders 169,844 72.7%
Tool inputs (generated SVG and HTML) 41,341 17.7%
Thinking blocks 12,342 5.3%
Tool results 2,734 1.2%
Claude's replies 5,848 2.5%
What I typed 1,654 0.7%
The actual conversation, both sides 7,502 3.2%

Only 3.2% was the actual conversation between us. Most of the rest was stuff Claude Code had accumulated along the way: documentation, file contents, generated code, tool calls, outputs, and other machinery.

I was carefully preserving a few pages of useful history inside several hundred kilobytes of packing material. Then shipping the whole crate every time I spoke.

Sometimes the crate is worth keeping

A long debugging session may contain a detailed picture of your codebase. A refactor may span thirty files. Something discovered at turn six may still matter at turn forty. Starting over can absolutely cost more than keeping the context.

But that should be the test. Not:

"Is this context useful?"

Instead:

"Does this next request actually depend on it?"

For the gnome, the answer was no. That "no" was worth $8.80.

And even if you're on a subscription rather than paying per token, you still feel it through rate limits. Expensive requests burn through your allowance faster.

Carry the context, not the freight

The fixes are mostly boring:

  • Start fresh when the next task doesn't depend on the old one.
  • Put stable project instructions in CLAUDE.md.
  • Write a handover before you stop. Save the current state, decisions, and open threads.
  • Use memory and compaction where they help.
  • If you really need the old session, start fresh and have it read the old session log.

A long conversation can feel valuable because it contains shared history. Sometimes it does. Sometimes it's a few pages of useful context wrapped in a truckload of packing material.

Keep the context if you need it. Just know you're taking Tolstoy with you.

Written by Claude as dictated by Harald, and then a big edit pass by ChatGPT.

Comments (0)

No comments yet. Be the first!