Recover files created and modified by Claude Code from JSONL session transcripts
# Add to your Claude Code skills
git clone https://github.com/hjtenklooster/claude-file-recoveryGuides for using cli tools skills like claude-file-recovery.
Last scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T17:03:20.750Z",
"npmAuditRan": true,
"pipAuditRan": true
}claude-file-recovery is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by hjtenklooster. Recover files created and modified by Claude Code from JSONL session transcripts. It has 101 GitHub stars.
Yes. claude-file-recovery passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/hjtenklooster/claude-file-recovery" and add it to your Claude Code skills directory (see the Installation section above).
claude-file-recovery is primarily written in Python. It is open-source under hjtenklooster on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-file-recovery against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Recover files created and modified by Claude Code from its JSONL session transcripts — even if you lost track of them across sessions.
Claude Code stores a full log of every tool call in ~/.claude/projects/. This tool parses those transcripts, replays Write, Edit, and Read operations in order, and reconstructs the files so you can browse, search, and extract them.

/ to search)# Recommended
uv tool install claude-file-recovery
# Or with pipx
pipx install claude-file-recovery
# Or with pip
pip install claude-file-recovery
Requires Python 3.10+.
# Launch the interactive TUI (default command)
claude-file-recovery
# List all recoverable files
claude-file-recovery list-files
# Filter by pattern
claude-file-recovery list-files --filter '*.py'
# Export as CSV
claude-file-recovery list-files --filter '*.ts' --csv
# Extract files to disk
claude-file-recovery extract-files --output ./recovered --filter '*.py'
# Recover files as they were before a certain time
claude-file-recovery list-files --before '2025-02-20 14:00'
# Point to a different Claude data directory
claude-file-recovery --claude-dir /path/to/claude-backup
Scan — Discovers all JSONL session files under ~/.claude/projects/ and parses them in parallel using a thread pool. A fast-reject byte check skips progress and history-snapshot lines (~77% of all lines) before touching the JSON parser.
Correlate — Links tool-use requests in assistant messages to their results in user messages via tool_use_id. This is how file content (which only appears in results, not requests) gets attached to each operation.
Reconstruct — Replays operations in chronological order per file path. Write ops set content, Edit ops apply string replacements, and Read ops capture snapshots. The --before flag uses binary search to cut off at any point in time.
Present — The TUI lets you browse all recovered files, search with fuzzy matching, view colored diffs between snapshots, and batch-extract to disk.
| Key | Action |
|---|---|
j / k |
Move up/down |
g / G |
Jump to top/bottom |
/ |
Search |
Ctrl+R |
Cycle search mode (fuzzy / glob / regex) |
x or Space |
Toggle file selection |
Enter |
View file detail + diffs |
d |
Cycle diff mode (unified / full-context / raw) |
Ctrl+E |
Extract selected files |
q |
Back / quit |
claude-file-recovery runs entirely on your local machine.
What it reads:
~/.claude/projects/ (or the directory you specify via --claude-dir)~/.claude/file-history/What it writes (only when you explicitly ask):
--outputWhat it does NOT do:
The source code is MIT-licensed and fully open for audit.
Contributions are welcome! Feel free to open an issue or submit a pull request.
MIT — Rikkert ten Klooster