Documentation

Everything, in the
order you'll need it.

One binary. Your memories live in a SQLite file on your own machine. Your agent reaches them in one of three ways: the session hooks, plain shell commands or MCP. Start with install. Read the memory model once, because it explains every time the brain says no. Keep the CLI reference open.

Start here

Install and the first hour

Get the binary, create a brain, check the hooks really ran and fill the brain from a project that already has months of history.

Read →
The model

How memory works here

Types, how fast each one fades, how results are ranked, scopes, confidence and trust, corrections, commit stamps and review dates. The one page worth reading top to bottom.

Read →
Reference

Every command, every flag

Every command, grouped by how often you use it, with the flags that matter and what each refusal protects. Checked against the binary, not written from memory.

Read →
Surface

MCP, stdio and HTTP

Nearly every command as a tool. Client configs that work, the three inputs that have no CLI flag and the one setting that keeps your memories from being filed under another project's name.

Read →
Surface

Your coding agent

What each agent supports (session start, every message, session end and MCP), tested on a clean machine against that agent's own release. The exact files to write for each one.

Read →
Surface

The brain from your phone

Your brain in the Claude app, through your own Tailscale Funnel. The binary handles the sign-in the app asks for. What it costs and what has to stay switched on.

Read →
Surface

The web UI in the binary

ns-brain ui. No Node and nothing to install. It has no database code of its own: every page runs the same command you would type, so its results always match the CLI.

Read →
Many projects

One store, several projects

A file per project or one shared file, how a project opts out, notes between projects, axioms and house standards. Also why nothing that arrives this way gets to give orders.

Read →
Beyond memories

Tasks, measures, the user model

What is due and when, numbers that only make sense tracked over time and the optional extras that stay hidden until you use them.

Read →
When it is wrong

Troubleshooting

The brief did not show up. Recall finds nothing. Memories under the wrong project name. doctor, map, review and how to read a refusal.

Read →
Pick by situation

What to read,
for what.

Most people use one machine as one developer. For them the CLI page covers everything. The rest of these pages are for when you add another agent, your phone or a second project.

SituationWhat you runPage
One machine, one developerThe CLI, wired to session hooksInstall
An agent that cannot run shell commandsMCP over stdioMCP
The Claude app on your phone, away from the deskThe MCP server published on your own tailnetPhone
Six projects and one set of habitsA shared store, with per-project opt-outSharing
For the agent, not for you

Two documents ship
inside the binary.

ns-brain init writes both into the brain directory, brain/, so your agent already has them without downloading anything. It does not edit your CLAUDE.md. Both are on this site too.

HOWTO.md is the how: which command to use, what each flag changes and what the output looks like. BEST-PRACTICES.md is the when: what is worth saving, what the code or git already says (so saving it is noise) and how to write a title you can still find months later.

If an agent landed here because somebody told it install https://brain.fightclub.pro/, the short version is llms.txt and the full steps are in install.md. Neither needs the HTML.