Search through Claude Code conversation history. Use when user says "search my conversations", "find when I talked about X", "what did claude say about Y", or "search claude history".
Purpose: Search through Claude Code conversation history using the vibe-check MCP server
The vibe-check MCP server provides a vibe_search tool that handles all database queries automatically.
mcp__vibe-check__vibe_searchParameters:
query (required): Search term with FTS5 syntax support (see below)repo (optional): Filter to specific repository namedays (optional): Limit to last N dayssession_id (optional): Search within specific sessionlimit (optional): Maximum results (default: 20)FTS5 Query Syntax (powerful full-text search with relevance ranking):
authentication - finds messages containing this word"user authentication" - exact phrase matchauth AND oauth - both terms must be presentlogin NOT password - exclude certain termsauth* - matches authentication, authorize, etc.database schema - OR search (either term)Results are automatically ranked by relevance with star indicators (βββ = most relevant).
When user requests a search:
Extract search criteria from user's question:
days parameterrepo parametersession_id parameterCall the MCP tool with appropriate parameters
Present results to user - the tool already formats them nicely. Session headers include the full session UUID, the working directory, and a ready-to-run resume command (cd ... && claude --resume <full-uuid>). When you surface a session to the user, preserve the full UUID and include the resume command verbatim β the user cannot restore a session from an 8-character prefix.
Offer follow-up actions:
vibe_session tool)vibe_search again with more filters)vibe_view tool)User: "search my conversations for 'authentication'"
Claude: [Calls mcp__vibe-check__vibe_search with query="authentication"]
[Tool returns formatted results showing sessions and message previews]
Would you like to:
- View full details of a specific session
- Open a session in your browser
- Search for related terms
User: "find when I worked on API endpoints in the vibe-check repo"
Claude: [Calls mcp__vibe-check__vibe_search with query="API endpoints", repo="vibe-check"]
[Tool returns filtered results]
User: "what did I work on yesterday?"
Claude: [Note: For "recent work" queries, use the vibe_recent tool instead]
[Calls mcp__vibe-check__vibe_recent with period="yesterday"]
User: "search for 'database' in session 2d072129-d799-4aa5-b19d-5b5617f5a9de"
Claude: [Calls mcp__vibe-check__vibe_search with query="database", session_id="2d072129-d799-4aa5-b19d-5b5617f5a9de"]
User: "find conversations about 'full text search'"
Claude: [Calls mcp__vibe-check__vibe_search with query='"full text search"']
[Tool returns exact phrase matches, ranked by relevance with star indicators]
User: "find conversations about authentication but not OAuth"
Claude: [Calls mcp__vibe-check__vibe_search with query="authentication NOT oauth"]
[Tool returns results containing 'authentication' but excluding 'oauth']
User: "find conversations mentioning anything related to auth"
Claude: [Calls mcp__vibe-check__vibe_search with query="auth*"]
[Tool returns results matching auth, authentication, authorize, authorized, etc.]
Use these complementary MCP tools:
mcp__vibe-check__vibe_recent: Show recent sessions by time period (today, yesterday, week, month)mcp__vibe-check__vibe_session: Get detailed info about a specific sessionmcp__vibe-check__vibe_view: Open a session in the local web viewermcp__vibe-check__vibe_stats: Show overall usage statisticsThe MCP tool handles errors automatically and provides helpful messages:
vibe_recent firstvibe_search with FTS5 syntax"exact phrase") for precise matchesterm*) to find variationsAND, OR, NOT) for complex queriesvibe_view to open interesting sessions in browser for full contextFor complex queries not covered by vibe_search, use the mcp__vibe-check__vibe_sql tool:
mcp__vibe-check__vibe_sql(
query="SELECT ... FROM conversation_events WHERE ...",
limit=100 # optional, max 1000
)
This provides read-only access to the full database with custom SQL. See the vibe-check-sql skill for more examples.
For schema information, see ~/.vibe-check/SCHEMA.md (auto-generated) or use the Read tool.