What the context loses at compaction
When the context window fills up, Claude Code replaces the conversation with a summary. What survives (CLAUDE.md, memory, reloaded files), what goes, and how to keep the state on disk: tracking file, commits, a SessionStart compact hook.