|
|
|
Show HN: Claude-File-Recovery, recover files from your ~/.claude sessions
(github.com)
|
|
99 points
by rikk3rt
108 days ago
|
|
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 accidentally hadn’t run for a month. So I built claude-file-recovery, a CLI-tool and TUI that is able to extract your files from your ~/.claude session history and thankfully I was able to recover my files. It's able to extract any file that Claude Code ever read, edited or wrote. I hope you will never need it, but you can find it on my GitHub and pip. Note: It can recover an earlier version of a file at a certain point in time. pip install claude-file-recovery |
|
Speaking as someone who's derived a lot of value from these logs, it's a bit shocking that the default is to wipe them automatically!
[1] https://simonwillison.net/2025/Oct/22/claude-code-logs/