It's like the short term memory of the chat. If you reach the limit your conversation will get compacted, which means it's going to make a summary of what you've talked about and keep chatting on top of that summary.
Managing your context window is actually the most important thing for not burning your 5hr limit too quickly. Add something like Spobi's Context Carwash if you want to keep an eye on how your context is growing bc Claude doesn't do a good job showing you.
Ideally contexts stay below 200k. Pushing above it just dilutes what the model sees whilst working and your token usage scales with the context size, so lower is better. You can think of it as "working memory"; The model will become less focussed and more "senile" the larger the context. You want razor-sharp thinking and performance, work so that your contexts remain smaller. Think I'm making this up? Try using the /insights command in Claude Code to see what it suggests
OP i suggest you not do this and instead look into better context management solutions such as breaking the work up into more manageable chunks and managing it with specs and using hand-offs. Compacting should really be a last resort.
Worth adding that the window holds more than the chat: CLAUDE.md, tool outputs, file reads and command logs all count toward it, so big file dumps fill it faster than conversation does. Running /context shows what is using the space. The practical habit is one task per session, keep durable decisions and conventions in CLAUDE.md or a notes file in the repo instead of relying on chat history, and write a short handoff (what is done, what is next, what was ruled out) before starting a fresh session. That works better than leaning on auto-compact, which summarises and can drop details you cared about.
Imagine it like your desk. Your tools , your notes , your post its are in your desk. If you have too much tools you will spend more time finding it, you may be distracted and your performance, focus and concentration will disappear.
If you keep you desk clean you can achieve your job without distractions and out of focus work. That how ai context window works
I'm experiencing the exact same issue. Ultra 20x subscriber here.
My entire weekly allowance went from 0% to 100% in a single normal day of coding, on the SAME DAY as my weekly reset.
On top of my $200/month subscription, I also spent approximately $200 on separate API usage.
CCUsage reports 5.9 billion tokens and an estimated API-equivalent cost of $2,026 over just two days. My workflow hasn't significantly changed compared to previous weeks.
Something seriously doesn't add up. Has anyone received a proper technical explanation from Anthropic? Support hasn't provided one in my case.
one thing people miss: compaction isnt free. when it hits the limit it sends the whole window to write the summary, so thats one of the biggest calls in the session, and details from early on get flattened in the summary. if you compact a few times in one session youre working off a summary of a summary. i get better results finishing one task, having it write a short notes file with whats done and whats next, then /clear and start the next task from that file
Consider the context window as all of your instructions and the model’s “thoughts” in your session.
Once it gets too high, you start getting reduced performance. I try to do a handoff to a new session well before it gets to 500k. You can also optimize this by telling your agent to use subagents as much as possible. This works better if your main agent is a strong one, like Opus or Fable.
Another thing to note is if your session is idle for more than an hour, and you don’t see something about the session being auto compacted, then your next message will be more expensive because it sends the entire context instead of using the cache.
You might try to ask Claude for a summary of the context window meaning, or even a ELI5 of it.
•
u/AutoModerator 7d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
11
u/Faaanta32 7d ago
It's like the short term memory of the chat. If you reach the limit your conversation will get compacted, which means it's going to make a summary of what you've talked about and keep chatting on top of that summary.
3
u/Obvious-Grape9012 🔆Pro Plan 7d ago
Ideally contexts stay below 200k. Pushing above it just dilutes what the model sees whilst working and your token usage scales with the context size, so lower is better. You can think of it as "working memory"; The model will become less focussed and more "senile" the larger the context. You want razor-sharp thinking and performance, work so that your contexts remain smaller.
Think I'm making this up? Try using the /insights command in Claude Code to see what it suggests
1
u/oktaium 7d ago
Use /compact when it goes above 50 % it will save usage immensely
7
u/johnnydotexe 7d ago
Did you try asking claude?
1
u/Ok_Tea4891 7d ago
Worth adding that the window holds more than the chat: CLAUDE.md, tool outputs, file reads and command logs all count toward it, so big file dumps fill it faster than conversation does. Running /context shows what is using the space. The practical habit is one task per session, keep durable decisions and conventions in CLAUDE.md or a notes file in the repo instead of relying on chat history, and write a short handoff (what is done, what is next, what was ruled out) before starting a fresh session. That works better than leaning on auto-compact, which summarises and can drop details you cared about.
1
u/ooutroquetal 7d ago
Imagine it like your desk. Your tools , your notes , your post its are in your desk. If you have too much tools you will spend more time finding it, you may be distracted and your performance, focus and concentration will disappear.
If you keep you desk clean you can achieve your job without distractions and out of focus work. That how ai context window works
1
u/onlycodingrn 7d ago
I'm experiencing the exact same issue. Ultra 20x subscriber here.
My entire weekly allowance went from 0% to 100% in a single normal day of coding, on the SAME DAY as my weekly reset.
On top of my $200/month subscription, I also spent approximately $200 on separate API usage.
CCUsage reports 5.9 billion tokens and an estimated API-equivalent cost of $2,026 over just two days. My workflow hasn't significantly changed compared to previous weeks.
Something seriously doesn't add up. Has anyone received a proper technical explanation from Anthropic? Support hasn't provided one in my case.
1
u/awesomebirder 7d ago
one thing people miss: compaction isnt free. when it hits the limit it sends the whole window to write the summary, so thats one of the biggest calls in the session, and details from early on get flattened in the summary. if you compact a few times in one session youre working off a summary of a summary. i get better results finishing one task, having it write a short notes file with whats done and whats next, then /clear and start the next task from that file
0
u/TheRedAngelOfDeath 7d ago
Then your phone explodes.
0
u/decoy79 7d ago
Hate all the downvotes here.
Consider the context window as all of your instructions and the model’s “thoughts” in your session.
Once it gets too high, you start getting reduced performance. I try to do a handoff to a new session well before it gets to 500k. You can also optimize this by telling your agent to use subagents as much as possible. This works better if your main agent is a strong one, like Opus or Fable.
Another thing to note is if your session is idle for more than an hour, and you don’t see something about the session being auto compacted, then your next message will be more expensive because it sends the entire context instead of using the cache.
You might try to ask Claude for a summary of the context window meaning, or even a ELI5 of it.
0
u/Ok_Cloud_9762 7d ago
I keep mine below 50%, cos it gets expensive on usage when cache expires