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

308 Upvotes

138 comments sorted by

•

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

501

u/PestiferousGamer 12h ago • LOL Bravo

Plot twist, the other 600k context is used up by anthropic telling claude what its not allowed to do.

3

u/TheThingCreator 4h ago

It’s an optional thing, it’s to save tokens, shit gets pricy when context gets full

-2

u/shanlar 3h ago

Does it? Because compacting uses tokens. I think there are trying to find ways for people to use more tokens so they can sell more.

1

u/GnistAI 2h ago

That does not make sense for the subscriptions.

2

u/shanlar 2h ago

Companies on subscriptions have to pay for extra usage once they've hit a limit.

0

u/Veezo93 3h ago

Compacting also sends completely new context to the server, so forget the 95% saving you were getting from r/w'ing that cache you're now paying the 1.5-2x price for completely restarting a cache.

2

u/the_needful_is_done 1h ago

This is not true. Anthropic has already stated that compacting does not count as entirely new context; you're paying cache read for the conversation + the compacting blurb.

1

u/PerfectPatience- 3h ago

Every agent starts with "only" 32k of instructions :). Compact after 300k -400k to avoid needle in the haystack. With Your every message You resend 300k(whole convo) it stacks fast.

112

u/friedmud 12h ago

People do more with these models than just code. Our agents are processing multi-thousand page documents, thousands of government regulations, thousands of engineering design drawings, etc. They often use ALL of the context (and more via dynamic compaction we have in our harness).

36

u/Illustrious_Yam9237 10h ago

Right, so just change the auto-compact setting? it's a default?

They are doing this to discourage clueless chat users from always running up super long conversations with many tiny tool using turns at 900k+ context, which runs through all their subscription in a day and makes them angry.

You can still just turn off or change autocompact in settings.

14

u/SKnightVN 8h ago

He isn't complaining about the change? OP is asking why preserve the 1m context window at all, this is a good answer.

-13

u/Polite_Jello_377 8h ago

1m context is a marketing tool. Nobody should be using it

4

u/Zilch274 9h ago

"Count to 1 million, make no mistakes"

13

u/Agent-Operation-8447 12h ago

This 👍🏼. There is nothing worse than being in the middle of a computer control session and then having to compact and hope that no information was lost, and compactions are lossy by default. I also have people that we set up at work with Claude code and they’re doing nothing but document processing, and they need that 1 million context window. Nothing is for sure. Sometimes a compaction happens anyway, and you just deal with it. I’d rather reduce the occurrence as much as possible, I’ve had no issues with all of the Claude models being able to do what I need to do with 1 million context window. Bunch of paranoid people saying you have to compact a 200 or 300 k like they’re living in the past. These models are way better at processing large context windows now. And what may be forgotten in a long context session is guaranteed to be forgotten in a loss compaction summary and much more.

1

u/wise_young_man 1h ago

Sounds awful. Context rot is real and there’s no way you’re getting all that without degrading the quality of output you want.

-7

u/Polite_Jello_377 9h ago

It doesn’t matter what you are doing, you shouldn’t be doing it with nearly 1m context

-6

u/Polite_Jello_377 8h ago

Downvote me all you like, you are doing it wrong. Learn to RAG ffs

-4

u/minibonk 7h ago

let the peasants hate, for they know nothing.

92

u/Vysion34 Senior Developer 11h ago

Context rot. LLMs get worse as the context window fills up. A 1 million context window raises the ceiling so that the lower end (<50%) has more room. Auto-compacting at 400k keeps the general inexperienced user at a healthy context window size.

13

u/Xarjy 6h ago

Everybody is trying to say it's compute but this is really the answer.

They're pushing for a better user experience and the first 40% of your context window is the strongest, after ~50% there's a higher chance the model starts forgetting instructions or conflating things greatly and it gets worse the closer it is to context cap. If the model auto-rotates to keep it sharp for users who run long sessions it's a better user experience.

21

u/ScrumptiousChildren 11h ago

Not to mention, it’s multitudes more expensive hitting the 1m context over 400k, even considering cache reads.

4

u/jal0001 2h ago

