Open source
I built a search plugin for Claude Code
Finding an old Claude Code session meant grepping encoded folder names. find-conversation searches every session and gives you the command to resume it.
Why I built this
I use Claude Code a lot: many projects, many repositories, hundreds of conversations. Every so often I need the one session where I debugged a deployment, discussed a design decision or wrote a tricky migration script.
Claude Code stores every conversation as a JSONL file under ~/.claude/projects/, but there is no built-in way to search them. So I built one: type /find-conversation deployment vercel and it searches every conversation you have had, ranks the results and gives you the command to jump straight back in.
The problem
Conversations are saved in folders named after URL-encoded filesystem paths. After a few hundred sessions across a dozen projects, finding anything specific means grepping encoded directory names and raw JSON. You know the conversation exists and roughly what was said, and that does not help.
How it works
The plugin is pure Python (3.8 or newer, no dependencies) and stays fast on large histories.
- 01Scan for conversation filesWalks ~/.claude/projects/ for every JSONL conversation and decodes the URL-encoded folder names back into real project paths, so results are readable.
- 02Binary pre-filteringBefore parsing any JSON it scans files in 1 MB binary chunks for the search terms as raw bytes. Files without them are skipped entirely, which saves most of the time.
- 03Single-pass parsingFiles that pass are read line by line in one pass. Nothing is loaded whole; the text is extracted and matches are counted as it streams.
- 04Noise filteringSystem reminders, notifications and other noise are dropped, so only real user and assistant messages are searched.
- 05Ranked resultsThe top ten sessions by match count, each with its slug, project path, timestamps and a claude --resume command to copy.
Install
From the Claude Code plugin marketplace:
/plugin marketplace add akzarma/claude-find-conversation
/plugin install find-conversation@akzarma-toolsUse
Type the command followed by what you remember:
/find-conversation deployment vercel
/find-conversation database migration
/find-conversation React optimizationEach result comes with its resume command, ready to copy and paste.
In short
- Binary pre-filtering before any JSON parsing
- Path decoding that rebuilds real project paths from encoded folder names
- Noise filtering, so only real conversations are searched
- Ranked results with match counts and resume commands
- Pure Python 3.8+, no dependencies, macOS and Linux, MIT licensed