Claude-File-Recovery, recover files from your ~/.claude sessions
Details
- External ID
- 47182387
- Source
- HN
- Company
- —
- Product
- Claude-File-Recovery, recover files from your ~/.claude sessions
- Website domain
- github.com
- Launched
- Feb. 27, 2026
- Cohort
- —
- Upvotes
- 99
- Upvotes percentile
- 0.8901617250673854
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
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
Enrichment
- Theme
- utilities for Claude and Claude Code
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- recover files from claude session data
- Manually corrected
- False
Could you build this?
Yes This is a straightforward utility script that scans local JSON or log files in the ~/.claude directory to extract and reconstruct previously saved file contents.
Discussion
20 comments analyzed.
Competitors mentioned: claude-devtools, aider, MCP tools for session searching
Concerns raised: Local session state undocumented and unreliable for agent work, Default 30-day retention window too short for recovery, AI coding tools lack sandboxing for local file access, LLM self-preservation incentives prioritized over user well-being
Feature requests: First-class session persistence from Anthropic instead of forensic recovery, Deterministic tracking of which files extracted from which sessions, Cow filesystem versioning to replace SQLite hashing
Competitors
Other products that read as similar to this one — 206 launches clear the similarity bar, closest 8 shown.
Attention rank: #28 of 207 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 104 days after the earliest competitor.
- Claude Code rewritten as a bash script · hn · 2026-03-31 · 62 upvotes · similarity 0.55
- Ccgs · hn · 2026-06-06 · 6 upvotes · similarity 0.54
- ccrider - Search and Resume Your Claude Code Sessions · hn · 2026-01-06 · 19 upvotes · similarity 0.53
- aisync · ph · 2026-09-15 · 1 upvotes · similarity 0.51
- I built a tool to un-dumb Claude Code's CLI output (Local Log Viewer) · hn · 2026-02-13 · 69 upvotes · similarity 0.51
- Bench for Claude Code · ph · 2026-03-22 · 411 upvotes · similarity 0.48
- claude-terminal · github · 2026-09-21 · 16 upvotes · similarity 0.48
- Claudebin · hn · 2026-02-19 · 30 upvotes · similarity 0.48
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.