One tiny SessionStart hook that tells Claude (and you) when a session started in the wrong folder — before you lose a day of context.
Claude Code keys three things to the directory a session starts in:
- Project memory (auto-memory) — lives in
~/.claude/projects/<encoded-cwd>/memory/ - Session history — same per-directory bucket