Claude Code History Files Finder
Searches every Claude Code (and optionally Codex) session archive and recovers deleted files byte-for-byte from file-history snapshots.
UtilitiesIntermediate★ 1,323⑂ 212AI score 9/10Last updated: Aug 8, 2026
What it does
A forensic search-and-recovery toolkit for the JSONL session logs Claude Code writes to disk.
- Complete-source search: auto-discovers the default home (
~/.claude), per-profile homes (~/.claude-profiles/*), the currentCLAUDE_CONFIG_DIR, and every long-term archive registered in~/.claude/history-sources.json.--all-projectssweeps everything when you don't know the project;--codexadds Codex rollouts. - Exact file recovery: restores the exact captured bytes from
file-historysnapshots — including post-Write Edit/shell changes and binary files. Without a snapshot it falls back to the latest Write call and clearly labels it as lower fidelity, and it fails loudly rather than silently substituting stale content. - Session analytics & triage: message/tool statistics, a verbatim "what the user actually typed" HTML report with harness noise filtered out, and a
triagecommand that classifies how sessions ended (done,stuck_no_result,interrupted_explicit,net_error,empty).
Who it's for
- Anyone who needs to dig a snippet or decision out of a conversation from days ago
- Developers who deleted a file and want it back from session history
- Users running multiple model profiles or mixing Claude Code with Codex
- Teams auditing which sessions a crash or reboot cut off
Examples
- Unknown project:
python3 scripts/analyze_sessions.py search --all-projects 'refactor plan'— then re-run with--exclude-session <id>because the phrase you just typed makes the current session the top hit. - Recover a deleted component: locate the session via search, then
python3 scripts/recover_content.py <session.jsonl> -k ImportantFile -o ./recovered_ui/and verify the SHA-256 inrecovery_report.txt. - Post-crash backlog audit:
python3 scripts/analyze_sessions.py triage --all-projects --kind stuck_no_resultprints the full last assistant message so you can pick what to resume.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the daymade-claude-code/claude-code-history-files-finder folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/claude-code-history-files-finder/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git /tmp/daymade-skills && mkdir -p ~/.claude/skills && cp -r /tmp/daymade-skills/daymade-claude-code/claude-code-history-files-finder ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and create the skills directory:
mkdir -p ~/.claude/skills - Clone the repository into a temp folder:
git clone https://github.com/daymade/claude-code-skills.git /tmp/daymade-skills - Copy just this skill:
cp -r /tmp/daymade-skills/daymade-claude-code/claude-code-history-files-finder ~/.claude/skills/ - Confirm Python 3 is available:
python3 --version(3.9+ recommended) - Restart Claude Code and ask something like "find that earlier conversation about X in my history" to trigger the skill.
- (Optional) If you keep older sessions in a backup location, register those roots in
~/.claude/history-sources.jsonso they are searched by default. - Smoke-test it:
python3 ~/.claude/skills/claude-code-history-files-finder/scripts/analyze_sessions.py list /absolute/path/to/project
View source on GitHub ↗License: MIT