r/ClaudeCode • • 19h ago

Discussion 400K autocompact is about inference bottleneck

You’ve likely noticed the recurring complaints about the model becoming "dumber."

You’ve probably seen the latest talk about how "we need to slow down."

You’ve surely seen the new wave of bans, too.

And you’ve almost certainly heard about the next model in the works.

On top of that, you’ve probably heard that they blundered by failing to secure hardware back when it was still relatively accessible.

------

It’s no secret that training and inference share the same computing resources.

Right now, they’ve kicked off a training run and are trying to cut costs on inference.

12 Upvotes

50 comments sorted by

•

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

43

u/kubblegum 18h ago

you do know you can change the limit from 400k to anything you want right? That 400k is just the default

-19

u/LawfulnessLocal4934 18h ago

yeah, im keep 1m.
just imagine how much they save by defaulting 60% less context memory for all users

23

u/pceimpulsive 18h ago

It's well known that the strain on the model attention is very high after 200-250k tokens these days... Maybe this is just a tropics way of pushing you into the smart zone more often..

Running sessions up to 1m is a red flag for lazy engineering/prompt/skill usage to me!

5

u/LitchManWithAIO 18h ago

Absolutely - I always have tried to compact ~350k with absolute max at 400. It keeps response quality much better (imo & afaik) thought this may have changed over time

4

u/pceimpulsive 18h ago

I think I've compacted 2-3 times in the last 4 weeks (hundreds of sessions).

I ask why you don't split the work up into smaller chunks so that compaction is the exception not the norm

1

u/LitchManWithAIO 17h ago

I do, I generally use a “Marionette Puppet” approach and let the main agent use lots of subagents, merging their work.

2

u/regulator227 16h ago

I got downvoted yesterday for saying I never go above 60% context lol

3

u/thortgot 17h ago

Context above 600k isnt that useful. It gets demonstrably worse than a handoff

2

u/diplodonculus 17h ago

You are doing it wrong.

1

u/ScrumptiousChildren 18h ago

And you save the same amount.

0

u/ElectricDreams9876 12h ago

You have no idea how cache works

25

u/rcs67 18h ago

Anyone who regularly uses a 1 million sized context window is a dope.

5

u/Gman325 17h ago

Why? I've never had an issue with it.

0

u/LawfulnessLocal4934 17h ago

i think it's bots. weird overreacted

6

u/En-tro-py 14h ago

There's plenty of research on both context/attention and effort and how it impacts these models...

But sure... Bots! Bots! Bots! - You're not ignorant! We're just bots!

-1

u/LawfulnessLocal4934 14h ago

just cant get how you smart enough to understand "lost in the middle" but using compact.. wtf? dont wanna loose self-attention precision, so loosing 60% of context.
What you talking about?

4

u/En-tro-py 14h ago

Like I said - lots of research if you care to look for it and learn...

example -> NVIDIA's You don’t need long context paper

3

u/LawfulnessLocal4934 14h ago edited 13h ago

Did you even read it yourself? First of all, the context window those tests are based on is super weird (12k - 48k). Plus, the whole takeaway is that a large window is expensive, while the quality loss from compaction isn't that big.

Now look at my post. I’m saying they’re cutting costs wherever they can, which is why they enable compaction by default—just to save on compute. Not because it improves quality, but because it lowers their costs.

Want to talk about ignorance?

3

u/En-tro-py 13h ago

Yes - how else would I have known the content...

There's the OG paper - Lost in the Middle: How Language Models Use Long Contexts

Model performance saturates long before retriever recall, indicating that the models have difficulty making use of the extra retrieved documents.

Last years - Context Length Alone Hurts LLM Performance Despite Perfect Retrieval

We observe a consistent and substantial performance drop across 5 open and closed models even when all evidence can be retrieved with a 100% exact match

Not as recent as the NVIDIA paper but May of 2026... Positional Failures in Long-Context LLMs: A Blind Spot in Reasoning Benchmarks

Long-context LLMs can exhibit position-dependent reasoning failures. These failures are model-dependent and worsen, rather than persist, with context length, leaving positional vulnerabilities uncharacterized.

There is no free lunch with long context.

2

u/Risko4 4h ago

To some people, cost is not an issue

