Search Claude Code History: Find How You Fixed It Last Time in Milliseconds
TL;DR: every fix you made with Claude Code is already saved on your computer, but there is no good way to search it. Brain reads that history locally and makes it searchable. On its site it reports 7 ms to search 5,000 s
TL;DR: every fix you made with Claude Code is already saved on your computer, but there is no good way to search it. Brain reads that history locally and makes it searchable. On its site it reports 7 ms to search 5,000 sessions, 14 of 14 test secrets hidden, and 0 bytes uploaded.
If you searched search claude code history, you remember solving this exact bug before and cannot find the session. Here is the quickest way.
Start it
npx -y @flisk-sh/brain serve
That opens a viewer at http://localhost:4711, available only on your own computer. It works with Node or Bun.
Or use the command line
npx -y @flisk-sh/brain list 10 # latest sessions
npx -y @flisk-sh/brain search token fix # find an old fix
(From a checkout, run node bin/brain.mjs list 10 and so on.)
What it reads
Brain reads ~/.claude/projects, never changes it, and hides keys and tokens in what it shows. Nothing is uploaded unless you ask.
Share one session on purpose
npx -y @flisk-sh/brain share latest
This first shows what would be shared. Add --yes to upload and get a link at brain.flisk.si/s/ID. The link is unlisted, limited to 5 MB, and deletable with the key printed at upload.
The numbers, and what they mean
The site says 7 ms to search 5,000 sessions. That is the project's own benchmark on its own data, so treat it as a ballpark for your machine. The "14 of 14 secrets hidden" is a test with 14 planted secrets, not a guarantee that nothing sensitive ever shows. Check a session before you share it.
Limits
It only reads Claude Code history for now. Accounts, teams and other agents such as Codex or Cursor are not built yet.
Source: github.com/flisk-sh/brain.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.