3 hacks
Ask Claude to log architecture decisions and TODOs into a repo file that can be re-read after /compact.
Proactively run `/compact` with focus instructions so summaries keep the work that matters instead of stale debugging.
Declare a Compact Instructions section in CLAUDE.md so both manual /compact and autocompact preserve the project’s critical decisions by default.