Anthropics own training literally says 40% is where context rot kicks in. This makes sense.

10

u/Spare-Distance2415 11h ago

How tf is the actual answer so far down

1

u/En-tro-py 3h ago

Majority of the sub is not interested in the research on context and effort levels... Just run 1M tokens at max effort!

1

u/MagicWishMonkey 3h ago

In most cases, but there are edge cases where the context is full of relevant information for a specific task and that's when it's beneficial to have more space to keep things in memory

26

u/Unhappy-Loss-97 10h ago

A 1M window is great as a short, disposable read-only pass (dumping a giant log or big diff in once to diagnose something), terrible as a place to live all day.

Even at 97%+ prompt-cache hit rates, sitting at 250k–600k context across hundreds of tool calls crushes both weekly limits and turn speed—especially the moment a >5 min pause evicts the KV cache and forces a full re-prefill. Worse, a giant window creates a false sense of safety: it quietly encourages you to treat context like a filing cabinet instead of working memory, which batters your token usage long before you realise what happened.

I stopped relying on auto-compact and switched to retiring threads around ~100k–150k with a 15-line handover note (paths, commit SHA, next step, and crucially the dead ends / approaches already ruled out).

11

u/helloitsmyalt_ 9h ago

  especially the moment a >5 min pause evicts the KV cache

Claude Code parent session kv cache TTL is 1 hour. Subagents are 5 minutes though, IIRC.

3

u/Old_Ad_6033 9h ago

Yeah subagent is 5min in default, you can change if need.

1

u/Unhappy-Loss-97 8h ago

Good catch—parent session is 1h and subagents default to 5m, appreciate the correction. In practice it was the subagent fan-outs plus overnight/multi-day threads crossing the 1h mark that were really stinging me on cache rewrites.

4

u/howtoliveplease 8h ago

For my project, 84k is the minimum. As soon as I send my first message, that’s where I start at.

6

u/Unhappy-Loss-97 6h ago

84k on turn 1 is brutal—that's usually a stack of always-on MCP tool schemas, enabled skills, or large reference/rules files getting loaded before you even ask a question.

I had a very similar baseline leak until I pruned unused MCP servers and replaced big reference markdown files with a ~100-line index + grep-on-demand rule. Dropping turn-1 baseline from ~80k down to ~15–20k buys you a lot more runway before compaction kicks in.

1

u/Final-Quote-4064 5h ago

How are you measuring and tracking this?  Curious about different ways

1

u/Unhappy-Loss-97 2h ago

Two layers:

  1. Inside a single session: `/context` (as mentioned above) is the quickest way to see what's eating turn 1 (MCP tool schemas, skills, CLAUDE.md, etc).
  2. Across the whole week: `/context` won't show cumulative burn across multiple sessions, immortal threads, or giant tool dumps getting re-billed. For that I parse the local `~/.claude/projects/**/*.jsonl` (and `~/.codex/sessions`) usage records directly, deduplicated by message id, to pull total tokens, avg context per turn, largest Read/Bash outputs, and oversized markdown files.

I put the little read-only stdlib Python script on GitHub if you want to run it on your own logs (no deps, no network calls, never prints prompt text): https://github.com/arkheiaai/agent-token-audit

1

u/howtoliveplease 3h ago

Yeah I’ve done optimisation work recently but I think you’re right. I think the MCPs are killing me. And definitely a lot of index / plan files in the project. Might be time for some pruning.

1

u/howtoliveplease 3h ago

Oh, I’ve just learned that there’s also a big difference when using Claude desktop vs CLI too.

1

u/Unhappy-Loss-97 2h ago

Massive difference—I ended up switching Claude Desktop off completely and running everything through the CLI. Way easier to keep context lean, inspect what's actually loaded, and hand mechanical work off to plain shell scripts. Also there seems to be a big difference for me in what claude code can do within a desktop and the naked CLI harness. Its a very different setup to the openAI equivalent.

1

u/howtoliveplease 1h ago

Do you not use things like artifacts?

1

u/Unhappy-Loss-97 39m ago

