Semantic search over past Claude Code conversations and memories. Use when the user wants to recall, find, or reference something from a previous Claude session — e.g. "what did we discuss about X", "find that conversation where we fixed Y", "search my Claude history for Z".
Search past Claude Code conversations, memory files, and authored files using semantic search.
Build and install from the repo root:
make pickbrain
# then copy or symlink the binary to somewhere on your PATH:
ln -sf "$(pwd)/pickbrain" ~/bin/pickbrain
The binary embeds its own model weights (embed-assets feature), so no separate assets directory is needed.
Run pickbrain via Bash with the user's query:
pickbrain "$ARGUMENTS"
Pickbrain automatically ingests new sessions, memories, and project config files (CLAUDE.md, AGENTS.md, and their @ references) before each search.
Each result includes:
Present results as a concise summary. Quote the most relevant excerpts. If the user wants to dig deeper into a specific session, use --dump:
pickbrain --dump <session-id> --turns <start>-<end>
To search within a specific session:
pickbrain --session <session-id> "<query>"
To exclude specific sessions from results (comma-separated or repeated):
pickbrain --exclude <uuid1>,<uuid2> "<query>"
pickbrain --exclude <uuid1> --exclude <uuid2> "<query>"
To search only recent history:
pickbrain --since 24h "<query>"
pickbrain --since 7d "<query>"
pickbrain --since 2w "<query>"
~/.pickbrain/pickbrain.db.