Need a way to enforce entire file reading
Resolved 💬 16 comments Opened Jun 25, 2025 by backnotprop Closed Jan 10, 2026
Claude spins when it doesnt read entire files.
It used to be the case when files were greater than 500loc, claude would piecemill which was fine.
But now, for even smaller files claude will only read parts of it.
Performance degrades in these instances. Often a "Stop. read the entire file" fixes it... i would rather claude always read an entire file.
Updating CLAUDE.md not reliable.
16 Comments
This is honestly a regression. In 2 major ways:
Its an insane issue in every possible way. He makes assumption on reading select lines, he prefers grep to save tokens, he refuses to read files fresh after having read a file once in the session even after multiple changes that requires him to read the full files again...
There has to be a middle ground here... some session specific or user setting allowing us --force-full-reads or similar flag.
Let us decide how we use our context/token limitations please.
An explicit example. I have to ask/remind him every...single...prompt...in...the...same...session... im honestly losing my sanity here.
Same problem here. Simple 700loc JS script... Using sed claude behaves like blind and looses a lot of tokens in the end... It would be much better to read the whole file....
+1 IMO this is a bug not a feature enhancement. I'm aware of the philosophical standpoint on the net gains by doing partial file reads. But it isn't working.
The number of times the partial read approach works well for us is tiny.
The vast majority of the time, we have to wait to see claude waste time and money on making partial file reads, then watch it proceed to make myopic changes that lack contextual awareness of the rest of the file, and manually tell it yet again to read the whole file.
Even Claude agrees:
Its also such a simple fix to please both camps. A simple flag / setting in the user_settings.json would solve this for everyone.
Let it be off by default but allow the ability. Everyone happy.
This is continuing to happen and is an enormous waste of time and money. I see the 1M Sonnet model is now the default; there's every reason to give users the choice to disable this behaviour.
Its not even a tiny fraction of why opus is so useless but it would be a great start....
Just look at this....
This is only from ONE 5-6 hour session... with 2-3 compaction so in reality? Its minimum twice as bad...
Still a serious regression @bcherny
<img width="841" height="394" alt="Image" src="https://github.com/user-attachments/assets/e2b03a9d-ce06-413d-8a61-371d4e1fdb08" />
This supposedly patches it (allows the agent to read full files), but didn't work for me:
https://x.com/SIGKITTEN/status/1959358664281915506
Can you folks try too, and report back here? Thanks.
I make it a habbit to not click random links anywhere, you cant post the content here? We have to visit 3rd party sites to join the discussion, on x nonetheless with requires login?
@sweedishdelight that @nikitabier is destroying Twitter:
Hope it works for you. Please let us know if it does.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
cupcake solves this with a builtin policy
https://github.com/eqtylab/cupcake
We're just publishing this, but ill have a specific claude code force file reading published in our policy studio (open sourcing that as well)
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.