
itechmeat/open-second-brain 是从 https://github.com/itechmeat/open-second-brain. 导入的 MCP 服务器候选
概览
itechmeat/open-second-brain 是从 https://github.com/itechmeat/open-second-brain. 导入的 MCP 服务器候选
概述(AI 翻译)
Open Second Brain 是 AI 代理的一个内存层,存储在 Obsidian vault 中。代理通过 MCP 服务器、生命周期钩子和 o2b CLI 读写它。代理学到的所有内容都是 Brain/ 下的 Markdown 文件,所以你可以像打开其他笔记一样打开、编辑、修改和版本。确定性 dream 传递将重复信号转化为规则,并淘汰那些无用的;该算法内没有模型运行。
它的合适度
每个客户端通过插件、MCP注册或CLI访问同一个核心。核心在Brain/下保留自己的记录,并在.open-second-brain/下生成搜索索引,可从文件中重建。你的笔记会被读取;笔记工具只在调用者指定的路径上写笔记。
学习循环:信号变成规则,规则通过Brain/active.md传达下一次会话,应用或违反的证据确认、隔离或退役。详情:docs/how-it-works.md。
安装
-
安装 Bun 1.1 或更高版本:
install/prerequisites.md。 -
为你的客户端安装插件(见下方指南),或获取
o2bCLI:install/prerequisites.md。 -
创建保险库文件:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Open Second Brain
Open Second Brain is a program that runs on your machine and connects to the AI coding agents you use: Claude Code, Codex, Grok and others. It keeps the corrections, decisions and notes your agents save, turns corrections that repeat into rules, and lets later sessions, in the same agent or a different one, use those rules.
Why
You correct an agent, and the next session makes the same mistake. You switch agents, and the new one knows nothing the old one learned. With Open Second Brain connected, an agent can save a correction through its tools, and every connected agent can read the rules that come out of saved corrections. Every record names the agent that wrote it. Once a day a background pass, called dream, makes a rule of a correction that keeps coming back. A rule stays while agents record that they applied it; it is retired when that record goes stale, when agents report it outdated, or when you reject it.
What it looks like
An example. You tell your agents a few times not to use internal abbreviations, and they save it each time:
Correction, saved three times: Expand internal abbreviations in user-facing copy.
After dream and recorded use: Confirmed rule: Expand internal abbreviations in user-facing copy.
On hosts with a session-start hook, such as Claude Code and Codex, each new session receives the confirmed rules; on other hosts the agent asks for them through a tool.
The rules are also written as plain Markdown pages into your vault’s o2b-memory/ folder (or the folder view_target names): about-me.md with the confirmed rules, a page per week of history, decisions and topics.
Rewrite a rule on about-me.md and your wording becomes the rule; delete its line and the rule is retired. Your edit is stored the next time the pages are rendered, and it wins over anything an agent or a model recorded.
Install
The easy way: let your agent do it
Paste this into the agent you want to connect:
Set up Open Second Brain for this agent. Follow the "Agent setup" procedure in
https://raw.githubusercontent.com/itechmeat/open-second-brain/main/llms.txt
If Bun or the open-second-brain package is missing, tell me the command and
install it after I agree. Ask me only the questions the procedure lists. Run
o2b setup without --apply, show me the plan, then stop and wait for my explicit
approval. Apply only the plan I approved, run the verification commands the
procedure names, report every step that did not pass, and tell me how to undo it.
By hand
With Bun 1.1 or later, install the package, then print the setup plan for your host (--no-vault instead of --vault if you do not use Obsidian):
bun add -g open-second-brain
o2b setup --target --vault /path/to/vault --agent-name "" --timezone UTC
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →