
Big Brain
io.github.jzhao234由 GitHub 帳號 jzhao234 發布v0.3.2更新於 Oct 24, 2026
Plain-markdown second brain for you and your AI: notes, projects, tasks, search, links.
發布方自己的服務:BrainDog
概覽
本機 MCP 伺服器,把一個純 markdown 筆記資料夾變成助理可搜尋、閱讀、記錄並維護專案與任務的共用第二大腦。
- 可以做什麼
- 依路徑、標題、別名、資料夾、類型或標籤搜尋、閱讀與瀏覽筆記,支援全文檢索與篩選
- 寫入筆記:新增、附加、取代內文、修改 frontmatter、非破壞性封存,以及快速收集到收件匣
- 處理每日筆記與帶時間戳記的工作日誌
- 管理專案與核取方塊任務:列出、建立、改狀態、新增、完成、改期、調整優先順序、重開或取消
- 檢視連結關係:出鏈、反向連結、附理由的相關筆記、標籤統計與儲存庫健康檢查
- 用總覽掌握進行中的專案、到期任務與近期筆記,並提供 orient、weekly-review、process-inbox 三個提示詞
- 適用情境
- 適合想讓 Claude Code、Claude Desktop、Cursor、Codex 等不同 MCP 用戶端共用一份持久、與模型無關的記憶時使用,尤其是你已有 Obsidian 儲存庫,或希望筆記、專案與任務以自己擁有的純 markdown 保存,而不是留在某家廠商的私有記憶裡。
- 執行需求
- 透過 npx 或全域 npm 安裝在本機以 stdio 執行,需要 Node 20 或更新版本。儲存庫資料夾由 BIG_BRAIN_VAULT 環境變數或 --vault 參數指定,且必須已存在(可直接使用現有 Obsidian 儲存庫,或用 init 指令產生)。不需 API 金鑰;可選的本機語意搜尋需額外安裝 transformers 套件並在儲存庫設定中啟用。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Big Brain,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
big-brain 🧠
One memory for every AI assistant you use: your notes, projects, and tasks, kept as plain markdown you own.
Each AI tool keeps its own private memory of you, and none of them share it. big-brain flips that around. Point it at a folder of markdown (a new vault, or the Obsidian vault you already have) and Claude Code, Claude Desktop, Cursor, Codex, or any other MCP client can search it, read it, capture into it, and keep your projects and tasks current. Switch models whenever you like; your context comes with you.
Replay of a real Claude Code conversation with a demo vault (transcript, recorded by scripts/demo-ai.mjs); timing is illustrative.
60-second start
That one command installs big-brain, creates a vault at ~/brain, connects Claude Code, Codex, and Antigravity (agy) if you have them (MCP server plus the /brain, /capture, and /weekly skills), and prints the config to paste into Claude Desktop or Cursor. Pass a folder to use a different one, such as your Obsidian vault: npx @jzhao234/big-brain setup ~/Obsidian. It's safe to run again (anything already set up is left alone), and --dry-run shows the plan without changing anything.
Then restart your assistant and ask "what am I working on?" or "capture: call the dentist on Friday". Other clients, and browser chats like claude.ai and ChatGPT, are covered in Connect your AI tools.
Prefer to do it by hand? These three lines are what setup does for Claude Code:
Already use Obsidian? big-brain reads an existing vault as is: no config file, no migration, and nothing is written until you ask for a change (setup writes nothing into it either). Add a brain.config.json later to map your folder names, one entry per folder (for example, "folders": {"projects": "Projects", "inbox": "Inbox"}), so projects and captures land where you keep them. See docs/vault-spec.md.
What you get
- Plain markdown files. No database and no lock-in. Open the vault in Obsidian, grep it, or put it in git.
- An MCP server with 23 tools: search, capture, daily logs, projects, tasks, the link graph, related notes, and a vault health check.
- A CLI for humans:
big-brain status,big-brain capture,big-brain tasks, and more. - Skills for Claude Code, Codex, and Antigravity (
/brain,/capture,/weekly), installed with one command. - Projects as the unit of work. Each project is one file with a goal, checkbox tasks, and a running log.
- Deterministic retrieval first: fuzzy full-text search with title boosting,
[[wikilink]]backlinks, tags, and frontmatter filters. No API keys, and it works offline. - Optional local semantic search. Turn on
embeddings.enabledand a small on-device model (via@huggingface/transformers) adds meaning-based matches, fused with full-text search by Reciprocal Rank Fusion. Paraphrases match, exact terms still count, and nothing leaves your machine. It also powersrelated_notes. See docs/vault-spec.md. - Optional git auto-commit and push. Turn on
git.autoCommitand every note write from any tool commits only the files it touched; addgit.autoPushto push in the background so your other machines stay in sync. A git failure never blocks a save: if the commit fails the note is still saved, and if the push fails the commit stays local until the next push. - Edits that don't damage notes. Writes are atomic and locked per note, keep each note's line endings, never land inside code blocks or frontmatter, refuse to rewrite frontmatter they can't parse, and refuse to write anywhere that resolves outside the vault (such as through a symlink). docs/vault-spec.md lists the edge cases these don't cover.
Requires Node 20 or newer. big-brain is pre-1.0: it's used daily, but minor versions may still change behavior; see the changelog.
Install
That puts three commands on your PATH: big-brain (the CLI), big-brain-mcp (the MCP server over stdio), and big-brain-mcp-http (the remote preview below). To try it without installing, npx @jzhao234/big-brain status --vault ~/brain works too.
The base install leaves out semantic search and its native dependencies. To enable local embeddings, install the add-on into the same place, then set embeddings.enabled to true in brain.config.json:
To work on big-brain itself, install from source instead: git clone https://github.com/jzhao234/big-brain.git && cd big-brain && npm install && npm run build && npm link. See CONTRIBUTING.md.
Quickstart
Then connect an AI tool (below) and, optionally, seed the vault from your existing AI history.
Connect your AI tools
For local clients, run big-brain-mcp. The vault is chosen by --vault <dir> or the BIG_BRAIN_VAULT environment variable.
Claude Code
Antigravity CLI (agy)
Claude Desktop / Cursor / other MCP clients: add to the MCP config (e.g. claude_desktop_config.json). Use an absolute command path: GUI apps are launched without your shell's PATH, so a bare big-brain-mcp may not resolve (run which big-brain-mcp to get it).
Other local MCP clients: any client that speaks MCP over stdio works the same way. For clients without MCP, the CLI's --json output makes the vault scriptable.
Remote MCP preview: Big Brain can expose the same 23 tools through an authenticated Streamable HTTP endpoint:
It binds to localhost by default and checks Authorization: Bearer <token> before parsing JSON. Bodies are capped at 1 MB (larger requests get HTTP 413 with a JSON-RPC error). Requests without Origin are allowed; requests with one require an exact match in --allowed-origins / BIG_BRAIN_MCP_ALLOWED_ORIGINS, which defaults to empty and refuses browser origins. Keep it behind an HTTPS reverse proxy or secure tunnel; 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. See docs/mcp-setup.md.
Browser fallback (claude.ai / ChatGPT): the zero-infrastructure option is to connect the AI to your vault's GitHub repo so it can read the markdown directly, and write it where the connector allows (some GitHub connectors are read-only; you also lose the computed overview/search/task tools, since it's raw file access). See docs/browser-github-connector.md and paste prompts/browser-github-instructions.md.
Then teach the assistant how to use the vault: Claude Code reads the vault's CLAUDE.md automatically when you work inside the vault folder; elsewhere, and for other tools, paste prompts/agent-instructions.md into their custom instructions.
Using it: load and save
The whole point is that you never re-feed context. The assistant loads a small, relevant slice on demand and saves small pieces as you work. You just talk to it.
Load: orient at the start, pull details as needed:
Save as decisions, progress, and ideas happen (append-first; never destructive):
Review: /weekly runs a guided pass: triage the inbox, prune projects, reschedule overdue tasks, fix broken links, and consolidate: big-brain doctor flags bloated notes and near-duplicates, and the review proposes splits/merges/stale-fact pruning for your approval. Capture and search keep a brain useful; consolidation keeps it trustworthy.
Skills
Three skills wrap the tools into commands, for Claude Code and Antigravity (/brain) and Codex ($brain):
brain: load the overview and switch into brain-aware mode for the sessioncapture: zero-friction capture to the inboxweekly: a guided weekly review
big-brain agents install claude codex agy installs them for each agent (see below). big-brain install-skills still copies the Claude versions into ~/.claude/skills (--force overwrites). They're path-agnostic: they call the big-brain CLI / MCP tools and resolve the vault from BIG_BRAIN_VAULT (or --vault), so the same skill works on every machine.
Agent profiles: your agent setup in the vault
Your coding agents' personal setup (skills, global instructions, hooks, the status line, a few settings) can live in the vault too, so every machine gets the same setup from one command and a change made on one machine reaches the others through git.
How it stays safe:
- Links, not copies. Edit a skill or script in the vault (or through the link) and every machine has it after
git pull. Everything else in~/.claude/~/.codex(other skills, history, credentials) is never touched. - Nothing unmanaged is replaced unless you say so. A file in the way is reported;
--replacemoves it to a timestamped backup under~/.local/state/big-brain/backups(outside every agent folder, so a backed-up skill is never picked up) with a restore manifest, then links the vault's. - Settings merge three ways. big-brain remembers what it applied on each machine: a value you edited locally is reported, not overwritten (
--replacetakes the vault's); a value you never touched follows the vault; a key dropped from the vault is removed only if it wasn't edited. Claude hooks are matched by event, matcher, and command, so changing a timeout updates the hook instead of registering it twice. TOML is edited line by line (comments, trust entries and hook hashes stay put), and any edit that would change more than the managed keys is refused. - Plan first, then write, and roll back on failure. Every link and settings change is validated before the first write; a refusal leaves the machine untouched, and if a step still fails midway the steps already done are undone (if even that fails, nothing is deleted and the error says where the originals are). Nothing is written through a symlinked folder, and a settings file kept as a symlink (e.g. in a dotfiles repo) stays a symlink.
--pruneremoves links whose vault file was deleted. saverefuses known secret and state files. Whole settings files,.credentials.json,auth.json,.envfiles, history, sessions, caches and databases are refused; save individual settings with--setting. It doesn't inspect contents, so review the files and--settingvalues you save (anenv.API_KEYsetting would be copied as is).- Codex hooks stay local. Codex asks you to trust each hook on each machine, so hook registrations are not managed for Codex. Claude Code users: review new hooks with
/hooks. Status warns when Codex'sAGENTS.override.mdoverridesAGENTS.md. - No settings for Antigravity. agy keeps its settings in
~/.gemini/antigravity-cli/, outside its customization folder, so big-brain links agy's instructions, skills, and files but merges no settings;mcp_config.jsonandconfig.jsonare agy's own and never linked. ItsAGENTS.mdlives under~/.gemini/config/rather than~/.gemini/GEMINI.md, which the Gemini CLI also reads.
CLAUDE_CONFIG_DIR and CODEX_HOME are honored. The folder name is folders.agents in brain.config.json (default agents), and it is never indexed as notes.
Use it on multiple machines
The vault is a git repo, so this is just git: clone it on each machine, and each machine runs its own big-brain-mcp against its own clone. Git keeps them in sync.
-
Write side: automatic. Set
git.autoCommit(andgit.autoPush) inbrain.config.jsonand every note write, from any tool on any machine, is committed and pushed (best-effort). See docs/vault-spec.md. -
Read side: pull before you start. Add a
SessionStarthook so a session always opens on the latest:--ff-onlymeans a pull never clobbers local work. (Or justgit -C ~/brain pullby hand.)
On a fresh machine: install big-brain (above), git clone your vault, big-brain agents install, register the MCP server. Four commands and your notes, skills, instructions, hooks, and status lines match your other machines.
Seed it from your existing AI history
An empty brain is useless; the fastest way to a useful one is extracting what your LLMs already know about you. Every assistant you've used heavily (ChatGPT, Claude, Gemini) has months of context about your projects, preferences, and goals sitting in its memory and chat history. Seeding pulls that out, once, into files you own.
1. Run the seed interview in each LLM you use. Copy the prompt from prompts/seed-interview.md into each assistant, ideally the account with the most history, with memory/personalization enabled. It's a structured export interview: profile, current projects, stack, how you like to work with AI, goals, people, routines, standing constraints, open loops, and blind spots. It instructs the model to be concrete, mark inferences (inferred), and write "No data" instead of inventing, so the output is honest enough to build on.
2. Save each output into the vault's inbox/ as one file per model (inbox/seed-chatgpt.md, inbox/seed-claude.md, …). Don't organize anything yet: capture first is the whole inbox philosophy.
3. Triage. Ask a vault-connected assistant to run the process-inbox MCP prompt (or just say "triage my inbox" / run /weekly in Claude Code). It merges duplicates across models (different LLMs know different slices of you, and they mostly complement rather than conflict), then turns the material into real structure: projects with tasks for everything in flight, people/ notes, a preferences note your agent instructions can point at, reference notes for your stack/setup, and open loops as tasks. You confirm per item; raw exports can be kept in archive/ for provenance.
4. Repeat occasionally. Models keep accumulating context about you; re-running the interview every few months and triaging the diff keeps the vault ahead of any one provider's memory.
Two more seeding paths worth knowing: if you already keep an Obsidian vault, big-brain can adopt it in place (add a brain.config.json, map your folder names via the folders config; see docs/vault-spec.md); and a work session with a vault-connected agent seeds as a side effect: the agent instructions tell it to create projects and capture facts as you work, so the brain fills in from real activity even if you skip the interview.
The vault
Notes are markdown + YAML frontmatter (type, tags, status, due…). Tasks are - [ ] checkboxes with Obsidian Tasks-style metadata: 📅 2026-03-01 due, ⏫ priority, ✅ done-date. Full details in docs/vault-spec.md.
MCP tools
Plus three MCP prompts: orient, weekly-review, process-inbox.
CLI
search, related, tasks, projects, and doctor take --json for scripting. task done and task update take a task id or its text: a task's whole text wins over longer tasks that contain it, and an ambiguous fragment lists the candidates. Put -- before append text that starts with - (a list item), or it is read as an option. frontmatter reads each value as YAML, like key: value in the file: 'tags=[work, llm]' is a list, due=2026-11-01 stays a date string, and key=null (or key=) removes the key. Quote any assignment that contains spaces, or the shell splits it into separate arguments.
Design principles
- Files over databases. Markdown you can read in 30 years beats any app.
- The human owns the vault; agents are guests. Agents append and capture freely, but rewriting and archiving are deliberate acts.
- Deterministic beats clever. Search + links + tags retrieves reliably and works offline; the semantic layer is opt-in, fully local, and fused with exact search, never a replacement for it.
- Model-agnostic by construction. Everything goes through MCP or the filesystem; nothing assumes a particular AI vendor.
Contributing and support
Bug reports and focused pull requests are welcome; read CONTRIBUTING.md first, since it explains what's in scope. Report security problems privately as described in SECURITY.md, not in a public issue.
Follow along
big-brain is a side project, built in the open. If it's useful to you, a star helps other people find it. To hear about new releases and whatever I build next, use Watch → Custom → Releases on this repo, or follow @jzhao234 on GitHub.
MIT © Junhao Zhao
來源:README.md,提交 7337382
工具
0版本歷史
2- v0.3.2最新Oct 15, 2026
- v0.3.1Oct 13, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Brain 整合

BrainDog
dog.brain官方發布者
BrainDog 是一個託管記錄庫,集中保存專案、決策與金錢,接入的 AI 代理在開工前讀取、結束後寫入。

Codebase Brain
由 GitHub 帳號 Nomannazir 發布
為本機或公開 git 程式碼庫建立索引,讓助理能檢索程式碼、追溯 git 歷史、分析變更影響並找出過時文件,結果都附上檔案路徑與行號引用。

Personal Brain
由 GitHub 帳號 zhang-liz 發布
為 AI 助理提供職場人脈記憶,資料以圖的形式存放在 FalkorDB,可查詢聯絡人、依主題找人並記錄你見過的人。

Second Brain
由 GitHub 帳號 ara-5 發布
面向AI代理程式的共享Graph-RAG記憶:markdown vault、wikilink召回、任務、訊息傳遞。AI 翻譯

Make0 Brain
由 GitHub 帳號 make0-official 發布
在本機離線執行的記憶伺服器,讓 Claude Code、Cursor、Codex 等 MCP 代理共用一份具版本紀錄的長期事實庫。