session-recall
Enables searching and browsing past Claude Code sessions via hybrid FTS5 and vector search, with tools for session search, drill-down, coverage, and health reporting.
README
session-recall
Session transcripts hold the detail that memory files and commit messages don't — error traces, abandoned approaches, debugging steps, exact tool output. This plugin makes that history searchable.
session-recall indexes completed Claude Code sessions into a local SQLite database and exposes them via an MCP server. Search is hybrid — FTS5 trigram matching for exact text (error messages, file names, CLI output) and optional vector embeddings for semantic similarity — so both precise and fuzzy queries work.
MCP tools
session_search— Search across all indexed sessions. Returns ranked snippets with session ID, timestamp, and match context.session_drill— Expand context around a search hit. Pass a session ID and chunk ordinal to see surrounding conversation turns.session_coverage— Batch coverage report: for each term, count how many chunks mention it and when it was last seen. Use for dead-code/dead-skill detection.session_health— Index health report (counts, staleness, DB size).
How it works
- A
SessionEndhook writes a pending-session marker when a session completes - The MCP server runs a background backfill loop that discovers and indexes
.jsonlsession files - Sessions are parsed, chunked, redacted (secrets stripped), and stored in a SQLite FTS5 index
- When
VOYAGE_API_KEYis set, chunks are also embedded via Voyage AI and stored in asqlite-vecvirtual table for vector search - Search queries run against both indexes; results are fused via RRF with configurable recency boost
Install
From marketplace
claude plugin install session-recall@verve-sh/session-recall
From source
git clone https://github.com/verve-sh/session-recall.git
cp -r session-recall/ <your-project>/.claude/plugins/session-recall/
cd <your-project>/.claude/plugins/session-recall/
npm install --legacy-peer-deps
npm run build
Vector search (optional)
Set VOYAGE_API_KEY in your environment to enable vector cosine search alongside FTS5. Without it, search falls back to FTS5-only (still effective for exact text matching).
Configuration
| Variable | Description |
|---|---|
VOYAGE_API_KEY |
Voyage AI API key for vector embeddings. Without it, search falls back to FTS5-only. |
SESSION_RECALL_DB |
Override path to the sessions SQLite database. Default: ~/.claude/sessions-index.db. |
SESSION_RECALL_DIR |
Override path to the session .jsonl directory. Default: derived from CLAUDE_PROJECT_DIR. |
Usage
When to use
- User asks about prior decisions, past work, or "have we done X before"
- Investigating recurring friction — errors, failed approaches, workaround patterns
- Checking whether an issue was previously encountered or a solution tried
- Building evidence for process improvements (hooks, rules, gotchas)
Query strategy
- Use concrete text from actual sessions: error messages, file names, script names, CLI output
- Single focused queries, not compound keyword lists —
"ECONNREFUSED 127.0.0.1:5432"finds results;"database connection failed"does not - Run 3-4 targeted queries in parallel to triangulate a topic
- Use
explain: trueto diagnose weak results
Workflow
session_search → read snippets → session_drill(session_id, chunk_ord) on best hit for full context
CLI
node dist/cli.js --health # Index health report
node dist/cli.js --backfill # Index new/changed sessions
node dist/cli.js --backfill-last # Write pending marker (fast)
node dist/cli.js --rebuild # Rebuild entire index
node dist/cli.js --hydrate-vectors # Fill missing vector embeddings
node dist/cli.js --reindex <session-id> # Reindex a specific session
node dist/cli.js <query> [--limit N] [--explain] # Search sessions
Requirements
- Node.js 20.19+ / 22.13+ / 24+
- Python is NOT required
License
Apache-2.0
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。