TL;DR: a Claude Code session ends and the next one starts without remembering it. Instead of building a separate memory database, you can search the history Claude Code already keeps on your disk. Brain does that locally and also ships a Claude Code skill.
If you searched claude code memory system, you want your agent, or you, to reuse what worked last time. There are two layers: notes you write on purpose, and the raw history you can search later. Brain covers the second one.
Memory you write vs history you search
| Written memory (notes, CLAUDE.md) | Searchable history | |
|---|---|---|
| Source | What you decided to keep | Every session, as it happened |
| Cost | You must curate it | Already on your disk |
| Good for | Rules and preferences | "How did I fix this last time?" |
They complement each other. Use notes for rules, history for the fix you cannot quite recall.
Start Brain
npx -y @flisk-sh/brain serve
The viewer runs on http://localhost:4711, only on your computer. Brain reads ~/.claude/projects, never changes it, and hides keys and tokens.
Search from the terminal
npx -y @flisk-sh/brain search token fix
The Claude Code skill
The repo includes a skill at skill/brain/SKILL.md. Installed, it lets Claude search your past sessions itself. Read the skill file before installing, as you would for any skill that can read your history.
Privacy
Nothing leaves your computer unless you run the share command, which shows what would be shared first. On the site, Brain reports 0 bytes uploaded and 14 of 14 test secrets hidden, from the project's own test.
Limits
It searches Claude Code history only. Other agents (Codex, Cursor), accounts and teams are not built yet. Searching old sessions does not make Claude "learn": it gives you, or the skill, a way to look things up.
Source: github.com/flisk-sh/brain.
Top comments (0)