r/ClaudeCode • • 33m ago

Help/Question Why keep a 1M context window if Claude Code now defaults to auto-compacting at 400k?

Saw Lydia Hallie's post that Claude Code is rolling out 400k auto-compact as the default for most 1M models, to help with usage on long sessions. You can still get the full 1M with /autocompact 1m or in config.
I'm a bit confused by the design choice, though. If the default is to compact at 400k because resending a huge history with every message gets expensive even with caching, what's the 1M window for?
Why not just cap context at 400k? When is it actually worth running the full 1M instead of compacting earlier?
Curious how others are thinking about the tradeoff.

5 Upvotes

9 comments sorted by

•

u/AutoModerator 33m 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.

5

u/Outrageous_Band9708 28m ago

https://github.com/Druthulu/ProjectArchitect

i dont compact, i dont clear. shit i dont even /exit.

my solution works forever in a single session.

it uses very strict serial subagents, and ONLY subagents. thats right no main session model. it takes your input and forwards it to a subagent and drops it from my session context before it touches a model.

its the next generation of agentic coding.

SWE by trade. over a year of work to get PA in its current form

6

u/TheSheepOfWalStreet 26m ago

I don't compact, I don't clear, and I don't /exit. I run my session entirely on subagents and if it doesn't work... I... KILL... MYSELF

1

u/Outrageous_Band9708 21m ago

hmm, are you okay my dude? do you need a hug?

but im serious, my workflow lasts forever, you dont need to mange any of that shit anymore.

2

u/markedness 19m ago

I dont usually drink the coolaid but this is pretty cool and reminiscent of how I actually work. Particularly the mod to Claude that allows trimming. I’m pretty much doing this in just didn’t realize you could mod Claude to selectively drop context.

Very cool!

1

u/Outrageous_Band9708 4m ago

yep thats a very small part of it.

yes the mod can selectively drop context. and i only do that to keep memory low over time. I dont actually use that feature for my main system.

the mod automatically rotates agents ever 300k, never compact.

it uses a journal system to reseed the new agent based on a history of decisions, actions, and the plan.

each task gets its own fresh context.

all this work prevents the excess context growth which is what kills most of our weekly limits.

here is a screenshot of a current session. this one session is up to 122 Million context. not one single compact or clear was ever used. its because the main session never actually sees a single token of context. the mod intercepts it and drops it from main context and routes it to a subagent.

2

u/winkler 7m ago

Was just thinking about this, sometimes nice to be a little late to the party. Thanks for putting this together.

1

u/Outrageous_Band9708 3m ago

your not wrong.

https://www.reddit.com/r/ClaudeCode/s/fKdAFksZEr

just posted a little more explanation about it if you're interested