Skip to main content

brain-wiki

brain-wiki

One long-term memory for all your AI agents, kept as plain Markdown that you own.

CI PyPI Python License

Your agents (Claude Code, Codex, Antigravity, Cursor, OpenClaw, or any MCP client) share one brain: a folder of Markdown notes they search before answering and keep up to date as they work. It runs on your machine, needs no server or API keys, and opens in Obsidian.

  • Plain files. A note is an ordinary Markdown page: metadata in frontmatter, facts and links in the body. Read, edit, and diff the brain like any folder, or adopt an Obsidian vault as it is.
  • Knows what changed. Search returns a note together with the note that replaced it.
  • Agents write notes directly. They edit the Markdown, then brain validate checks it; brain commit (by hand or on a schedule) keeps every edit in git.
  • No network calls. Your own agent does the thinking; brain-wiki stores and checks.

Quick start

Needs Python 3.11+ and uv.

1. Install.

uv tool install brain-wiki

2. Set it up.

  • Recommended: paste this into your agent (Claude Code, Codex, Antigravity, Cursor, OpenClaw, ...):

    Set up brain-wiki by running brain setup --guide and following it.

  • Or, in a terminal: run brain setup, which asks the same questions step by step.

Either way, setup explains each choice (where the brain lives, which agents to connect, what each may do) and shows every change before making it.

3. Use it in your agent.

Remember that I prefer pnpm over npm, and that our team ships on Thursdays.

What did we decide about the database migration last week?

Maya moved to the platform team. Update her note.

Consolidate my brain.

4. See your brain. brain viz opens a local 3D map of your notes, and brain obsidian opens the brain's folder as a vault in Obsidian. With several brains, both ask which one, or name it: brain viz work.

How it works

agents ──edit + validate──► notes (topics/*.md) ◄── you, in Obsidian
  │  ▲                            ▲       │
  │  └──── search · read ─────────┼───────┘
  └─log─► inbox ──consolidate─────┘       brain commit ──► git

Agents search and read the brain, and write what they learn straight into topic notes, then validate them. Something they cannot place yet goes to an inbox, which your agent folds into notes when you ask. In a git brain, brain commit snapshots direct edits (run it by hand, or schedule it with brain schedule add commit), and brain undo reverses brain-wiki's own changes.

Status

Alpha: expect breaking changes before 1.0. Known limits:

  • No access scopes inside a brain: every connected agent reads all of it. Keep work and personal notes in separate brains.
  • Maintenance runs when you ask; only brain commit runs on a schedule.
  • To use a brain on several machines, push it to a git remote; do not sync one .git folder with a sync tool.
  • Chat apps that need a remote MCP server (ChatGPT, claude.ai, the Gemini app) are not supported yet.

Learn more

Getting started · Agents · Maintenance · Import a vault · Privacy · Reference · Design · Changelog

Contributing · Security · Apache 2.0 (visualizer notices)

Metadata

Release files for brain-wiki 0.3.3

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.3.3
File Size Uploaded Provenance Actions
brain_wiki-0.3.3.tar.gz 791.9 kB With provenance Details for brain_wiki-0.3.3.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / brain_wiki-0.3.3.tar.gz

Download URL brain_wiki-0.3.3.tar.gz
Size 791.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dad184e87fad0866ff792bd2ee56dccd375905830a32645140a30cfb1fc68d78
BLAKE2b-256 checksum
How to use checksums
850b74ff0e284e2336efdcc7eb75596f845495a77023a8cb74308937018d1d32
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 19, 2026.

Transparency log

Release files / brain_wiki-0.3.3-py3-none-any.whl

Download URL brain_wiki-0.3.3-py3-none-any.whl
Size 562.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ee698a9c204970dcb0fdd5b3a1262c0dcf153b590b535350d2e1395588943b6
BLAKE2b-256 checksum
How to use checksums
d3406c3f57c2422e8c579048d04410b18b1d4d1d0ad846e7ede560a751b5bca1
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 19, 2026.

Transparency log

Security for brain-wiki 0.3.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for brain_wiki-0.3.3.tar.gz

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 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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