5 hacks
Proactively run `/compact` with focus instructions so summaries keep the work that matters instead of stale debugging.
Double-Esc /rewind back to after useful file reads, then re-prompt with what you learned—without the failed approach still in context.
Enable /memory auto-memory so Claude writes durable notes about build commands, corrections, and patterns that reload on every new session.
Declare a Compact Instructions section in CLAUDE.md so both manual /compact and autocompact preserve the project’s critical decisions by default.
Use /clear between unrelated tasks so leftover debugging does not bias the next feature.