Actually I still use artifacts for close collaboration with a couple of colleagues, and send out PDFs when sharing more broadly with the sales team. For my own day to day to-do list though I moved it to a local 127.0.0.1 HTML page driven by numbered items in a shared markdown board, which works nicely because all the CLI agents can read and update the same list.

1

u/Black_Magic100 7h ago

It's wildly accepted now that /compact is better than any type of handover unless there is a reason for moving the information into a preexisting session

2

u/Unhappy-Loss-97 6h ago

For a straightforward single-track task, /compact has certainly improved. The catch I still run into is that it's a lossy black box: it tends to keep what changed while quietly dropping the dead ends and rejected approaches, so the compacted session promptly walks straight back down the same blind alley.

A 15-line markdown handover takes ten seconds, lets me actually see what carries over, and makes it trivial to pass the baton to a different model family when I want a fresh pair of eyes.

44

u/Savings-Cry-3201 12h ago

“To help with usage”

The only people it helps are Claude’s shareholders. Compute goes up quadratically with context length so cutting context from a more reasonable 700k down to an average of 400k saves a metric s ton of storage and compute.

They are doing this because their attention isn’t as good (cheap and efficient) as DeepSeek’s and they get the double benefit of being able to charge for I assume both an API compaction call and input tokens for the new context.

And to be fair, if they can now run 500k models going forward by default that’s a lot cheaper to train and you can fit twice as many instances on your servers.

This is 100% them trying everything they can to wring every drop of efficiency out of their business so they can finally show a profit.

I can’t blame them, to be fair, it’s not the worst business decision, but let’s not pretend it’s anything but a way of trying to cut compute wherever possible.

18

u/Key_Reading_9664 12h ago

so cutting context from a more reasonable 700k down to an average of 400k saves a metric s ton of storage and compute

This doesn't make sense to me. It also costs them revenue, since they charge per token. Having a revenue slowdown would impact their stock price more than a increase in operating costs.

2

u/Savings-Cry-3201 10h ago

I think I accidentally responded to the wrong person. Quadratic increase means the compute for multiple calls at 400k is more profitable than a single call at 700k, especially if they’re charging you 5x once you’re over 100k anyways.

2

u/Zilch274 9h ago

Don't subcriptions count usage based on tokens/message?

-4

u/Savings-Cry-3201 9h ago

Sure, and compaction calls will use those up too

1

u/Key_Reading_9664 48m ago

But billing is also quadratic (because it’s also based on token count) - they make more revenue processing large contexts

-3

u/rditorx 12h ago

Not for subscription plans, which may be the majority of revenue. At the least, it will reduce load on storage and compute, so Anthropic can scale further and increase user base.

6

u/Key_Reading_9664 11h ago

API usage is 80% of their revenue.

6

u/plocco-tocco 11h ago

except this means that subscription plans will last longer since cache misses at high token percentages cost quite a lot of your weekly budget

2

u/kidshibuya 11h ago

They all still run out at the end of the week, this doesn't make them last longer.

17

u/deadlyclavv 12h ago

you know you could just set it back to 1M?

6

u/ChristianGeek 10h ago

Or just not switch; I got prompted today with the option to switch to 400k or stay at 1M.

0

u/ChipsAhoiMcCoy 5h ago

Do you know where I can check this on the desktop app?

2

u/Savings-Cry-3201 12h ago

Sure. The implication though is that they can optimize models for 400-500k and save money on training and inference in one fell swoop.

I’m maybe not being super fair. A lot of my agentic runs are topping out at 200-300k as long as I keep them targeted. If that’s the new normal then it’s fine - they are serving their clients in a way that doesn’t harm them but still saves them money which they desperately need cuz they still aren’t profitable.

15

u/MartinMystikJonas 11h ago

Model performance also degrates at longer contexts because it is harder to properly assign attention. If you want model to be smart you should not use long context.

6

u/Savings-Cry-3201 11h ago

Stick with me though. They charge you 5x as much once you hit 100k. So you hit 400k and they make a compaction call. There’s a separate 400k call that they charge you 5x for. That outputs maybe 100k of output tokens, and now you need to input the new context so they can charge you another 100k of input tokens and immediately keep charging you 5x as much. And in only 300k tokens you get to do it again.

