Session Recover

Recover lost Claude Code session context by merging duplicate project directories. Finds session/memory dirs under ~/.claude/projects/ that point at the same logical project from different cwd-encoded paths (e.g. /mnt/work/foo vs ~/Projects/foo cwd produces two separate namespaces). Unifies memory into the canonical dir, archives orphaned jsonl transcripts, and captures the lesson as a feedback memory so the split doesn't repeat. Use when: 'merge sessions', 'recover lost context', 'fix duplicate session dirs', 'session memory split', 'memory dir is empty but I added things', 'two project dirs', 'recover legacy memories from before a folder move', 'stale orphan memory namespace', or any time you find a populated memory dir at the "wrong" path and an empty one at the canonical path.

ngmeyer 01fbdc9 3 files · 21.2 KB Updated

File contents

ngmeyer/skills/tree/main/skills/engineering/session-recover commit 01fbdc9513

Frequently asked questions

npx skillmds add ngmeyer/session-recover