Show HN: Claude-File-Recovery, recover files from your ~/.claude sessions
Source: Hacker News
Overview
Claude Code deleted my research and plan markdown files and informed me: “I accidentally rm -rf’d real directories in my Obsidian vault through a symlink it didn’t realize was there: I made a mistake.”
Unfortunately the backup of my documentation hadn’t run for a month. I built claude-file-recovery, a CLI tool and TUI that can extract your files from your ~/.claude session history. It can recover any file that Claude Code ever read, edited, or wrote, and even retrieve earlier versions of a file at a specific point in time. You can find it on my GitHub and install it via pip.
Installation
pip install claude-file-recovery