claude-history

Search and export Claude Code conversation history across local and remote environments.

10|4|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/kvsankar/claude-history --skill claude-history
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-history
Source: https://github.com/kvsankar/claude-history/tree/main/.
Command: npx skills add https://github.com/kvsankar/claude-history --skill claude-history

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Claude Code conversations are scattered across JSONL files and sources across environments. This Skill helps you quickly locate, export, and analyze past discussions, solutions, and usage patterns, saving time and reducing mental load.

Core Features & Use Cases

  • Unified search across local, WSL, Windows, and SSH remotes to surface relevant conversations.
  • Markdown export for readable backups, audits, and documentation.
  • Usage analytics including time tracking, tool usage, and model usage across environments.
  • Aliases & multi-source workflows to group related workspaces and collaborate across machines.

Quick Start

Use this Skill by asking Claude to list sessions, export history, or view stats:

  • List sessions: claude-history lss
  • Export all workspaces: claude-history export --ah
  • Time tracking: claude-history stats --time

Frequently Asked Questions about claude-history

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

FAQPage Schema
How do I search and export Claude Code conversation history across environments?

Export Claude Code history by running claude-history export --ah to retrieve all conversations from local, WSL, Windows, and SSH remotes. The Skill searches JSONL history files, deduplicates sessions, and exports results to Markdown format for backup and analysis.

Can I find specific Claude conversations or past solutions across multiple workspaces?

Yes. Use claude-history lss to list sessions, then query across local and remote workspaces to surface relevant discussions, bug fixes, and solutions. The Skill unifies search across scattered JSONL files and multi-environment setups.

How do I track Claude Code tool usage and time spent across conversations?

Run claude-history stats --time to generate usage analytics including tool invocations, model usage, and time tracking. The Skill analyzes JSONL history to reveal patterns across environments and sessions.

What formats does Claude Code history export support for documentation and audits?

Claude-history exports to Markdown format, suitable for readable backups, compliance audits, and documentation. It also supports JSONL deduplication and honors scope flags (--ah, --aw, --this) to control export range.

Does this Skill work with Claude Code history from local machines, WSL, and SSH remotes?

Yes. The Skill locates and analyzes Claude Code JSONL history across local, WSL, Windows, and SSH remote environments, enabling unified search and export workflows without manual file transfers.

What's the quickest way to analyze past Claude conversations without manual file searching?

Use claude-history commands to list, export, and generate stats on conversations stored in JSONL format. The Skill eliminates manual file searching by unifying history across environments and supporting date filters.