Claude-File-Recovery, recover files from your ~/.claude sessions
CLI ToolFreeClaude 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 b
Capabilities5 decomposed
claude session file extraction and parsing
Medium confidenceScans the ~/.claude directory structure to locate and parse serialized conversation session files, extracting embedded file artifacts that were generated or uploaded during Claude interactions. Uses filesystem traversal to identify session metadata and deserializes session state to recover file references and content payloads that may have been lost or deleted from the user's working directory.
Directly targets Claude's local session storage format to recover artifacts that exist nowhere else — most recovery tools focus on cloud backups or trash bins, but this exploits the fact that Claude caches full conversation state locally including all generated files
Recovers Claude-specific artifacts that generic file recovery tools cannot access because they're embedded in proprietary session serialization rather than stored as independent files
session directory traversal and indexing
Medium confidenceRecursively walks the ~/.claude directory tree to build an index of all session files, extracting metadata like creation timestamps, conversation IDs, and file references without loading entire session payloads into memory. Uses efficient filesystem scanning to catalog available sessions and their contents, enabling users to selectively recover files from specific conversations rather than bulk extraction.
Builds a queryable index of Claude sessions without requiring full deserialization of each session file, using lazy-loading patterns to minimize memory footprint and enable fast searches across hundreds of conversations
More efficient than generic file indexing tools because it understands Claude's session structure and can extract conversation-level metadata without parsing full file contents
selective file recovery with filtering
Medium confidenceEnables users to filter recovered files by type (code, documents, images), date range, or session ID before extraction, preventing bulk recovery of unwanted files and allowing targeted restoration of specific artifacts. Implements filtering logic at the extraction stage to avoid unnecessary deserialization and disk writes of irrelevant files.
Implements multi-dimensional filtering (type, date, session) at the extraction layer rather than post-hoc filtering, reducing I/O overhead and enabling users to avoid recovering files they don't need
More granular than simple bulk recovery tools — allows users to recover specific subsets of artifacts without touching the entire session cache
file deduplication and conflict resolution
Medium confidenceDetects duplicate files across multiple sessions (using content hashing or filename matching) and handles naming conflicts when recovering multiple versions of the same file. Implements strategies like timestamp-based versioning or content-based deduplication to prevent overwriting files and preserve all recovered versions with clear naming.
Implements intelligent deduplication at recovery time rather than requiring manual cleanup afterward, using content hashing to identify true duplicates vs. files with the same name but different content
Prevents data loss from overwriting files during recovery — generic file recovery tools often blindly overwrite or fail on conflicts, while this tool preserves all versions with clear naming
batch recovery to specified output directory
Medium confidenceExports recovered files to a user-specified output directory with configurable directory structure (flat, by session, by file type, or by date). Handles file permissions, creates necessary subdirectories, and provides progress reporting during batch recovery operations to manage large-scale artifact restoration.
Provides multiple output organization strategies (flat, by session, by type, by date) rather than forcing a single directory structure, allowing users to choose the layout that best fits their workflow
More flexible than tools that dump all recovered files into a single directory — enables users to maintain logical organization and easily locate specific files after recovery
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with Claude-File-Recovery, recover files from your ~/.claude sessions, ranked by overlap. Discovered automatically through the match graph.
claude-devtools
The missing DevTools for Claude Code — inspect session logs, tool calls, token usage, subagents, and context window in a visual UI. Free, open source.
Rudel – Claude Code Session Analytics
We built rudel.ai after realizing we had no visibility into our own Claude Code sessions. We were using it daily but had no idea which sessions were efficient, why some got abandoned, or whether we were actually improving over time.So we built an analytics layer for it. After connecting our own sess
Claude-replay – A video-like player for Claude Code sessions
I got tired of sharing AI demos with terminal screenshots or screen recordings.Claude Code already stores full session transcripts locally as JSONL files. Those logs contain everything: prompts, tool calls, thinking blocks, and timestamps.I built a small CLI tool that converts those logs into an int
atlas-session-lifecycle
Session lifecycle management for Claude Code — persistent memory, soul purpose, reconcile, harvest, archive
claude-code-ultimate-guide
A tremendous feat of documentation, this guide covers Claude Code from beginner to power user, with production-ready templates for Claude Code features, guides on agentic workflows, and a lot of great learning materials, including quizzes and a handy "cheatsheet". Whether it's the "ultimate" guide t
filesystem-mcp-server
MCP server: filesystem-mcp-server
Best For
- ✓Developers who use Claude for code generation and lose track of generated files
- ✓Users who clear Claude chat history but need to recover artifacts
- ✓Teams managing Claude-generated assets across multiple sessions
- ✓Users with large numbers of Claude sessions who need to search for specific artifacts
- ✓Developers building tools on top of Claude session data
- ✓Users auditing what files they've generated in Claude
- ✓Users with selective recovery needs who don't want to restore entire session histories
- ✓Developers integrating file recovery into larger workflows with specific file type requirements
Known Limitations
- ⚠Only recovers files from local ~/.claude cache — no recovery from cloud-deleted sessions
- ⚠Depends on Claude's session serialization format remaining stable — breaking changes in Claude's storage format would break recovery
- ⚠Cannot recover files if the ~/.claude directory itself has been deleted or corrupted
- ⚠Limited to files that were explicitly attached or generated as artifacts in Claude — inline code snippets may not be recoverable
- ⚠Indexing performance degrades with very large session directories (10,000+ sessions may require several seconds)
- ⚠Metadata extraction depends on consistent session file naming and structure — custom Claude configurations may break indexing
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
About
Show HN: Claude-File-Recovery, recover files from your ~/.claude sessions
Categories
Alternatives to Claude-File-Recovery, recover files from your ~/.claude sessions
Search the Supabase docs for up-to-date guidance and troubleshoot errors quickly. Manage organizations, projects, databases, and Edge Functions, including migrations, SQL, logs, advisors, keys, and type generation, in one flow. Create and manage development branches to iterate safely, confirm costs
Compare →Are you the builder of Claude-File-Recovery, recover files from your ~/.claude sessions?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →