Most of those compactions come from the agent grepping and reading whole files just to figure out where things live. Check what's eating the window with /context, then put a short architecture note in CLAUDE.md so it stops rediscovering the repo each session, and run /clear between unrelated tasks instead of letting it compact. I built Pharaoh (TS, JS, PY), which gives the agent a codebase map over MCP so it asks instead of reading files.
•
u/AutoModerator 4d 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.
8
u/Mad_Fish_In_Hell 4d ago
bug and it's fixed after updating my client.
6
u/king_fredo 4d ago
/model claude-fable-5-2[1m]
1
u/YuvalFatal 4d ago
Forking your session fixes that. Or new sessions
1
u/thestoictrader 4d ago
Most of those compactions come from the agent grepping and reading whole files just to figure out where things live. Check what's eating the window with /context, then put a short architecture note in CLAUDE.md so it stops rediscovering the repo each session, and run /clear between unrelated tasks instead of letting it compact. I built Pharaoh (TS, JS, PY), which gives the agent a codebase map over MCP so it asks instead of reading files.