agentleFS
abhattacherjeeabhattacherjee/claude-code-skills/conversation-search/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Very specific:

    When to use --deep: Only when the topic is unlikely to appear in the conversation's firstPrompt or summary fields (e.g., specific error …

    line 54
  2. Very specific:

    Start without --deep first — it's much faster.

    line 56
  3. Distinctive:

    Run the script and present the results to the user.

    line 60
  4. Distinctive:

    When the user selects a conversation:

    line 65
  5. Very specific:

    Run show <session-id> to display the verbatim conversation

    line 66
  6. Very specific:

    Use --max-messages to control output size (default 200)

    line 67
  7. Very specific:

    If the user requests a summary, launch the conversation-summarizer agent:

    line 72
  8. Very specific:

    JSON mode: Use --json when feeding results to the summarizer agent.

    line 89

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 stats

Workflow

Step 1: Parse the User's Query

Map natural language to script flags:

User saysScript 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-messages to control output size (default 200)
  • For very long conversations, start with --max-messages 50 and 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., 0be99c26 instead of the full UUID).
  • Date formats: Both YYYY-MM-DD and full ISO 8601 are supported.
  • Large conversations: Some conversations have 10,000+ messages. Use --max-messages to 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 --json when 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.