At least with DeepSeek I get a compaction at 700k and now I have another 600k of cheap af cache hits to go before I get another compaction API call.

I completely agree that context rot happens and in fact compaction is a great way to prevent that from happening… but performance doesn’t drop off at 100k or 400k anymore.

And the fact is that a 500k model is in every way cheaper (inference and training) than a 1M model. I think it is absolutely the future of US frontier models because they’re the ones who have to make their profit margins. If 80% of your models now take half the memory and half the compute that’s massive.

4

u/MartinMystikJonas 11h ago

Can you link to osurce that performace does not drop around 400k anymore? All papers I saw so far showed it.

2

u/No_Roll6768 7h ago

No, youre right, lost in middle effects still apply. People saying different things are talking anecdotally

1

u/Savings-Cry-3201 10h ago

I mean… I don’t see any drop off in performance up to 700k when I use DeepSeek, but I can’t say that I’ve rigorously proven it. I’ve heard similar performance on ChatGPT by a coworker slamming context to compaction over and over like an absolute maniac… that’s what I got. Back in the day when you hit 100k on a 252k context or whatever it was noticeable, right? I’m not seeing it like that anymore.

I’m also just some random internet guy, it’s fair if you choose to be skeptical about it, no hard feelings over here.

1

u/Cyberwiz15 9h ago

I've been paying close attention to the auto-compact, and from what I can see, it only happens if your chat is left idle for quite some time. It's had a positive impact on my weekly usage, and I haven't noticed degradation as long as I have Claude Code keep a ledger of what I'm busy with. I'm even starting to experiment with just clearing context more regularly when I feel a piece of work is "done".

1

u/Savings-Cry-3201 9h ago

I have assumed up until now that compaction was terrible, but it’s happened a few times and it didn’t seem to impact my workflow but I haven’t rigorously tested it. I also don’t do legal work though, most of what I do is just your standard website and app building, full disclosure.

3

u/Cyberwiz15 7h ago

You might find that if you scope your work and clear context regularly, you won't have to rework stuff unnecessarily. I've seen many times where not enough time planning has resulted in a poor implementation. Build design mock-ups, iterate, write the plan, clear context and start fresh.

For what you're doing, I'd also offload as much of the implementation work as possible to Sonnet. You save a tonne on usage and an Opus review agent can catch the bulk of the fiddly bits if done at the end. If you need to do incremental reviews, let Sonnet do that. It's by no means perfect, but it strikes a good balance for me when I'm doing game development.

1

u/gajop 7h ago

Just this week I introduced the same default to our org, in hope to cut API costs. Our findings showed that you paid significantly more per message with higher context, despite caching, so it's something I hope will reduce costs while still being efficient, but we'll see.

1

u/mylifeasacoder 14m ago

Running twice as many 500k models vs 1MM? Or 16 times more?

0

u/Broken-Fog-2794 9h ago

You pretend that the model running faster and remaining smart is not beneficial for any end user.

1

u/Savings-Cry-3201 9h ago

It’s a good business decision because it reduces the compute required per user so yes, given finite resources this will be good for users since they don’t have unlimited compute and it’s much better than dropping to a lower quant or routing to a cheaper model.

They ultimately do have to make a profit.

It is my total random person on the internet opinion that it’s much better for them than it is for us. I think that it’s very likely this number will go down. I do not believe that repeated compaction is good for the user experience especially if the context is limited to a few hundred k.

I believe this is a herald of things to come. The limit at which they charge 5x will never increase. I think it very likely that they will eventually charge 10x for context over 400-500k to incentivize the usage of compaction. That quadratic increase in compute is brutal.

We have left the Golden Age of free AI and have entered the Silver Age of affordable AI. We have a little breathing room before the bills come due and we start feeling the crunch.

1

u/Broken-Fog-2794 6h ago

I think the fear of compaction is so 2026 first half. Nowadays I don't notice anything bad with compaction.

6

u/snow_schwartz 12h ago

Funny - this has been my default since 1m window models were released.

