Conversation Search
Find and resume past AI coding conversations using smart hybrid extraction and JIT indexing. Supports Claude Code, OpenCode, and Codex CLI — search across all your AI conversations from a single tool.
Features
- Multi-Source Support: Search across Claude Code, OpenCode, and Codex CLI conversations
- Session Resumption: Get exact commands to resume past conversations
- Unified CLI: Single
ai-conversation-search command with intuitive subcommands
- Calendar Date Filtering: Intuitive
--date yesterday, --since, --until parameters
- Smart Extraction: Hybrid indexing (full user content + smart assistant extraction)
- Index Status:
status command to check index health and coverage
- Session Grouping: Group search results by session with
--group-by-session
- Exact Match:
--exact flag for precise phrase matching
- Background Auto-Indexing: Automatic background indexing with TTL-based cooldown (no CLI blocking)
- Local Timezone Display: All timestamps shown in your local time
- Meta-Conversation Filtering: Automatically excludes search tool usage from results
- Progressive Exploration: Simple search → broader search → manual exploration
- Conversation Context: Expand context incrementally around any message
- Claude Code Skill: Integrated Skill that outputs session resumption commands
- Skill Trigger Hook: Plugin-bundled UserPromptSubmit hook that deterministically reminds Claude to use the skill when a prompt contains a session UUID
- Multi-Project Support: Works across all your AI coding projects
Quick Start
Installation via Claude Code Plugin (Recommended)
Install the complete plugin (skill + CLI tool instructions) directly in Claude Code:
# Add this repo's marketplace
/plugin marketplace add yoshi47/ai-conversation-search
# Install the plugin
/plugin install conversation-search
Then follow the installation instructions shown by Claude to install the CLI tool and initialize the database.
Installation for Codex CLI / OpenCode
Only the Claude Code plugin puts the CLI on PATH. For Codex CLI and OpenCode, first install the
CLI wrapper and initialize the database:
mkdir -p ~/.local/bin
curl -fsSL "https://github.com/yoshi47/ai-conversation-search/releases/latest/download/ai-conversation-search-wrapper" \
-o ~/.local/bin/ai-conversation-search && chmod +x ~/.local/bin/ai-conversation-search
ai-conversation-search init # needs ~/.local/bin on PATH; downloads the binary on first run
Then add the skill:
Codex CLI — this repo's marketplace works as a Codex plugin marketplace:
codex plugin marketplace add yoshi47/ai-conversation-search
codex plugin add conversation-search@ai-conversation-search
Codex also runs the plugin's hooks and asks you to trust them on first use. Trusting them enables
background indexing after each turn and a reminder that triggers the skill when a prompt contains a
session UUID (needs jq). The indexing hook does nothing until the CLI has been run once (it only
uses an already-downloaded binary), so install the CLI first. Left untrusted, the skill still works:
search indexes on its own.
OpenCode (v2) — add the skill catalog to opencode.json(c):
{
"skills": ["https://raw.githubusercontent.com/yoshi47/ai-conversation-search/main/skills/"]
}
OpenCode caches the skill and refreshes it when version in skills/index.json changes (bumped by scripts/bump-version.sh).
Manual Installation
1. Install CLI Tool
Download the wrapper script, which automatically manages the platform-specific
binary (download, cache, and version tracking):
mkdir -p ~/.local/bin
curl -fsSL "https://github.com/yoshi47/ai-conversation-search/releases/latest/download/ai-conversation-search-wrapper" \
-o ~/.local/bin/ai-conversation-search && chmod +x ~/.local/bin/ai-conversation-search
# Make sure ~/.local/bin is in your PATH
export PATH="$HOME/.local/bin:$PATH"
# First run downloads the Rust binary automatically
ai-conversation-search --version
The wrapper also provides interactive features (pick, setup-hooks) that are
not available in the standalone binary.
Or build from source (core CLI only — pick and setup-hooks require the wrapper):
cargo install --git https://github.com/yoshi47/ai-conversation-search
2. Initialize Database
ai-conversation-search init
This creates the database and indexes your last 7 days of conversations from all supported sources (Claude Code, OpenCode, Codex CLI).
3. Install Skill (Optional)
mkdir -p ~/.claude/skills/conversation-search
cp skills/conversation-search/* ~/.claude/skills/conversation-search/
Basic Usage
# Search for conversations (shows session ID and resume commands)
ai-conversation-search search "authentication bug"