conversation-search
Skill1 starsChanged 2 months agoMITView on GitHub
Searches Claude Code conversation history in ~/.claude/projects/ by topic, date, branch, or project. Provides verbatim conversation content and AI-generated summaries. Use when: (1) user asks to find a past conversation, (2) user wants to recall what was discussed on a topic or date, (3) user asks to search conversation history, (4) /conversation-search command.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- johnhnguyen97/claude-code-configtheir own version, first seen Apr 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- johnhnguyen97/claude-code-config★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- changelog-keeperSkill
- claudeceptionSkill
- context-shieldSkill
- deep-reviewSkill
- figma-ui-designerSkill
- skill-authoringSkill
- spec-creatorSkill
- spec-implementSkill
- spec-reviewSkill
- worktreeSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
When to use
--deep: Only when the topic is unlikely to appear in the conversation's firstPrompt or summary fields (e.g., specific error … - Very specific: line 56
Start without --deep first — it's much faster.
- Distinctive: line 60
Run the script and present the results to the user.
- Distinctive: line 65
When the user selects a conversation:
- Very specific: line 66
Run show <session-id> to display the verbatim conversation
- Very specific: line 67
Use --max-messages to control output size (default 200)
- Very specific: line 72
If the user requests a summary, launch the conversation-summarizer agent:
- Very specific: line 89
JSON mode: Use --json when feeding results to the summarizer agent.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Conversation Search
Searches all Claude Code conversation history stored in ~/.claude/projects/. Returns matching
conversations with metadata, verbatim content, and optionally AI-generated summaries.
Quick Reference
SCRIPT=~/.claude/skills/conversation-search/scripts/search-conversations.sh
# List recent conversations
$SCRIPT list
$SCRIPT list --limit 5 --project "tiny-vacation"
# Search by topic (index-based, fast)
$SCRIPT search --topic "catalog" --after 2025-06-01
$SCRIPT search --topic "deploy" --branch "main"
# Deep search (scans JSONL content, slower)
$SCRIPT search --topic "CSRF" --deep
# Show a specific conversation (supports ID prefix)
$SCRIPT show 0be99c26
$SCRIPT show 0be99c26 --max-messages 50
# JSON output (for agent consumption)
$SCRIPT show 0be99c26 --json --max-messages 100
# Statistics
$SCRIPT statsWorkflow
Step 1: Parse the User's Query
Map natural language to script flags:
| User says | Script flags |
| "Find conversations about catalog maintenance" | search --topic "catalog maintenance" |
| "What did I discuss last Tuesday?" | search --after 2025-02-17 --before 2025-02-18 |
| "Show my work on the feature/story-6.5 branch" | search --branch "story-6.5" |
| "Find where I debugged CSRF errors" | search --topic "CSRF" --deep |
| "Recent conversations in tiny-vacation project" | list --project "tiny-vacation" --limit 10 |
When to use --deep: Only when the topic is unlikely to appear in the conversation's
firstPrompt or summary fields (e.g., specific error messages, function names, obscure terms).
Start without --deep first — it's much faster.
Step 2: Present Results
Run the script and present the results to the user. The script outputs formatted text by default. Show the list and ask which conversation(s) the user wants to explore further.
Step 3: Show Conversation Detail
When the user selects a conversation:
- Run
show <session-id>to display the verbatim conversation - Use
--max-messagesto control output size (default 200) - For very long conversations, start with
--max-messages 50and increase if needed
Step 4: Summarize (Optional)
If the user requests a summary, launch the conversation-summarizer agent:
Task(subagent_type="conversation-summarizer", prompt=<JSON from show --json>)Pass the JSON output from show --json as the prompt. The agent returns a structured summary
with: key topics, decisions made, code changes, outcomes, and open items.
Tips
- Session ID prefix matching: You can use just the first 8 characters of a session ID
(e.g.,
0be99c26instead of the full UUID). - Date formats: Both
YYYY-MM-DDand full ISO 8601 are supported. - Large conversations: Some conversations have 10,000+ messages. Use
--max-messagesto avoid overwhelming output. Start with 50-100, increase if the user needs more context. - Multiple criteria: Combine filters —
search --topic "deploy" --branch "main" --after 2025-01-01 - JSON mode: Use
--jsonwhen feeding results to the summarizer agent.
See Also
context-shield— use when searching/summarizing many conversations at once; each conversation can be 10K+ messages, so distilling multiple via isolated agents avoids context overflow- GitHub: https://github.com/abhattacherjee/conversation-search — install instructions, changelog, license
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

