claude-find
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Pull deep memory from across your Claude Code sessions — when you need it.
Semantic search over all your past Claude Code sessions. Finds context by meaning and keywords. Searches the raw conversation transcripts, not compressed summaries, so Claude gets the full picture: reasoning, constraints, failed approaches, and decisions.
Setup
setup starts Ollama, pulls the embedding model, sets session retention to permanent, and registers the MCP server with Claude Code. Sessions are indexed in the background on startup. Searches work immediately and return progressively more complete results as indexing continues.
Linux / Windows
Install Bun and Ollama, then run bunx claude-find setup. It detects your platform and guides you through anything missing.
Use it
In any Claude Code session:
Claude searches your past sessions semantically, finds the relevant conversations, and synthesizes the context: what was tried, what failed, what constraints you set, and what decisions were made.
How it works
1. **Indexes** all Claude Code session JSONL files from ~/.claude/projects/
2. **Extracts** user + assistant messages, compact summaries, file paths from tool calls
3. **Enriches** each chunk with metadata context (project, branch, files, date) for better retrieval
4. **Embeds** conversation chunks using qwen3-embedding via Ollama (GPU accelerated)
5. **Searches** with hybrid semantic + keyword (FTS5) merged via Reciprocal Rank Fusion
6. **Returns** raw conversation chunks so Claude can synthesize with full context
After upgrading, run bunx claude-find index to rebuild the index with the latest improvements.
What makes this different
- **Searches raw transcripts**. Nothing lost through compression.
- **Retroactive**: works on all existing sessions immediately. No hooks needed.
- **Permanent history**: setup disables Claude Code's 30-day session cleanup so your sessions are searchable forever.
- **Non-blocking**: indexes in the background at startup. Searches work instantly, even mid-indexing.
- **Uses compact summaries**: Claude's own session understanding, boosted in ranking.