3

u/rlorenzo 11h ago

First, ask your Claude if any of your past sessions ran more than 400k tokens. I just had 1 session out of hundreds. It's most likely no big deal.

7

u/Somtimesitbelikethat 12h ago

there’s a difference between what it can do versus what it should do for the majority of users. A Ferrari can go 230 mph and pur like a kitten, but the majority of people just need to get to work and back

7

u/orbital_trace 12h ago

I don't think there is any good reason to go to 1M tokens at this point. https://coralhub.dev/blog/context-reset-turn-cost.html based on my analysis around 225K is the sweet spot. Dropped costs by 50-75%

6

u/Bog_Boy 11h ago

This. 1M models get unreliable above this. As the new default it will probably increase reliability and lower token consumption. One of the few times I’ve agreed with something Anthropic has done recently.

4

u/thomheinrich 10h ago

There's a big difference between 400k of stale grep outputs and failed test runs versus needing headroom for one giant burst. If a single tool call dumps huge stack traces or twenty large files at once, a hard 400k ceiling just crashes mid-turn. You want old session noise cleared early, plus room for spikes.

5

u/ClemensLode Senior Developer 12h ago

Auto-capping at 200 or 300 can save a lot of tokens.

2

u/kruszkush25 7h ago

what about details gone missing cuz this is what ppl say compact does and its better to make a new chat so what the hell, at this point im so confused

0

u/ClemensLode Senior Developer 7h ago

The question is: Details of what? Are you working on a single issue whose cause is already known and whose solution is testable or are you trying to write a new philosophical treatise?

2

u/NaturalCriticism3404 11h ago

The usage is too high that's why

2

u/AryanThakor 4h ago

the 400k default is mostly about what each turn costs. every message resends the whole history, so at 800k even a one line ls burns 800k of cached input against your limits. 1m still makes sense for the doc heavy agent stuff people mentioned above, just not as the default for coding sessions where most turns are tiny

2

u/K_M_A_2k 12h ago

The rule of thumb for a long while was don't let cc go over 40 percent of context window which lines up with this perfectly

-2

u/Outrageous_Band9708 13h 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

42

u/TheSheepOfWalStreet 13h 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

3

u/Zirea9L 12h ago

even a cat would run out of lives at this point

1

u/therealnih 4h ago

Am cat, can confirm, meow!

-10

u/Outrageous_Band9708 13h 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.

1

u/kcat__ 9h ago

It's a ratatouille reference

3

u/djhamilton 12h ago

Okay but why run all from a single session? I get it's steered and directed, but this is what Claude.md agents.md and other files are used for if setup correctly for the project.

in other words for me, when I open up a new session for a project, it has full context of what it's working on. a new session. Vs an old one has no gain on my case due to my configuration and notes throughout a very large project.

My sessions never run code, they always spawn threads and manage them independently.

If I have a Yurikkaaa moment in another chat session, No issue anymore, since recent updates it can locate and read other session, no need to write out Comms files anymore.

so am trying to get my head around your use case and issue around the context and how and why it's not been an issue for me, or if not seen it as a problem.

3

u/YoghiThorn 10h ago

Eureka

0

u/djhamilton 10h ago

Thanks darling 💖

1

u/Outrageous_Band9708 1h ago

serial work. when building a project, task 1 is the framework, and task2 is blocked until task1 completes.

so its a serial plan of building blocks to get your idea to completion.

why run it from a single session? yes you can open a new session and it will pick up where it left off flawlessly.

the single session is just an added beneifit of the mod being the orchestrator. you CAN have the single session open forever. you dont have to.

2

u/markedness 13h 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!

2

u/Outrageous_Band9708 13h 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.

3

u/Familiar_Gas2305 12h ago

I'm keen to try this out, and it seems easy go switch off the mod if it doesn't work. Are there any downsides?

1

u/Outrageous_Band9708 1h ago

not really. if you feel the need, backup your md and clone your repo so you can revert. but you shouldn't need to.

2

u/conventionalWisdumb 12h ago

I’m pretty sure this is what Claude designs for you when you start asking it for things like orchestration and token management.

