It re-reads the same files, works out again the decision you made last Tuesday and asks a question you already answered. Scrollback is not memory: it dies at compaction and again when the session ends. os-brain is the memory that survives both. A new session opens with a short brief, like this one. Then, as you work, your agent is reminded only of what it learned that bears on the task in front of it. Months of memory and the context stays light.
One binary. SQLite underneath. No daemon and no account.
No telemetry and no update check. MIT licence.
# the orchard project's brief, trimmed now 2026-11-20 09:12 GMT (Friday morning) git main · f265c12 billing: void keeps number · clean brain LOCAL FILE · brain/brain.db ## HOW THEY WANT TO WORK #3 [preference] run the tests before every commit, without asking said so twice ## GUARDRAILS (binding, always shown) #2 [constraint] [never verified] No schema change ships without a migration that reverses it #1 [constraint] [never verified] An invoice number is never reused, not even after a void ## DUE NOW [ ] #1 rotate the payment webhook secret before the next billing run (due 2026-11-20 09:00, 12m ago) ## WHERE THINGS LIVE global 4 · deploy 1
Your agent opens every session knowing what you decided, what broke last time and how you like to work. You stop answering the same question twice.
Correct it and the old version stops coming back. Ask in last month's wording and you get this month's answer, with a line saying which fact it replaced.
Keep your projects in one shared store and what you work out in one repository can be found from any other, whichever agent you have open. A project can also stay out of it.
The brief is ranked and cut to 6000 bytes by default (about 1.5k tokens), with the binding rules first. Your agent asks the brain before it searches files, so it stops paying to work out again what an earlier session already found.
Say once how you like to work and what you never want. Every session starts with it, so you stop repeating yourself at the top of every chat.
Axioms bind every project on the machine. A repository you created this morning opens its first session already knowing your ways of working.
Each project keeps its memories in brain/brain.db, a SQLite file readable only by you and listed in .gitignore so it never lands in the repository. There is no server to run and no account to make.
os-brain never calls home. There is no telemetry and no update check. The only network code in the binary serves the web UI and the MCP server. Both run only when you start them. What this site and the binary record.
The code is on GitHub under the MIT licence.
Free and open source, for one developer on as many projects as you like. You need Go 1.26.4 or newer.
$ go install github.com/chka/os-brain/cmd/os-brain@latest $ cd ~/projects/yours && os-brain init