claude-code-history-files-finder

Parse Claude Code session JSONL files to recover deleted content and generate reports.

1.3k|212|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/daymade/claude-code-skills --skill claude-code-history-files-finder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-code-history-files-finder
Source: https://github.com/daymade/claude-code-skills/tree/main/claude-code-history-files-finder
Command: npx skills add https://github.com/daymade/claude-code-skills --skill claude-code-history-files-finder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps locate and recover content from Claude Code session history files stored in ~/.claude/projects/ across projects.

Core Features & Use Cases

  • List sessions for a project
  • Search sessions for keywords
  • Recover deleted content from Write tool calls
  • Analyze session statistics and file operations

Quick Start

  • List sessions: python3 scripts/analyze_sessions.py list /path/to/project

Frequently Asked Questions about claude-code-history-files-finder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I recover deleted files from Claude Code session history?

Recover deleted content by parsing Claude Code session history files stored in ~/.claude/projects/. The Skill extracts Write tool calls from JSONL session logs, reconstructs deleted file versions, and generates recovery reports showing what was written and when.

Can I search Claude Code sessions for specific keywords across projects?

Yes, search sessions for keywords within ~/.claude/projects/ using keyword filtering on streamed JSONL session data. The Skill scans conversation history and file operations across all sessions in a project and returns matching results with deduplication.

How do I list and analyze Claude Code session history for a project?

List sessions and analyze statistics using the analyze_sessions.py script. It parses session JSONL files to display session metadata, file operations, and conversation data, supporting both listing and keyword-filtered search across project history.

What file format does Claude Code use to store session history?

Claude Code stores session history as JSONL (JSON Lines) files in ~/.claude/projects/. Each line is a JSON object representing a tool call or event, enabling streaming parsing and efficient recovery of individual operations without loading entire sessions into memory.

Can I track file changes across multiple Claude Code sessions?

Track file changes by analyzing Write tool calls across sessions. The Skill deduplicates writes and generates analytics showing file operation history, allowing you to understand what changed, when, and across which sessions within a project.

Do I need any dependencies to recover Claude Code session history?

No external dependencies are required. The Skill uses Python 3 with standard libraries to parse JSONL files from ~/.claude/projects/, making it portable and requiring only access to your local Claude Code project directory.