0

u/Outrageous_Band9708 1h ago

sorry no. it absolutely does not do this. it will spawn subagents that last over an hour. return to cold cache, use cold cache for a nother few turns, then repeat itself there. you can end up using 25% of your weekly usage with some 30 cold cache writes over 500k when using a ootb "use a subagent" sort of solution. you need to be really strict on how it uses subagents. claude isn't trained at all to take into account cold cache and TTL etc.

2

u/vegemitesmoothy 12h ago

I haven't dived too deep into your workflow, but I find that the handover Claude gives to an agent often sucks and misses a lot of important context for the work at hand for complex work.

2

u/Skullbonez 10h ago

I have more or less the same approach but I am maxxing it out. Have multiple machines always on and always working. Made it foolproof so PMs can just message me on special channels to get complex work done. Devs too. The main commander session is not just empty orchestration though, I find that it has better results when it can reason and remember what it did / what others are doing. It's pretty awesome tbh.

2

u/Individual_Solid_944 10h ago

really good approach. i have similar setup and works wonders. i hope Anthropic bakes something like that in Claude, so it's available out of the box

2

u/Prof_Hentai 8h ago

I started using this yesterday, it’s still early, but it is absolutely phenomenal.

3

u/winkler 13h ago

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

0

u/Outrageous_Band9708 13h ago

your not wrong.

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

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

1

u/Helpful-Account3311 12h ago

Very cool going to have to look into it some more. I had created my own “orchestrator” skill that sounds like a lite version of this. It alone made a massive difference.

1

u/Physical_SpiritChild 12h ago

So what they launched with their new project=conversation with threads?

1

u/Show_job 11h ago

Alright alright. We are heading down similar paths here but this is a solid approach. My sessions are sub 200-300k and I can have an agent do 3-5 pieces if they are in the same sandboxed areas.

Thanks for sharing.

1

u/ElektroSam 9h ago

Im trying this now, thanks.

1

u/Duckducklaugh 11h ago

My take after a few months of long sessions: I rarely want a session to get that big anyway. Around 200k I have it write down where things stand and what's left into a file, then start a fresh window that reads that file first. Answers stay sharper, and every message isn't resending a giant history.

Auto-compact is the part I avoid. The summary keeps the gist but drops exact details, like why we ruled something out, and then it walks right back into the same dead end.

Where 1M actually earns it for me is one-shot reading: a big diff across dozens of files, or a pile of logs where the bug only makes sense once you see all of it together. Load it all, get the answer, close the session. So 400k as the default and 1M when you ask for it seems about right.

1

u/ItstheSECopenup 7h ago

Haha they’re trying to stem the tide of lazy people like me who have like 10 sessions that are 12 hours old and have 900k in them each all firing up at once and wasting inference

I was wondering how long it would take

1

u/lFaythx 7h ago

You can change some flags and it'll be back at 1M context, then you change your compact threshold and you can use as much as you want. I'm using 450k-ish before compacting, because it gets slower, dumber and expensive.

1

u/powleads 5h ago

I read it as a default versus a ceiling. Most long sessions are carrying a lot of old stuff that no longer matters, so compacting earlier is a sensible thing to do for people who never touch settings.

The full window is for when the detail is the point: tracing a bug across many files and logs, or a big refactor where a summary might drop the one odd exception you found an hour ago. If I could write the state down in a short handoff note and lose nothing, I'd compact or start fresh. If I couldn't, I'd turn it up for that session.

1

u/cautistic-john 4h ago

bro use the full window for a pass where small details across files change the answer. Think of auditing a migration where the old schema, the backfill, and the rollback all have to agree on what happens to null values. Have Claude write down the exact files and lines behind each finding, then take that into a fresh session for the fixes. That way you’re carrying the evidence forward without carrying the entire audit into every edit.

1

u/cornmonger_ 4h ago

CLAUDE_AUTOCOMPACT_PCT_OVERRIDE

1

u/Laicbeias 4h ago

