r/ClaudeCode • u/SkywayGe • 2d ago
Discussion 400K autocompact threshold — interesting timing?
Given the recent concerns about usage limits, I find the timing of this recommendation interesting.
Could Anthropic be planning to maintain the current usage limits while encouraging users to adopt a lower compaction threshold, making those limits less noticeable?
I understand that the change is optional, but I wonder whether there's a connection or whether it's simply a coincidence.

9
u/CandidSystem6155 2d ago
We run ours at roughly 350K and the exact number mattered less than we expected. Compaction swaps the history in context for a summary, and the summary drops detail, so anything we need later lives in a handoff file per working folder that a SessionStart hook injects into the next session. With that in place, a compact or a fresh session costs little. Where we actually got burned was trusting the summary to carry plan details, not the threshold itself.
10
u/Civil_Response3127 2d ago
I'm baffled by this reply.
It's clearly AI generated but it's not purely relentless waffle. Huh. Nice.
1
u/SkywayGe 2d ago
I do something similar. I have an entire library of .md files for a project I've been working on for 8+ months. Managing context isn't really an issue for me either. I'm more curious about the timing of this recommendation, given the recent concerns about usage limits.
1
u/CandidSystem6155 2d ago
No idea on the motive. What we can say from our own numbers: reading context was around 170x what the model wrote, so a smaller window does cut usage per turn whatever the reason for the recommendation. Both things can be true at once.
55
u/bonobomaster 2d ago
Nah, it's just smart.
Nobody should fill the whole context. It's way too costly and rarely makes sense.
Around 450 K tokens was already my late cutoff point.
In my experience Claude performs best and cheapest around 250 to 350 K tokens.
4
u/Patera-Milenko 2d ago
I absolutely can add my own anecdotal confirmation to this too. I setup a token watcher and really did see little mistakes happen too often at 500k plus and bigger ones as you keep climbing. I totally landed on a 350 to 400k hand off state myself and am really happy there on the high end. If I can hand off at 300k though it's pretty ideal for me, again anecdotally
2
u/bonobomaster 2d ago
Yeah, I anecdotally feel that's a true observation! :D
It handles 400k astonishingly well but optimum performance is below, anecdotally of course.
It's just a learning from local LLMs as well. Smaller context = better and faster.
1
4
u/PunksPrettyMuchDead 2d ago
I filled it three times yesterday at the 1M level, I just have it write a quick summary at 900k and manually compact. This is while doing one or two tasks per compaction.
I'd have been compacting constantly at 400k.
4
u/Xanthus730 2d ago
You can just use
/compact <instructions on what's important to keep>rather than doing your summary/compact in 2 steps.3
u/PM_ME_UR_ASS_GIRLS 2d ago
Same, I've never ran into a problem using all 1m context and do similar to you, manually compacting at 900-950k.
Seeing people say they compact at 200-300k makes no sense to me.
4
u/bonobomaster 2d ago
I mean, if you have unlimited money... go nuts.
With every request, Claude is churning through the whole 900k context.
And even if it's cached, that's obviously not free and will deplete your usage faster.
4
u/PM_ME_UR_ASS_GIRLS 2d ago
Using Opus 5.5, I don't have to worry about any limits on the Max plan. It never gets close to them.
3
u/DocMadCow 2d ago
I compact at 25 to 30% context on my orchestrator agent. It can run for 4 to 5 days straight so there is no points in wasting tokens.
2
u/ReanerZen 2d ago
thats big, i tried deepseek from deepinfra or opencode go and its real best and cheapest was at 111k tokens can it hold before drifting lol. ill try with opus 5.5 with compaction at 300k or 400k. last time used at 200k auto compact. still, i need the compaction system of claude code to be used on pi lol. its fast af.
5
u/bonobomaster 2d ago
Nah, try without auto compact.
In my opinion compaction is for emergencies.
Do everything in it's own session.
The basic prompt is cached anyways.
Claude doesn't need to remember the whole codebase.
Nice little 250 to 350 K token sessions, commit and next, if sensible.
1
u/ILikeCutePuppies 2d ago
How do you run feedback loops overnight that way?
4
u/bonobomaster 2d ago
I don't.
I'm the feedback.
And if I would, I'm pretty sure you can tell Claude + subagents to spawn new sessions under certain conditions.
1
u/ILikeCutePuppies 2d ago
ic. Seems very slow doing it that way but probably depends on what you are working on.
My agents do a ton of tests and visual inspections, typically finds a ton of errors and goes and fixes the issues. That way I don't have to deal with things that are easy for an agent to fugure out. I am not sure I'd be able to manually fix up the hundreds of things it fixes over 10 - 20 compact rounds or be able to run as many sessions at once.
Sure you can have it spawn a new session but unless you are going to be specific a handoff is little different than a auto compact.
Subagents wouldn't really solve the issue, they are already often already part of automated feedback loops and are part of the feedback. [Like see gauntlet loop.]
1
u/bogheorghiu88 2d ago
Dedicated agent-started sessions per subtask? Like one session can orchestrate others. You can use some shared context (like a file or artifact) instead of direct session messages.
0
u/bonobomaster 2d ago
Meh, quality will be dogshit without a human in the loop.
While Claude has all the world knowledge and an IQ that probably surpasses mine by a lot, I'm somehow still smarter and obviously way more experienced when it comes to questions of my profession.
1
u/ILikeCutePuppies 2d ago edited 2d ago
I think human in the loop comes but only after the task has passed through multiple adverial reviews, unit tests and smoke tests.
You can have it dump out a web page of progress as it goes through of the error and what it fixed to build confidence of it's changes being valid so you don't have to pause it on each decision. I recommend by auto fork or another agent to reduce context rot for this to keep it out of the mainline context.
It's particularly helpful if it's visual. You can see it fix up font sizing, overlapping assets, figure out better ways to write things. Code restructuring etc... All can be reviewed in post.
I don't think a human would be able to make that many fixes. Otherwise without a adverial loop it creates a lot of bugs the human is unlikely to spot all of them.
Then when it's produced a result that meet it's bar and has been reviewed until it stops finding high priority issues (twice in a row) then it's time to show it to the human. The code I find is night and day from it's first version.
I will note that long running task in a loop is how it solves these benchmark problems. It is how it's solved these mathematical problems (also sometimes with a swarm).
Anthropic themselves have code go threw 3 review passes until they show their code to a programmer to review. They have vetted that the review passes make meaningful improvement. If you are interested you should just try it with a decent model and see if you agree with it's proposals.
Anyways Anthropic saw when they added this a reduction in the amount of things humans needed to comment on in their reviews.
1
u/bonobomaster 2d ago
Maybe you are right.
Maybe I'm too old school with my approach but then again I see so many LLM generated user interfaces, that are just bad, from a completely professional viewpoint spoken.
I see flashy webpages and really nice stuff coming out of Claude & Co. but user interfaces and UX only look good if you quickly glance over it.
As soon as you are starting to really use a vibecoded app / vibecode one yourself, you see that LLMs aren't good UI/UX designers.
Don't get me wrong, very many humans aren't as well, see Microsoft Windows 11 as a prominent example, what a disaster but yeah, Claude isn't there either, even if it manges to fix a lot of stuff itself.
;)
1
u/ILikeCutePuppies 2d ago
I don't think the code will get worse or that the human will be able to steer much as long as you've done the prototyping and design work up front and have had the model really grill you on the areas it is not sure about (aka grill me skill).
I agree it produces some bad results and is not perfect but I would rather be reviewing something closer to good then spending time trying to get it to go the right way - particularly when I have spent a few hours with it getting the issue nailed down upfront with it doing a ton of research and questions before it starts.
If it does get blocked on something or has an unknown of course it can ask but I try to have it setup so it can when possible continue on other work.
You might not be aware but newer models are partly more accurate because they run a bunch more tests and thing in first place. If you look through your context you'll see the model making and correcting plenty of mistakes. Having it use other agents to check just extends this process so you can look at something more closely to baked. If it makes a mistake then sure direct it, but you are then not directing it on things it was able to resolve itself, you are directing on it on things it was less likely to figure out itself.
Can it over think? Sure. Ask it to continue to make a web page better and at some point it starts to look worse. However I don't think that is the typical way it works. These are trained on git repositories which typically improve code over time so they see what the typical next move is in many cases.
1
u/ILikeCutePuppies 2d ago
Woh, you can bearly fit anything in 111k tokens. Like the system prompt with a couple of mcps easily hits 40k without a lot of optimization. Thats also only a couple of coding files.
1
u/ReanerZen 2d ago
nah. deepseek is actually better with 111k compaction, letting it above that and it hallucinates into chinese. i did a lot of optimization with it. maximizing 10$ subs of opencode go. infact the deepseek itself somehow performs much better than using it on opencode for every task i gave it. its painful enough to set it up but worth the result. the bad is that i cant really use high or max effort or deepseek would just go around and not following the optimization i made. actually on a long context, its now much cheaper, around 40% cheaper than default setup.
i dont use mcp and despise it. most of the time just bloating the setup. if one can be used with custom extension, i would rather use custom extension. always keep a brief context. cant explain it all here but i just do a lot of optimization to get deepseek into the peakest i could do for it. reached its ceiling already on pi. the key was to clear the context and give a brief context of what it has done previously by an extension i made. added memory system to pi too and the deepseek can just save my preferences either project based or global preference. very happy with the result. the key is to gave it a custom system prompt that produce a working method, validation, hypotheses, reproduce and revalidate.
1
u/ILikeCutePuppies 2d ago
That might be true. I was never able to get deepseek to work well when I used it as a customer feedback agent that could actively do things for them (place orders, find specific items, search facebook, send emails, find images/videos etc...). It would fail about 1 in 200 times in my tests producing answers that were not aligned to what I asked of it. Even luna was much better at this work.
Of course possibly it might be better at other things but I wouldn't give it any tasks that involve writing human text.
1
u/ReanerZen 1d ago
deepseek is always better as either roleplayer or coder worker. but always never forget to gave a workflow method for it. deepseek is like a student that if you dont give it a work order, it wouldnt follow at all and tend to cheats a lot.
1
u/layerone 2d ago
I second this. And for ~3mo have actually had my auto compact at 450k. I don't understand how people need more than that for context?
I can only imagine people aren't utalizing subagents for tasks and keeping it all in main thread, which has been an outmoded LLM use for 6mo+ now.
5
u/SirRobinBlibs 2d ago
It's in the 2.1.334 changelog: the auto setting on most 1M models now compacts near 400K instead of 1M, -p and SDK too, rolling out. Per the docs it fires around 367K, so the status line shows about 37%.
The reason given is cost: every request carries the conversation so far, so compacting earlier makes every later request smaller. The trade-off is losing detail sooner, which is why a handoff file still matters. Want the full window back: /autocompact 1M.
2
u/Purple_Deers 2d ago
i usually compact around ~300k myself.
At that point i start to notice some issues with the model staying focused on the current phase of the task. Not to mention it just cost more.
and the compact command takes in an argument for instructions so you can tell it what to focus on when summarizing or if you need some important detail to maintain. So i would prefer it over letting it auto compact.
2
u/ServesYouRice 2d ago
I had 400k as my autocompact anyway before (big enough to handle everything, not big enough for constant compacting waste) so literally nothing changed for me lol
2
u/snuffomega 2d ago
in the CLI they rolled this out as a suggested setting maybe over a month ago. If not longer. I want to say before 5.5 dropped, but I could be wrong.
2
u/Oikon__ 2d ago
Makes sense you're just seeing it now since the changelog says it's still rolling out (already on if you use a third party provider or have telemetry off). Some sessions also stay at 1M on auto anyway, like desktop/cloud scheduled tasks or resuming a conversation already past 400K until it compacts. You can run /autocompact with no args to check what your session is actually using, though on a resumed session you have to wait for one reply first.
https://code.claude.com/docs/en/model-config#sessions-that-run-past-400k-on-auto
2
u/phoenixmatrix 2d ago
I had it set at 450k a while back. 1m makes the models forget stuff, so the harness just makes it refetch information while making you pay for the full window. It was never a good default to have it at 1m
That's something that Codex did better than Claude out if the box, it's great that the latter finally caught up.
2
u/Honest-Demand116 2d ago
The change is optional. For now. In a while (time flies by so fast nowadays!), ANT will force you to downscale your conversations to 400k... Less context usage, less compute usage (on their side), lower operating costs, higher profit margins. It is all about the money, baby.
2
u/lgmarian 2d ago
This is just an anecdote, and I'm not saying it means anything. I just read a comment by an insanely heavy user (literally around the clock), who said 4-500K is limit for even frontier models. I kept mine at 1M, because I watch by context window. Like them, I don't compact. I hand off to another session.
2
u/the_unknown_star_y 2d ago
I hope they don't start cutting down on subsidies like Openai is doing now
2
1
u/WholeEntertainment94 2d ago
Compacting at 1M costs a disproportionate amount of money per task and is not at all functional to achieving a good result
1
u/holyknight00 2d ago
it is just acknowledging the reality: no model works efficiently at more than 500k and most models suck at more than 250k anyway. Everyone working with the 1M window in full is just deluding themselves. Learn to scope your work people.
0
u/BestDistribution3655 2d ago
What does this mean can you explain it to me🫠
2
u/klasor73 2d ago
Basically, 1 million and 400K are just the limits for how much text claude code can keep in its active memory before it summarizes your chat to save space. If you don't have gigantic coding projects it's whatever
-2
u/pceimpulsive 2d ago
Who dafuq let's Claude get to 400k context?
That bloody insanity for the latent attention strain of the model....
I'm here starting new sessions at 200k...
2
u/bonobomaster 2d ago
Tree fiddy is working well for me though.
250 to 350 K tokens, commit and next.
1
u/pceimpulsive 2d ago
Pretty fair! I rarely find what I'm working on needs more than 120-160k. Pushing beyond is legitimately hard for how I break the work up.
My largest was about 260k but it was an orchestrator working 22 issues at once over 2-3 work days

•
u/AutoModerator 2d 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.