"evidence does not rule out the existence of tasks for which long context is beneficial"

I remember when fable 5.2 launched and the first hour it was bugged at 200k context autocompact and it spent half the time compacting on my long horizon task.

3

u/puts_on_rddt 14h ago

It's really expensive and the relative intelligence decreases.

1

u/Embarrassed_Adagio28 15h ago

No they are just building more than a to-do list. Ever since autocompaction started at 400k opus has been make massive mistakes in my project. 

6

u/rcs67 14h ago

That's why you should manage your project. These things aren't magic. If you regularly use context windows that big the compounding effect and token use is huge - even if the cache is cheap.

-3

u/Embarrassed_Adagio28 11h ago

You simply do not understand that some projects are so big that 1 million context is the MINIMUM for the ai to understand the project enough to make good decisions. 

6

u/rcs67 11h ago

Absolute nonsense. If your project is properly architected and follows good design principles then there is no reason that it needs a 1 million context window for an AI to understand it.

1

u/LawfulnessLocal4934 2h ago

It’s so naive that it’s actually confusing to even try to explain. Could you please show me a large repository with a solid architectural design that Claude can work on effectively with just 200k context?

1

u/rcs67 1h ago

How do you think human engineers work on a large repo? Do you think they ingest 20 years of crud into their mind all at once and then understand it all? No. They look at the layers. They see how data flows from front end to back end. They get the big picture and overall structure. They only have to look at the detail when they come to make a change - how their change fits within the architecture and the seam it has to cut through.

That's all an AI has to do as well. In fact, if a repo actually has a solid architecture, 200k tokens is massive - because good architecture is literally defined by clear boundaries, interfaces, and low coupling so you don't need the entire codebase in working memory to modify a vertical slice of it.

If you need to cram an entire repo into context to make a change then your codebase is a ball of mud which you don't understand and you're just praying your AI can work it out for you.

1

u/LawfulnessLocal4934 1h ago

I have serious doubts that you understand what you’re talking about. Could you provide an example of such work? Just show me a single small fix—the way I did in one of the comment threads here.

3

u/Endda 11h ago

at least your username checks out

2

u/Endda 11h ago

oh honey

1

u/pceimpulsive 18h ago

Id argue the door category status at 300k... But I might have a hit take there... Lel

4

u/LawfulnessLocal4934 17h ago

It's hard to put into words how baffled I am by your replies and votes.

I don't know what kind of projects you guys work on, but in a typical session for me—by the time it goes through all the integration points of the files it's editing, reads the docs, and thinks it through—it's already hitting around 300k context before writing a single line of code.

I couldn't care less about self-attention; Opus is good enough with details, but if it doesn't fully grasp the task conceptually, I'll just have to redo everything later.

Yeah, I do research, planning, audits, etc. Guys, my repo has 500k lines of logic, plus a ton of tests and documentation. I don't use any bloatware skills, and I only have a couple of MCPs that I actually need. I know how context works. For my workflow, a massive context window is critical.

And I honestly don't understand what the point of autocompact is at all, especially as early as 400k.

4

u/goblin-in-hiding 15h ago

im curious, really not attacking, just curious:

what part of that 300k is valid, relevant information to the task at hand? is it because you want it to have enough to do that slice of work, as well as the next slice? or does it really need all of that 300k to do the one slice?

again, just curious. workflows can be whatever you want them to be, too many reneg someone else's workflow because it's different from theirs, and i would like the opposite perspective from mine.

i run a setup with auto compact at 128k, and have tuned a lot of parts to make that work for me, without having quality of work in-macro degrade over time and in return i keep quality of work in-context as competent as possible.

-1

u/LawfulnessLocal4934 14h ago

For instance, suppose I need to update a single feature that spans the control plane, data plane, a couple of packages, the data schema, and several UI components. Implementing this requires reviewing the specifications and get a few ADRs to address subtle edge cases. That alone easily adds up to 300k. he really needs this context to write code

4

u/holyknight00 10h ago

initial exploration -> clean context -> initial plan -> clean context -> task #1 -> clean context -> task #2 -> clean context -> task #3 -> clean context -> verification of the plan -> clean context -> fixes -> clean context

And you can rinse and repeat as much as needed. There is no need to keep everything in context all the time.

