Skip to main content
Pre-release

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.

CI PyPI Python License

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 check refuses 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)

2. Ask your agent to set it up.

Set up brain-wiki.

The brain-setup skill 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 doctor                    # checks SQLite, your brains, and the agents on this machine
brain init ~/brains/personal --name personal --git
brain connect claude-code       # or codex, antigravity, openclaw, cursor; try --dry-run first
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

Keep brains outside your code repositories. Agents may log and correct notes by default; to let one consolidate or propose rules, give it a profile in the brain's brain.toml:

[agents.claude-code]
write = ["episodes", "edit", "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/, and brain harvest adds more from their past sessions. To fix a note, such as a person's new role, an agent edits the file and runs brain 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 with brain 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.md holds standing rules that only you add; AGENTS.md tells 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.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brain-wiki 0.1.0.dev0
File Size Uploaded
brain_wiki-0.1.0.dev0.tar.gz 671.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brain-wiki 0.1.0.dev0
File Interpreter ABI Platform
brain_wiki-0.1.0.dev0-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / brain_wiki-0.1.0.dev0.tar.gz

Download URL brain_wiki-0.1.0.dev0.tar.gz
Size 671.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7d0ed0c515c2003eee3e2864c3ad6022bfd671ec4746c96268f5f11b413594b5
BLAKE2b-256 checksum
How to use checksums
fb79e6bb8cb15756c70d5198e4a3e422b4d1037e6ae524daa1944529f9a21ef5
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 14, 2026.

Transparency log

Release files / brain_wiki-0.1.0.dev0-py3-none-any.whl

Download URL brain_wiki-0.1.0.dev0-py3-none-any.whl
Size 535.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
248c9f1fd3be06674471af247326570b95d76bf6addb67dc1f92a4eb0f7693d4
BLAKE2b-256 checksum
How to use checksums
7e18537a58f522e6ca5dbb37087431b81757efe7411ae5c7c492bbb37b48f3c8
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 14, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.1

2 release files

0.1.0

2 release files

This release

0.1.0.dev0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page