r/ClaudeCode • • 10h 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.

33 Upvotes

45 comments sorted by

•

u/AutoModerator 10h 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.

7

u/CandidSystem6155 10h 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.

1

u/SkywayGe 10h 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 9h 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.

7

u/Civil_Response3127 10h ago

I'm baffled by this reply.

It's clearly AI generated but it's not purely relentless waffle. Huh. Nice.

42

u/bonobomaster 9h 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.

3

u/PunksPrettyMuchDead 3h 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.

2

u/PM_ME_UR_ASS_GIRLS 1h 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.

1

u/bonobomaster 1h 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.

1

u/PM_ME_UR_ASS_GIRLS 1h ago

Using Opus 5.5, I don't have to worry about any limits on the Max plan. It never gets close to them.

1

u/DocMadCow 13m 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 9h 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.

6

u/bonobomaster 9h 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 8h ago

How do you run feedback loops overnight that way?

4

u/bonobomaster 8h 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 7h 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 3h 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 1h 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 8h 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 2h 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/Patera-Milenko 42m 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

4

u/SirRobinBlibs 8h 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.

4

u/aerivox 8h ago

how much do you guys have in the session at the start? between mcp, skills and claude.md i am around 80k..

1

u/That-Fig-7089 4h ago

Almost the same. For a long time

2

u/innociv 46m ago

1mil was a crutch for models that hallucinated more and went off track more.

The models and compaction have improved a lot. I was using a 550k limit since Opus 5.5 came out and I'm not seeing much difference in the drop to 400k.

1

u/Purple_Deers 9h 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.

1

u/congngo 9h ago edited 9h ago

I set mine at 600K. But I always start a new chat

1

u/ServesYouRice 9h 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

1

u/snuffomega 7h 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/EC36339 Senior Developer 6h ago

Not to all users, apparently. I've only seen this today, in the CLI.

1

u/Oikon__ 5h 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

1

u/phoenixmatrix 5h 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.

1

u/akienm 2h ago edited 2h ago

I constantly run mine at 200k. Works great

1

u/ixid 1h ago

I've used 200k compaction for months. It's already a massive and sufficient amount of context for most tasks, and you can raise it if you really need more.

1

u/lgmarian 10h 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.

1

u/the_unknown_star_y 5h ago

I hope they don't start cutting down on subsidies like Openai is doing now

1

u/Twist-Anxious 3h ago

It's just a matter of time till the do. Winter is coming

0

u/912key 3h ago

I always had my context window at 256k tokens so I'm not sure why anyone would want to use 1M tokens

0

u/agilius 3h ago

I'm perfectly fine with 250k compactions. Between 180k and 230k I notice a degrade in instruction following. The AI starts to be selective of what it respects and what it does not

-2

u/pceimpulsive 9h 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 9h ago

Tree fiddy is working well for me though.

250 to 350 K tokens, commit and next.

1

u/pceimpulsive 7h 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

-1

u/BestDistribution3655 3h ago

What does this mean can you explain it to me🫠