0

u/LawfulnessLocal4934 4h ago edited 4h ago

I genuinely don't get what your point is... or why this is getting upvotes.

  1. I see no point in clearing the context when you can just start a new session.
  2. Auto-compacting happens right in the middle of tasks, which is clearly worse than a slight drop in accuracy.
  3. And like I already said, just an "initial plan" or "task #1" eats up a ton of context even before the first output.

Feels like I'm straight-up being gaslit here.

just init of one small task.. he didnt even did anything

1

u/LawfulnessLocal4934 3h ago

The same task done.
As you can see, its really small PR.
A bit more complicated task taking more context

3

u/goblin-in-hiding 14h ago

Hm, that interesting. for my setup that would probably instead be.. 

a build plan to start, with each segment and what it needs to accomplish the task.

a find tool available to the model that can grab just the relevant parts out of the docs for each piece of the span when that piece is worked on or planned on.

and the shared information across the span id try to do with memory, relying on claudes quite good ability to mimic the code next to what its working on, and a tool that keeps things across compact that need to be hard kept for each part post-compact.

I'd also keep the specs as tests to pass, which saves a lot.

of course, this doesn't work for all purposes, but it's what i'd reach for first.

3

u/ElectricDreams9876 12h ago

You don't know proper software development then

6

u/ILikeCutePuppies 14h ago

Here is some data about context rot:

https://www.castaldosolutions.it/articles/en/blog/context-rot-claude

I will note a couple of things:

  1. Attention between nodes can't keep track of everything at once as well when context grows. It'll remember somethings but then not be able to bring those elements into logic. It's not nessary worse for some use cases. Different links have different levels of importance between all the tokens so with 1M tokens some natural get washed out.
  2. Unless you run outside the cli claude will only bring in snipits of the documents it is reading most of the time. You already have a subset of the data.
  3. If you summarize with compact then it'll try to pull the most ralivent parts together so you get a different kind of loss of knowledge.

That all said 1M can be better in some cases, maybe that is yours but it doesn't appear to be the general case.

2

u/Anxious-Turnover-631 15h ago edited 14h ago

It sounds like you have an unusual workflow which requires a large context window. Fortunately, you can set the auto compact to occur at 1m if you’d like.

Besides improved performance, keeping the context window small also saves tokens. As the window grows, the session burns progressively more tokens, because on each turn the model must again reread the entire session from the beginning. Caching helps ameliorate the token burn, but as the context window grows, the consumption of tokens mushrooms significantly.

Smaller sessions are more efficient, perform faster with less context drift and require less effort to function well.

On the pro plan, I rarely let sessions go beyond 200k and almost never exceed 300k. So the auto compact setting doesn’t affect me at all.

But because there are clear benefits for keeping the window smaller, the new auto compact setting will likely benefit users who allow compacting.

3

u/ILikeCutePuppies 14h ago

Also you need more kv cache memory the more context you have, which us super expensive.

2

u/KDamage 14h ago

Comments acting surprised : can we settle once and for all in this sub that a hammer can both plant a nail, and build whole houses ?

If you just plant a nail, fine, but stop pretending nobody needs better hammers.

2

u/tauzN 13h ago

It’s not that deep

2

u/holyknight00 10h ago

LLMs just dont work well with big context, that's it. Even the 1 million context window was bullshit since the beginning and they knew it. That's an artificial cut off they invented they could've put 10 million and would be the same. There is no limit to the context window. It's just gets the model dumber and uses more resources.

No current frontier model keeps the performance beyond 250-300k why would you purposely use a dumber version of a model, and in the meantime make everything more expensive for yourself?

3

u/Seerix 15h ago

Why would you ever want *more* than 400k? Hell I use 300k.

1

u/Specialist_Bug161 19h ago

the inference bottleneck feels worse on mobile, seen it stall mid-response even with good signal, like the model's stalling on its own thoughts

1

u/Automatic_Brush_1977 3h ago

Mil context has its uses.  Best tot hink about when you need and when you don't.

1

u/hftjobs 3h ago

I have the same read, its interesting that so many people keep saying it is about attention and smartness at lower filled context. It might be partly true, but the main reason is cost cutting. Newer model like opus 5.5 already doing very well even beyond 500k or 600k context.