SuperAPIAI Directory

big-brain

github.com · Other AI tools

big-brain is an open-source tool that provides unified memory for multiple AIs. It stores your notes, projects, and tasks as plain Markdown files in a local folder (either a new vault or an existing Obsidian vault), and through the MCP protocol lets AI clients such as Claude Code, Claude Desktop, Cursor, and Codex search, read, record, and update this content. This way, no matter which AI model you switch to, your context travels with you, and you no longer need to repeatedly provide background information to different assistants. It offers 24 MCP tools, a command-line interface, and skills for Claude Code, Codex, and Antigravity (/brain, /capture, /weekly), supports deterministic full-text search, optional local semantic search, optional Git auto-commit and push, and emphasizes write safety. It requires Node 22.12 or higher and is currently a pre-1.0 version.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

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 tasks and other commands.
  • Skills: Provides /brain、/capture、/weekly skills 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.enabled is enabled, a small model runs on-device via @huggingface/transformers to 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 powers related_notes .
  • Optional Git auto-commit and push: When git.autoCommit is enabled, any tool writing a note commits only the files it touched; adding git.autoPush pushes 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 --json output 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:/weekly runs a guided review: triage the inbox, prune projects, reschedule overdue tasks, fix broken links, and consolidate.big-brain doctor flags 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 / ~/.codex is never touched (other skills, history, credentials).
  • Don't replace unmanaged content: unless you explicitly ask. Files in the way are reported;--replace moves them to a timestamped backup under ~/.local/state/big-brain/backups with 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 (--replace uses 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、.env files, history, sessions, caches, and databases are rejected; use --setting to save individual settings. It does not inspect content, so review the files you save and the --setting values.

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.enabled to 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.
  • save does not inspect file contents, so saved files and --setting values need to be reviewed by the user.
  • The documentation lists edge cases not covered by write safety (see docs/vault-spec.md)。
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools