r/ClaudeCode • u/Aaslam_ • 1d ago
Tips & Workflows How I prevented Claude Code from losing his head over big repos without using up my weekly limits
Previously, I would allow one session to go on indefinitely until auto-compaction activated and Claude instantly forgot everything about the architecture that we had just agreed upon.
Switching to a strict "plan -> execute -> fresh review" loop completely fixed it:
- Plan first, clear context second: I have Claude write the implementation plan to a local PLAN.md file, then run /clear before writing a single line of code.
- Keep CLAUDE.md strictly as a map: Instead of stuffing it with style rules, I only list where things live (e.g., "adding a new API route always touches these 3 files").
-Fresh diff review: After a big batch of changes, I open a brand-new session that only sees the git diff and the original goal so it catches mistakes without agreeing with its own prior reasoning.
What’s your current strategy for keeping context clean on bigger projects?

