Every AI coding agent forgets the same things you had to work out twice. The brain is a plain-folder memory store they all read before work and write to after it. One JavaScript file installs it. No dependencies, no database, no network.
One folder every agent in your project reads and writes. What one learned, the next one knows.
One file per entry. Read it with a text editor, grep it, commit it, diff it. Nothing to lock.
Decisions and gotchas live outside the conversation, so summarising the chat cannot erase them.
Full text across titles, tags and bodies, filtered by project and type, plus an HTTP API.
A local web UI: every entry as a card, filtered by project. Add and edit without touching a file.
brain doctor catches empty titles, unregistered projects and dangling references, and exits non-zero.
node brain-install.js
# options
--to <dir> install into a different folder
--name <name> name this brain (gives it its own port)
--keep-scope keep whatever scope your registry already has
--force install over an existing brain
It refuses to clobber an existing brain without --force, and it never
overwrites an existing AGENTS.md. It writes the agent instructions as a
separate suggested file instead so you can read them before adopting them.brain/ folder into your project.
It works exactly as it ships. The installer just saves you writing the files out.# find something an agent already worked out
./brain/brain search "build command"
# write something down so nobody re-derives it
./brain/brain add --scope myproject --type knowledge \
"Build is vite, not webpack" "Run npm run build. Webpack config is a leftover."
# everything about one project, and is the corpus healthy?
./brain/brain list --scope myproject
./brain/brain doctor
# browse it, and open a local UI
./brain/brain serve
| Type | What goes in it |
|---|---|
knowledge | A durable fact, established by evidence. "This API rate-limits at 60/min." |
memory | What happened: a session outcome, current state, an open thread. |
decision | A choice and its reason. The reason is the part nobody can re-derive. |
note | Everything else. |
git diff shows every change an agent made.