chat-history

Solid

Search, inspect, and export Claude Code, Cursor, and Codex conversation history. Use when the user asks about past conversations, wants to find a previous session, needs to search chat history, wants a summary of what they worked on, or asks to resume a session. Also use when the user says "what did I work on", "find that conversation where I...", "show me my recent sessions", or "search my history for...".

AI & Automation 8 stars 1 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
32
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# chat-history Search, inspect, and export Claude Code, Cursor, and Codex conversation history. The short alias `ch` works identically. If the command is not found: `cargo install chat-history`. ## When to use - User asks about past conversations or sessions - User wants to find something they discussed before - User needs a summary of recent work / accomplishments - User wants to resume or export a previous session ## Process **Keyword question** ("find that conversation where I..."): 1. `chat-history search "<query>" --deep --json` — always `--deep --json` from agents. `--deep` searches full transcript content; `--json` returns structured results (`session_id`, `score`, `snippet`, `tools`, `files`). Note `--json` exists only on `search`. 2. Shortlist by snippet, not by raw score (see "Choosing the best hit"). 3. `chat-history inspect <partial-uuid>` on the top 2–3 candidates to confirm before answering. 4. `view` / `export` only if the user needs the actual content. **Temporal question** ("what did I work on yesterday?") — list, don't search: 1. `chat-history --from yesterday --to yesterday -v` — `-v` shows session IDs. - `--from X` alone means **X through today**. Always pair with `--to` when the user means a specific day. - `-s` groups by day for multi-day overviews, but the grouped view hides session IDs even with `-v` — use the flat `-v` list when you need IDs. 2. `chat-history inspect <id>` for accomplishments, tools, files touched. ## Choosing the best ...

Details

Author
ay-bh
Repository
ay-bh/chat-history
Created
4 months ago
Last Updated
5 days ago
Language
Rust
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

chat-history-search

Exhaustive search across ALL of your local Claude chat history — Cowork (Claude Desktop local-agent-mode) AND Claude Code CLI — to find user prompts, recover past conversations, inventory how often a pattern was used, or audit prior work. Knows every log location, every JSONL line shape, and the false-positive gotchas (task-notification wrappers, TodoWrite items, tool_result content, audit-log duplicates) that trip up naive grep. Use when the user asks to find all uses of X, when they last said Y, inventory prompts about Z, recover a conversation, or audit their sessions across projects.

0 Updated today
BryceEWatson
AI & Automation Listed

history

Search and read past Claude Code session transcripts. Use to recall what was said or decided in an earlier session, find a prior discussion by topic, recover content from before a context compaction, pull up a specific session by name or ID, or investigate past sessions in detail by filtering on record type, tool, subtype, or field. Searches conversation prose by default; technical records (tool calls, results, system events) are reachable through filters. Typed as `/history [selector] <query>`, and usable by the model to investigate history on its own.

0 Updated yesterday
richardkmichael
AI & Automation Listed

session-search

Search across past conversations/transcripts to recall what was said or decided earlier. Use when the user refers to something from before ("what did we decide about X", "last time", "you mentioned", "remind me what I said about…") and it isn't already in memory.

1 Updated 2 days ago
eric-wien