Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

Claude Code History Files Finder

Searches Claude Code (and Codex) session history across every config home and registered archive, and recovers deleted files byte-for-byte from file-history snapshots.

UtilitiesIntermediate1,346214AI score 9/10Last updated: Aug 21, 2026

What it does

  • Searches ~/.claude/projects, per-model profile homes (~/.claude-profiles/*), the current CLAUDE_CONFIG_DIR, and every archive registered in ~/.claude/history-sources.json in a single pass, de-duplicating sessions by ID.
  • Keyword search covers messages, thinking text, tool inputs/results, queued commands, attachments, summaries, custom titles and file-history paths; date filters use internal JSONL timestamps, never file mtime.
  • recover_content.py restores the exact captured bytes of the newest valid file-history checkpoint — including binaries and post-Write Edit/shell changes — and clearly labels Write-only recoveries as lower fidelity.
  • --all-projects sweeps everything when you don't know the project; --codex adds Codex rollout search.
  • triage classifies how sessions ended (interrupted, net_error, done, empty, stuck_no_result) with the full last assistant message.

Who it's for

  • Long-time Claude Code users with hundreds of accumulated sessions.
  • Anyone who deleted a file or needs code produced in an earlier conversation.
  • Users juggling multiple model profiles or separate long-term history archives.

Examples

  1. "Find the ModelLoading file I wrote last week" → search --all-projects ModelLoading, then recover_content.py <session> -k ModelLoading.
  2. "Which sessions did last night's reboot cut off?" → triage --all-projects --from-date … listing interrupted_explicit / stuck_no_result sessions with their final replies.
  3. "This project seems to have no history" → the skill explains the encoded directory rule (absolute path with /-) and checks registered archives before declaring anything absent.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/daymade/claude-code-skills/HEAD/daymade-claude-code/claude-code-history-files-finder/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/daymade/claude-code-skills.git /tmp/daymade-skills
  3. Create the skills directory: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r /tmp/daymade-skills/daymade-claude-code/claude-code-history-files-finder ~/.claude/skills/
  5. Verify Python 3 is available: python3 --version (the bundled scripts run under python3).
  6. Restart Claude Code and try a prompt like "search my previous conversations for ...".
  7. (Optional) Register any long-term history archives in ~/.claude/history-sources.json so they are included in default searches.