Claude File Recovery enables the retrieval of files from session transcripts created by Claude Code. By parsing JSONL logs, this tool allows users to reconstruct files from any point in time, featuring an interactive terminal user interface, powerful search capabilities, and fast scanning for efficient recovery.
claude-file-recovery is a powerful tool designed for recovering files created and modified by Claude Code, leveraging JSONL session transcripts to effectively reconstruct lost files across various sessions. This project addresses the challenge of file management within Claude’s logging system by parsing detailed logs stored in ~/.claude/projects/, allowing users to retrieve lost information seamlessly.
Key Features
Interactive TUI: Navigate efficiently with a terminal user interface that supports fuzzy search and utilizes vim-inspired key bindings (e.g., j/k for navigation, / for search).
Point-in-Time Recovery: Recover files from any historical snapshot, enabling access to previous versions and facilitating robust file management.
Colored Diff View: Visualize file changes over time through an enhanced diff view that supports various display modes (unified, full-context, and raw).
Batch Extraction: Select multiple files for extraction in one go, saving time and effort in file recovery.
Fast Scanning: Benefit from fast and parallel parsing of session transcripts, significantly speeding up recovery by pre-filtering unnecessary lines (approximately 77% skipped).
Symlink Deduplication: Automatically detect symlinked paths and merge them into standardized entries to eliminate redundancy.
Smart-Case Search: Conduct case-sensitive searches where applicable, making query results highly relevant.
Quick Usage Examples
To get started with the claude-file-recovery tool, you can launch the interactive TUI with:
Comments
0Start the conversation
Share the first comment.