Last week I was trying to remember how I’d solved a redirect validation bug. I knew I’d worked on it with Claude Code, maybe two weeks ago. I remembered discussing the approach, making a plan, even committing something. But I couldn’t find any trace of what I’d actually done. The session was gone.
This kept happening. I’d close a terminal and lose everything: the prompts I’d sent, the reasoning behind decisions, the plans Claude had written. CLAUDE.md gives Claude project context, but it doesn’t capture what happened in a session.
So I wrote a PowerShell script that hooks into Claude Code’s lifecycle and journals everything to Obsidian automatically. I’ve been running it for about a week now, across ~50 journal entries. Plan archival turned out to be the most valuable piece.