i dont know i in the past added a scrpt that just shows how much context is in, in a few colors with a bar and that pretty much solved it to me. sometimes you do want to fill the full context, especially if its a massive follow up tasks where you have to evaluate things. the auto compact is annoying af

1

u/ThinRedLine87 3h ago

Their are uses for ai outside code that require the window to be larger

1

u/sixtyonesymbols 3h ago

1M is good if 1M is needed. 1M is not typically needed. But sometimes it is.

1

u/StoneCypher 3h ago

because you can change it 

1

u/macholusitano 3h ago

Because you can turn auto-compacting off when you need it. In most cases you probably don't.

1

u/emptyharddrive 2h ago

I ended up setting mine to 650K actually, across the board.

I had the same suspicions when I first saw this but on paper I can see the case for 400K. A long coding session can accumulate dozens of file reads, test runs, and tool outputs that have very little to do with the work left to finish. If Claude is going to make another hundred small tool calls, even cached history costs something to carry on every turn. Anthropic has every reason to want to save that compute. I have every reason to want those turns to run faster and use less of my allowance.

I’m trying 650k because there are enough sessions where I’d rather finish an investigation and journal the findings while the evidence is still in-context.

I haven’t seen a benchmark comparing 400k to 650k to 1M, but I'm going to split the difference anyway.

I’d still set 1M if I were doing a big audit where the old schema, the backfill, and the rollback all have to agree and you can set it as a 1-off in a session.

1

u/JSDevLead 2h ago

I had already disabled this feature once and they pushed out an update turning it back on. Super annoying to have it spend minutes compacting in the middle of an important session. It’s back off again.

1

u/Few-Divide1870 2h ago

1M context is like renting a warehouse when all you need is a desk. But the moment Claude starts exploding your entire codebase, suddenly that warehouse doesn't seem so ridiculous 😂

1

u/Coolbanh 2h ago

Now i understand why my usage finishes faster while conversations auto compact. I'll try to turn it off and see if its better.

1

u/ElectricDreams9876 38m ago

LLMs get worse the larger the context, keeping it under 40% keeps the integrity. But there are some use cases where more is required, like if you're feeding it a huge doc or it's analyzing a large code base.

And it's the default, but you can adjust it. It's amazing that you have at your fingertips an expert you can ask but instead you come here to hear from random strangers?

1

u/DuckiesKhaki 3m ago

Adjust it to your need and capability with the tool. Like a high end car some folks can’t handle all the power correctly (managing clean, detailed context) so a lower default can be safer / better for them. For power users, more context can be better for their tasks and to have the ability to push that window up is a huge deal.

1

u/gh0st777 12h ago

This type of question is the reason why we get people complaining they hit their rate limits so fast.

0

u/fishoa 10h ago

IPO went through, now the chainsaw is on.

And if you were using the 1m context window unironically in 2026, you deserve it.

1

u/LittleNameIdea 4h ago

that can happen in big project... i have one where any clean chat take 100-200k to begin. yes, claude.md and other stuff are well configure.

0

u/taacton 10h ago

That’s just the default, you can change it but there’s no reason to assume anthropic haven’t used data to optimise that default to find the best trade off between cost and agent capability

0

u/Shpitz0 8h ago

Just because you CAN use 1m does not mean you SHOULD.

A good rule of thumb is that over 40% in any context window for an LLM introduces hallucinations.

The fact that things can fit into the context is not necessarily give an assurance that the model will properly handle all of it... It tends to miss more and more, as by design the model prioritized the system prompts + user instruction files (claude.md, .claude/rules etc) and the latest x messages and files.

This is actually a good thing, it will improve the quality and latency and costs.

Anyways, you can always increase it.

0

u/Icy-Excitement-467 3h ago

There is no reason. Just crank up auto compact threshold and preferably never hit it or come close. But a low number is better for blind bloodrage vibe coding.

-5

u/SignatureSeparate132 12h ago

You don’t need more than 400K with proper context management and handoff file. Otherwise accuracy gets lost and consumption becomes more expensive as every new prompt sends for processing everything that the LLM had received already.

I explained this also here and a mitigation around the problem https://sasa-fajkovic.com/2026-11-25-better-auto-compact/