I use Crystal which archives all my old claude code conversations, I've had to do this a few times when I threw out code that I later realized I needed.

Claude Code archives Claude Code conversations. "claude -r" - or go to equivalent of "~/.claude/sessions" or something like that