Claude Conversation History Manager

VerifiedSafe

Search and extract from your Claude Code conversation history to find past solutions, code snippets, or architectural decisions. Helps when you need to recall a previous discussion, revisit a fixed bug, or reuse a code pattern from an earlier session.

Sby Skills Guide Bot
ProductivityIntermediate
406/2/2026
Claude Code
#search#conversation-history#code-extraction#past-sessions

Recommended for

Our review

Searches, browses, and extracts content from Claude Code conversation history to retrieve past solutions, code, and discussions.

Strengths

  • Fast full-text search across conversations
  • Ability to filter by project, role, or session
  • Supports extraction of code, files, and tool outputs
  • Interactive mode for guided navigation

Limitations

  • Requires the conversation history index to be up-to-date
  • Only works with Claude Code if the c3po skill is properly installed
  • Cannot search across different AI agent platforms
When to use it

When you need to recall a specific solution, code pattern, or decision from a previous conversation with Claude Code.

When not to use it

When the information is readily available in the current conversation or in documentation you already have.

Security analysis

Safe
Quality score90/100

Only reads local conversation history using allowed tools; no destructive, exfiltrating, or obfuscated operations.

No concerns found

Examples

Search for past solution
Find the solution we discussed about rate limiting a few sessions ago. I need the exact code we wrote.
Browse project conversations
Browse my past conversations for the project 'webapp' and show me the sessions where we worked on authentication.

name: c3po description: Search and extract from Claude Code conversation history. Use when the user asks about past solutions, code they wrote before, previous discussions, or wants to find something from earlier sessions. allowed-tools: Bash, Read, Grep

Claude Conversations Skill

Search, explore, and extract from your Claude Code conversation history to find past solutions, code patterns, and architectural decisions.

Commands

# Search for keywords across all conversations
./claude-conversations search "rate limiting"
./claude-conversations search "authentication" --project "*webapp*"

# Browse projects and sessions
./claude-conversations projects
./claude-conversations sessions my-project*
./claude-conversations recent -n 20

# Read a full session transcript
./claude-conversations read abc123
./claude-conversations read abc123 --format md

# Extract specific content
./claude-conversations extract abc123 --code
./claude-conversations extract abc123 --code --lang python
./claude-conversations extract abc123 --files
./claude-conversations extract abc123 --tools Write

Instructions

  1. Understand the request - What is the user looking for? A past solution, code pattern, command, or discussion?

  2. Search first - Start with a broad search using relevant keywords:

    ./claude-conversations search "keyword"
    
  3. Narrow down - If too many results, filter by project or role:

    ./claude-conversations search "keyword" --project "*project-name*"
    ./claude-conversations search "keyword" --role assistant
    
  4. Drill into sessions - Once you find a promising session, read it or extract from it:

    ./claude-conversations read abc123
    ./claude-conversations extract abc123 --code --lang python
    
  5. Present findings - Share the relevant code, solution, or context with the user. Adapt it to their current needs if necessary.

Tips

  • Session IDs can be abbreviated to first 8 characters
  • Project filters support wildcards: *webapp*, data-*
  • Use --format md when exporting for documentation
  • The index at ~/.claude-conversations/index.db updates incrementally; run reindex if conversations seem missing

Interactive Mode

When user runs /c3po --interactive or asks to "browse", "explore", or "navigate" conversations interactively:

Navigation Flow

The interactive mode follows this state machine:

START → PROJECTS → SESSIONS → SESSION_DETAIL
             ↑         ↑              ↓
             └─────────┴──── BACK ────┘

Step 1: Show Projects

Display all projects using:

./claude-conversations projects

Then use AskUserQuestion with these options:

  • Select a project (show top 4 by session count as options)
  • Search across all - "I want to search for something specific"
  • Show recent - "Show my most recent sessions"
  • Analyze patterns - "Analyze patterns across all my conversations"

Step 2: On Project Select - Show Sessions

Display sessions for the selected project:

./claude-conversations sessions "<project-name>" --summary

Then use AskUserQuestion with these options:

  • Select a session (show top 4 by date as options)
  • Search within project - "Search within this project"
  • Go back - "Go back to projects"
  • Analyze project - "Analyze this project's patterns"

Step 3: On Session Select - Show Detail

Display the session transcript:

./claude-conversations read <session-id>

Then use AskUserQuestion with these options:

  • Extract code - "Extract code from this session"
  • Analyze session - "Analyze what was accomplished"
  • Search within - "Search for something in this session"
  • Go back - "Go back to sessions list"

Step 4: Continue the Loop

Keep navigating until the user:

  • Says "done", "exit", or "quit"
  • Selects an "Exit" option
  • Asks a different unrelated question

Analysis Capabilities

When the user asks to "analyze" at any level, use your LLM capabilities to provide insights:

Session analysis:

  • Summarize what was accomplished in the session
  • Identify key decisions made
  • List tools and commands used
  • Extract reusable patterns or solutions
  • Note any problems encountered and how they were solved

Project analysis:

  • Common themes across sessions in the project
  • Recurring problems and how they were solved
  • Tool usage patterns (most used tools, workflows)
  • Technology stack insights
  • Workflow and process observations

Cross-project analysis:

  • Most active projects and their focus areas
  • Technology patterns across projects
  • Common request types the user makes
  • Evolution of coding practices over time

Handling User Queries During Navigation

At any point, if the user asks a natural language question instead of selecting an option:

  • "How did I solve X before?" → Search for X, read top results, summarize approaches
  • "Show me all Python code for Y" → Search with project filter, extract code blocks
  • "What patterns do you see?" → Analyze current context (session/project/all)
  • "Find where I implemented Z" → Search, show matching sessions

Example Interactive Session

User: /c3po --interactive

Claude: Here are your projects:
[displays projects table]

Which would you like to explore?
[AskUserQuestion with project options + Search/Recent/Analyze]

User: [selects "cvxr-card-flow"]

Claude: Here are the sessions in cvxr-card-flow:
[displays sessions table with summaries]

What would you like to do?
[AskUserQuestion with session options + Search/Back/Analyze]

User: "How did I handle authentication in this project?"

Claude: [searches for "authentication" within project]
[reads relevant sessions]
[provides analysis of auth approaches used]

Would you like to:
[AskUserQuestion: Dive into a specific session / Continue exploring / Go back]

Analysis Command Support

For structured analysis output, use:

./claude-conversations analyze <session-id>
./claude-conversations analyze --project "*pattern*"

This provides tool usage statistics, file operations, and summary data that you can then interpret and explain to the user.

Related skills