claude-recall
Verbatim, local, cross-project search over your Claude Code memory notes.
Claude Code's native memory is per-project — notes you save in one repo don't surface when you're working in another. claude-recall indexes every project's memory notes into one searchable corpus, so you can recall a finding, decision, or fact from any past engagement — returned byte-for-byte, never paraphrased.
No cloud. No daemon. No embeddings service. Just ripgrep + SQLite FTS5 over the markdown you already have.
$ recall heap grooming
# recall: heap grooming (3 shown / 20 hits | lanes: exact, fts:trigram)
[proj-a] ~/.claude/projects/-Users-you-work-proj-a/memory/nginx_notes.md:42
— Pool overflow grooming notes
┄ # Exploitation > ## Heap layout
> 42│ groom the pool by interleaving 2KB allocs before the overflow write…
# by project: proj-a:3
Why
- Cross-project. Native memory is siloed per directory; this searches all of
~/.claude/projects/*/memory/.
- Verbatim. Matched lines are read live from disk and printed exactly — critical when your notes hold precise tokens (IDs, offsets, commit SHAs, version boundaries) that a summarize-then-embed system would paraphrase.
- Local & private. Nothing leaves your machine. No network calls anywhere. The only thing written is a local SQLite index; your notes are read-only.
- Ask it in words. A 1–3 word query is taken literally — every term is required. Ask a full question (
prior work that was done on nginx) and it stops demanding every word, keeps the ones that actually narrow your corpus, and ranks by how informative each match is. The header always prints which terms it used, so a broadened search never looks like a precise one.
- Deterministic. Same corpus + same query → identical, ranked output.
- Zero-maintenance. The index auto-refreshes (incrementally, and throttled so rapid re-queries don't re-fork) on every search — add notes any day, they're found automatically.
How it works
Two search lanes, fused with Reciprocal Rank Fusion at file granularity (so one strong note never crowds the results by occupying several consecutive ranks):
ripgrep exact — fixed-string, smart-case scan for precise literals (CVE-2024-1234, 0xdeadbeef, 1.2.3, foo->bar, path/to/file.c:1337).
- SQLite FTS5 (trigram) BM25 — ranked lexical/fuzzy matching for concept queries, over a multi-column index that weights a note's title 4× and its path 1.5× above body text, so a match in a note's name or heading ranks higher.
When a query looks like a literal (a CVE id, IP, hex, version, or real path), the exact lane is automatically weighted 2× so the precise hit wins; ordinary prose queries keep the lanes balanced.
Results are ranked best-first and printed as [project] path:line + the note title + the verbatim source line(s). Each hit also shows its enclosing markdown-heading breadcrumb (┄ ## Section > ### Subsection) — fence-aware, so a # inside a code block never misleads — so you can tell where a deep hit lives at a glance. A # by project: footer shows provenance.
Requirements
- Python 3.8+ (standard library only —
sqlite3 with FTS5, which ships in modern builds)
- ripgrep (
rg) — for the exact lane (brew install ripgrep / apt install ripgrep). Optional but recommended; without it only the FTS lane runs.
Install
As a Claude Code plugin (recommended)
In Claude Code:
/plugin marketplace add dinosn/claude-recall
/plugin install claude-recall@dinosn
That's it — the /recall command is now available. The index builds itself on first search and auto-refreshes after that. Requires python3 and (recommended) ripgrep on your PATH.
As a standalone CLI (optional)
If you also want the recall command in your terminal (outside Claude Code):
git clone https://github.com/dinosn/claude-recall.git
cd claude-recall
./install.sh
This copies the scripts to ~/.claude/recall/, registers the /recall command, and builds the initial index. Add ~/.claude/recall to your PATH to call recall from anywhere.
Usage