This release is a pre-release and may not be stable for production use.
brain-wiki
One long-term memory for all your AI agents, kept as plain Markdown that you own.
brain-wiki gives Claude Code, Codex and the ChatGPT desktop app, Antigravity, OpenClaw, Cursor, and any MCP client one shared brain: a folder of Markdown notes they search before answering, cite when they rely on it, and keep up to date as they work. It runs on your machine, needs no server or API keys, and the brain opens in Obsidian.
Getting started · Connecting agents · User guide · Design · Changelog
Why brain-wiki
- Plain files you own. A brain is a folder of Markdown notes you can read, edit, diff, back up, and sync like any other folder. Bring an existing Obsidian vault as it is.
- Every agent, one brain. What you teach one agent, the others know. A short instruction block tells each agent the brain is there, and a briefing gives it your standing rules and what the brain holds.
- Answers that know what changed. Notes connect through typed relations
(
part_of,depends_on,conflicts_with,supersedes,related_to). When a note has been replaced or contradicted, search returns the note that qualifies it together with it. - Safe changes. Agents log what they learn to an inbox and fold it into
notes through small validated operations. When they correct a note
directly,
brain checkrefuses lost or reworded facts before recording it. Every change is recorded, committed to git if the brain is a repository, and can be undone. - Your agent does the thinking. Consolidation and harvesting run inside the agent you already use. brain-wiki makes no network calls of its own.
Get started
brain-wiki needs Python 3.11 or newer with SQLite FTS5, which the python.org, uv, Homebrew, and most Linux builds include, and uv.
1. Add brain-wiki to your agent.
| Agent | Install the plugin |
|---|---|
| Claude Code | /plugin marketplace add brain-wiki/brain-wiki, then /plugin install brain-wiki@brain-wiki |
| Codex / ChatGPT desktop | codex plugin marketplace add brain-wiki/brain-wiki, then enable brain-wiki in the plugin browser |
| Antigravity | agy plugin install https://github.com/brain-wiki/brain-wiki |
| OpenClaw, Cursor, other MCP clients | Install the command, then brain connect openclaw, brain connect cursor, or brain connect generic --print (see below) |
No plugin yet, or an agent not listed? Ask any agent that can run commands:
Install brain-wiki with
uv tool install brain-wiki, then runbrain setup --guideand follow it.
2. Ask your agent to set it up.
Set up brain-wiki.
The brain-setup skill (or the guide brain setup --guide prints, which
holds the same steps) explains each choice, lets you decide, and shows every
change before making it:
- where your brain lives (a new folder, or an Obsidian vault adopted in place) and whether to track it with git;
- which other agents on this machine to connect;
- what each agent may do: log what it learns and correct notes (on by default), consolidate the inbox, and propose rules that you confirm;
- whether to turn past sessions into episodes (harvest).
3. Use it.
Remember that Lumen keeps attachments next to their notes, because Obsidian expects relative paths.
What did we decide about attachments?
Consolidate my brain.
From a terminal
uv tool install brain-wiki # or: pipx install brain-wiki
brain setup # step by step: create a brain, connect your agents, harvest
brain log "Lumen keeps attachments next to their notes; Obsidian expects relative paths."
brain search "attachments"
brain viz # a local 3D map of the brain
Or do the steps yourself: brain doctor (checks SQLite, your brains, and
the agents on this machine), brain init ~/brains/personal --name personal --git, and brain connect claude-code (or codex, antigravity, openclaw,
cursor; try --dry-run first).
Keep brains outside your code repositories. Agents may log and correct
notes by default; brain setup asks whether each app may also consolidate
and propose rules, or grant it yourself:
brain agents grant claude-code consolidate propose_rules
Marketplace installs start the server with uvx. With the command
installed, brain connect starts it at once, and --uninstall reverses it.
How it works
agents ──log · harvest────────────────────────► inbox/episodes/
│ ▲ │
│ │ │ consolidate, when you ask:
│ │ │ your agent proposes ops,
│ │ │ brain-wiki validates them
│ │ ▼
│ └── orient · search · read · neighbors ─── topics/**/*.md ◄── you, in Obsidian
│ (with the notes that supersede or conflict) ▲
└── edit, then brain check ─────────────────────────────┘
- Agents write in two ways. They log what they learn as episodes in
inbox/episodes/, andbrain harvestadds more from their past sessions. To fix a note, such as a person's new role, an agent edits the file and runsbrain check, which refuses deleted or reworded facts. - Consolidation runs in your agent, when you ask. brain-wiki packages
the pending episodes, your agent proposes small operations (add a claim,
supersede one, link two notes, create a note), and brain-wiki validates
and applies them, then moves the episodes to
archive/episodes/. brain-wiki never consolidates on its own. - Every change is a run. Consolidation and checked edits are locked,
validated, logged in
log.md, committed to git if the brain is a repository, and reversible withbrain undo. - The brain is a folder:
topics/holds curated notes, one folder per topic and nested to any depth, each with a hub (index.md);rules.mdholds standing rules that only you add;AGENTS.mdtells agents that only read files how to use the brain. - The index is a SQLite FTS5 database outside the brain, kept current as files change and rebuilt from the brain when it is missing.
- Agents connect through an MCP server with thirteen tools, a plugin with three skills, and an instruction block that tells them when to use the brain.
| Agent | Tools | Instructions | Harvest |
|---|---|---|---|
| Claude Code | yes | yes | yes |
| Codex / ChatGPT desktop | yes | yes | yes |
| Antigravity | yes | yes | yes |
| OpenClaw | yes | yes | no |
| Cursor | yes | yes | no |
| Any MCP client | yes | printed | no |
Documentation
| Goal | Start here |
|---|---|
| Install and create a brain | Getting started |
| Connect agents and harvest | Agents |
| Consolidate, review, lint, and undo | Maintenance |
| Bring an existing vault | Import |
| What agents may read and change | Privacy and safety |
| Commands, MCP tools, and files | Reference |
| How it is built | Design · Proposals |
Status
brain-wiki is alpha software at its first release. Its known limitations:
- There are no privacy levels inside a brain: every agent that may use a brain reads all of it. Keep separate parts of your life in separate brains.
- Maintenance runs when you ask your agent; there is no scheduler.
- Chat apps that need a remote MCP server (ChatGPT, claude.ai, the Gemini app) are not supported yet.
Plans for each are in docs/proposals.
Contributing
git clone https://github.com/brain-wiki/brain-wiki.git
cd brain-wiki
uv sync
uv run scripts/check.py # everything CI runs
See CONTRIBUTING.md. The visualizer's source is in brain-wiki-viz.
Security
Report vulnerabilities privately, as described in SECURITY.md.
License
Apache License 2.0. The bundled visualizer's third-party licenses are in THIRD_PARTY_NOTICES.txt.
Metadata
Release files for brain-wiki 0.1.0.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brain_wiki-0.1.0.dev1.tar.gz | 717.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brain_wiki-0.1.0.dev1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / brain_wiki-0.1.0.dev1.tar.gz
| Download URL | brain_wiki-0.1.0.dev1.tar.gz |
|---|---|
| Size | 717.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70d6be82fac7214e4b7f0bd365d4ebd2cd805501733b40d333c48b2a3e2bc599
|
|
BLAKE2b-256 checksum How to use checksums |
2e6d4f9e8be6c21c0075f3ab8e97dcbf320eea0954137de54a26460834160b9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logRelease files / brain_wiki-0.1.0.dev1-py3-none-any.whl
| Download URL | brain_wiki-0.1.0.dev1-py3-none-any.whl |
|---|---|
| Size | 562.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6aa0450382fbc33bd3c93ca883688e126e037ca3aeec052cc0fd3847231fe597
|
|
BLAKE2b-256 checksum How to use checksums |
f9090137adc1a9ea66238a757e9375ff215d5f1eead4d40d0d517a8855315428
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency log