aashutosh396/mindpalace/claude-code-history-files-finder

Claude Code and agent skill by aashutosh396/mindpalace

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when the user wants to recover deleted files, search past Claude Code sessions, track changes across sessions, or analyze conversation history — extracts and recovers content from `~/.claude/projects/` session JSONL files.

Install

npx vskill@latest install aashutosh396/mindpalace/claude-code-history-files-finder

SKILL.md

The same SKILL.md was published earlier as aashutosh396/mindpalace/claude-code-history-files-finder.

Claude Code History Files Finder

Extract and recover content from Claude Code session history at ~/.claude/projects/<normalized-path>/<session-id>.jsonl.

Capabilities

  • Recover deleted/lost files written in prior sessions
  • Search code or content across conversation history
  • Analyze file modifications and tool usage over time
  • Find sessions by keyword/topic

Core operations

List sessions for a project python3 scripts/analyze_sessions.py list /path/to/project — recent sessions with timestamps/sizes. --limit N (default 10).

Search sessions for keywords python3 scripts/analyze_sessions.py search /path/to/project kw1 kw2 — ranks by frequency, per-keyword breakdown. --case-sensitive for exact.

Recover deleted content python3 scripts/recover_content.py /path/to/session.jsonl — extracts all Write tool calls to ./recovered_content/, preserving directory structure. Filter: -k keyword1 keyword2. Output dir: -o ./my_recovery/.

Session statistics python3 scripts/analyze_sessions.py stats /path/to/session.jsonl — message counts, tool breakdown, file op counts. --show-files to list ops.

Best practices

  • Recovery auto-dedups: only the latest version of each file is saved.
  • Pick distinctive keywords (file paths, function/class names, unique strings, error messages).
  • Use descriptive output dirs (./recovered_deleted_docs/, not ./output/).
  • Verify after recovery: find ./recovered_content/ -type f, read recovery_report.txt, spot-check files.

Limits

  • CAN recover: files written via Write tool; code in markdown blocks (partial); paths from Edit/Read.
  • CANNOT recover: files only discussed (never written); files deleted before session start; binary files (paths only); external tool outputs not captured.
  • Only captures state at Write-call time; intermediate Edits are lost (Edits store deltas, not full content).

Troubleshooting

  • No sessions: ls ~/.claude/projects/ | grep -i project-name (path normalization).
  • Empty recovery: files Edited but never Written, keyword mismatch, or session predates file — try --show-edits, broaden keywords, search adjacent sessions.
  • Large files (>100MB): scripts stream line-by-line; constant memory, may take 1-2 min.

Security

Session files may hold absolute paths with usernames, API keys, company info. Sanitize before sharing: strip absolute paths, grep -i "api_key\|password\|token" recovered files. Recovered content inherits original sensitivity — store securely.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aashutosh396/mindpalace/claude-code-history-files-finder/badge)](https://verified-skill.com/skills/aashutosh396/mindpalace/claude-code-history-files-finder)

Something wrong with this skill or its page? Tell us.