| name | recall |
| description | Search past Claude Code and Codex sessions. Triggers: /recall, "search old conversations", "find a past session", "recall a previous conversation", "search session history", "what did we discuss", "remember when we"
|
| metadata | {"author":"arjunkmrm","version":"0.2.2","license":"MIT"} |
/recall — Search Past Claude & Codex Sessions
Search all past Claude Code and Codex sessions using full-text search with BM25 ranking.
Usage
python3 ~/.claude/skills/recall/scripts/recall.py QUERY [--project PATH] [--days N] [--source claude|codex] [--limit N] [--reindex]
Examples
python3 ~/.claude/skills/recall/scripts/recall.py "bufferStore"
python3 ~/.claude/skills/recall/scripts/recall.py '"ACP protocol"'
python3 ~/.claude/skills/recall/scripts/recall.py "rust AND async"
python3 ~/.claude/skills/recall/scripts/recall.py "buffer*"
python3 ~/.claude/skills/recall/scripts/recall.py "state machine" --project ~/my-project --days 7
python3 ~/.claude/skills/recall/scripts/recall.py "buffer" --source claude
python3 ~/.claude/skills/recall/scripts/recall.py "buffer" --source codex
python3 ~/.claude/skills/recall/scripts/recall.py --reindex "test"
Query Syntax (FTS5)
- Words:
bufferStore — matches stemmed variants (e.g., "discussing" matches "discuss")
- Phrases:
"ACP protocol" — exact phrase match
- Boolean:
rust AND async, tauri OR electron, NOT deprecated
- Prefix:
buffer* — matches bufferStore, bufferMap, etc.
- Combined:
"state machine" AND test
After Finding a Match
To resume a session, cd into the project directory and use the appropriate command:
cd /path/to/project
claude --resume SESSION_ID
cd /path/to/project
codex resume SESSION_ID
Each result includes a File: path. Use it to read the raw transcript (auto-detects format):
python3 ~/.claude/skills/recall/scripts/read_session.py <File-path-from-result>
If results are missing File: paths, run --reindex to backfill.
Notes
- Index is stored at
~/.recall.db (SQLite FTS5, auto-migrated from ~/.claude/recall.db)
- Indexes both
~/.claude/projects/ (Claude Code) and ~/.codex/sessions/ (Codex)
- First run indexes all sessions (a few seconds); subsequent runs are incremental
- Only user and assistant messages are indexed (tool calls, thinking blocks, state snapshots skipped)
- Results show
[claude] or [codex] tags to indicate the source