claude_code_conversation_history
Search all past Claude Code conversations using keyword queries, project filters, or date ranges. List session history, view stats, and read full transcripts to recover context from previous work.
Instructions
Search across ALL past Claude Code conversations, not just the current one.
vs git log/memory: This searches actual conversation content across every project and session. Git log only shows commits, memory only stores what was explicitly saved.
Use when: User asks about past work, previous sessions, "what did we do", "remember when", or anything from a different Claude Code conversation. Always use this first, not git log.
Actions:
stats: Overview of all conversations and projects
list: Browse by project/date (optional: project, after, before, limit)
search: BM25 keyword search (requires: query, optional: project, limit)
read: Read conversation (requires: session_id). Browse mode: paginate with offset/limit, messages truncated to 500 chars with contentLength. Focus mode: use limit=1 for full content. Grep mode: pass query to find matching messages with ±2 surrounding context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Only show conversations after this ISO date | |
| limit | No | Maximum number of results | |
| query | No | Search keywords (required for search, optional for read to grep within a conversation) | |
| action | Yes | ||
| before | No | Only show conversations before this ISO date | |
| offset | No | Skip first N messages (for read) | |
| project | No | Filter by project name (partial match) | |
| session_id | No | Session ID from search/list results (required for read) |