big-brain is designed to solve a common problem: every AI tool maintains its own private user memory, and they do not share it with each other. big-brain returns ownership of memory to the user—your notes, projects, and tasks are stored as plain Markdown files in a folder you own, and any MCP-capable AI client can access them.
Key capabilities
- Plain Markdown storage: No database, no lock-in. You can open the vault in Obsidian, search it with grep, or put it under git management.
- MCP server: Provides 24 tools covering search, capture, daily logs, projects, tasks, link graphs, related notes, and vault health checks.
- Command-line interface: Provides
big-brain status、big-brain capture、big-brain tasksand other commands. - Skills: Provides
/brain、/capture、/weeklyskills for Claude Code, Codex, and Antigravity, installable with a single command. - Projects as units of work: Each project is a file containing goals, checkbox tasks, and a run log.
- Deterministic retrieval first: Supports fuzzy full-text search with title weighting,
[[wikilink]]backlinks, tags, and frontmatter filtering. No API key required, and it works offline. - Optional local semantic search: When
embeddings.enabledis enabled, a small model runs on-device via@huggingface/transformersto add semantic-based matching, fused with full-text search using Reciprocal Rank Fusion. Paraphrases can match, exact terms still work, and data never leaves your machine. It also powersrelated_notes. - Optional Git auto-commit and push: When
git.autoCommitis enabled, any tool writing a note commits only the files it touched; addinggit.autoPushpushes in the background to keep other machines in sync. Git failures do not block saving. - Safe editing: Writes are atomic and locked per note, preserve line endings, never write inside code blocks or frontmatter, refuse to rewrite unparseable frontmatter, and refuse to write to paths that resolve outside the vault (for example, via symlinks).
Usage
Quick start
Run npx @jzhao234/big-brain setup to install big-brain, create a vault at ~/brain , connect Claude Code, Codex, and Antigravity (if installed), and print configuration you can paste into Claude Desktop or Cursor. You can pass a folder path to use a different vault, for example your Obsidian vault:npx @jzhao234/big-brain setup ~/Obsidian. The command is safe to run repeatedly, and--dry-run previews the plan without making any changes.
Then restart the assistant and ask "what am I working on?" or "capture: call the dentist on Friday".
Connecting AI tools
For local clients, run big-brain-mcp. The vault is selected via the --vault <dir> or BIG_BRAIN_VAULT environment variable.
- Claude Desktop / Cursor / other MCP clients: add to the MCP configuration (e.g.
claude_desktop_config.json). Use absolute command paths, because GUI apps launch without the shell's PATH. - Other local MCP clients: any client that uses MCP over stdio works. For clients that don't support MCP, the CLI's
--jsonoutput makes the vault scriptable. - Remote MCP preview: big-brain can expose the same 24 tools through an authenticated Streamable HTTP endpoint. It binds to localhost by default and checks
Authorization: Bearer <token>before parsing JSON. Request bodies are capped at 1 MB. Requests without an Origin are allowed; requests with an Origin must exactly match--allowed-origins/BIG_BRAIN_MCP_ALLOWED_ORIGINS, which defaults to empty and rejects browser origins. It should be placed behind an HTTPS reverse proxy or a secure tunnel, and never expose the plain HTTP listener directly. The static token is the first self-hosted transport milestone, not an OAuth implementation, so browser connectors that require OAuth still need an OAuth-capable gateway. - Browser fallback (claude.ai / ChatGPT): the zero-infrastructure option is to connect the AI to the vault's GitHub repository so it can read Markdown directly and write where the connector allows (some GitHub connectors are read-only; you also lose the compute overview/search/task tools, since this is raw file access).
Loading and saving
The assistant loads a small amount of relevant content on demand and saves small snippets as you work. You just talk to it.
- Load: locate at the start, pull details on demand.
- Save: save as decisions, progress, and ideas happen (append-first; never destructive).
- Review:
/weeklyruns a guided review: triage the inbox, prune projects, reschedule overdue tasks, fix broken links, and consolidate.big-brain doctorflags summaries that lag behind the log, bloated notes, and near-duplicates; the review proposes summary refreshes, log pruning, merges, and stale-fact fixes for your approval.
Session context
big-brain context prints what the agent should know in the startup directory, so a session-start hook can pass it along. Output is capped at maxChars(default 4000) and ends with a pointer to the vault.--format claude|codex|agy wraps the text as that agent's session-start hook output; in these formats the command reads the hook's JSON from stdin to get the working directory, and any problem prints nothing and exits 0, so the hook never breaks the session.
Agent configuration files
Your coding agent's personal settings (skills, global instructions, hooks, status line, some settings) can also live in the vault, so every machine gets the same setup with one command, and changes on one machine reach the others via git.
- Link, don't copy: edit a skill or script in the vault, and every machine has it after
git pull.~/.claude/~/.codexis never touched (other skills, history, credentials). - Don't replace unmanaged content: unless you explicitly ask. Files in the way are reported;
--replacemoves them to a timestamped backup under~/.local/state/big-brain/backupswith a restore manifest, then links the vault's. - Three-way merge for settings: big-brain remembers what it applied on each machine: values you edited locally are reported, not overwritten (
--replaceuses the vault's); values you never touched follow the vault; keys deleted from the vault are removed only if not edited. Claude hooks are matched by event, matcher, and command, so changing a timeout updates the hook rather than registering it twice. TOML is edited line by line (comments, trust entries, and hook hashes remain unchanged), and any edit that would change more than the managed keys is rejected. - Plan before writing, roll back on failure: every link and setting change is validated before the first write; a rejection leaves the machine unchanged, and if a step fails midway, completed steps are undone.
- save rejects known secrets and state files: entire settings files,
.credentials.json、auth.json、.envfiles, history, sessions, caches, and databases are rejected; use--settingto save individual settings. It does not inspect content, so review the files you save and the--settingvalues.
One skill for all agents
Claude Code, Codex, and Antigravity read the same type of SKILL.md, but each has subtle differences. big-brain lets you write a skill once in agents/skills/<name>/ and then have big-brain agents render write the respective version for each agent.
When to use
- You use multiple AI assistants (such as Claude Code, Cursor, Codex) and want them to share the same context and memory.
- You already use Obsidian to manage notes and want AI assistants to read from and write to your existing vault directly.
- You want full control over your AI memory data, stored as plain text for easy version control and migration.
- You need offline retrieval capability, or want to enable local semantic search without sending data to the cloud.
Limitations
- Requires Node 22.12 or later.
- Currently pre-1.0; used in daily work, but minor versions may still change behavior.
- The base installation does not include semantic search or its native dependencies; you need to install an additional add-on and set
embeddings.enabledto true. - The remote MCP preview uses static tokens, not an OAuth implementation; browser connectors that require OAuth still need an additional gateway.
- The browser fallback (via the GitHub connector) may be read-only and loses the compute overview/search/task tools.
savedoes not inspect file contents, so saved files and--settingvalues need to be reviewed by the user.- The documentation lists edge cases not covered by write safety (see
docs/vault-spec.md)。