IO

itechmeat/open-second-brain

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

512 stars 68 forks Качество 69 Тренд 42MIT

itechmeat/open-second-brain — это кандидат на сервер MCP, импортированный из https://github.com/itechmeat/open-second-brain.

Обзор

itechmeat/open-second-brain — это кандидат на сервер MCP, импортированный из https://github.com/itechmeat/open-second-brain.

Обзор (машинный перевод)

Open Second Brain — это слой памяти для агентов ИИ, который находится в хранилище Obsidian. Агенты читают и записывают его через MCP-серверы, жизненный цикл и o2b CLI. Всё, что агент узнаёт, — это файл Markdown под Brain/, так что вы можете открыть, редактировать, grep и версию как любую другую заметку. Детерминированный dream проход превращает повторяющиеся сигналы в правила и выводит из обращения те, которые ничего не используется; ни одна модель не работает внутри этого алгоритма.

Как это подходит

Каждый клиент достигает одного и того же ядра через плагин, регистрацию MCP или CLI. Ядро хранит собственные записи под Brain/ и сгенерированный индекс поиска под .open-second-brain/, который может восстанавливать из файлов. Ваши заметки читаются; инструменты записи записывают записи только по пути, который называет вызывающий.

Цикл обучения: сигналы становятся правилами, правила доходят до следующей сессии через Brain/active.md, а применённые или нарушенные доказательства подтверждают, изолируют или выводят из эксплуатации. Подробности: docs/how-it-works.md.

Установка

  1. Установите Bun 1.1 или новее: install/prerequisites.md.

  2. Установите плагин для вашего клиента (руководства ниже) или получите o2b CLI: install/prerequisites.md.

  3. Создайте файлы хранилища:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Open Second Brain

Open Second Brain is a memory layer for AI agents that lives in an Obsidian vault. Agents read and write it through MCP servers, lifecycle hooks and the o2b CLI. Everything the agent learns is a Markdown file under Brain/, so you can open, edit, grep and version it like any other note. A deterministic dream pass turns repeated signals into rules and retires the ones nothing uses; no model runs inside that algorithm.

How it fits

flowchart LR
    subgraph Clients["Agent clients"]
        Plug["Plugins: Claude Code, Codex,Hermes, opencode, Grok Build"]
        Mcp["MCP config: Cursor, kiro, Copilot CLI,Gemini CLI, ZCode, any MCP host"]
        Claw["OpenClawin-process plugin"]
        Cliu["Aider, PiCLI and context file"]
    end
    subgraph Product["Open Second Brain"]
        Srv["MCP serversopen-second-brain, open-second-brain-writer"]
        Hooks["Lifecycle hookso2b-hook"]
        Cli["CLIo2b"]
        Core["Core"]
    end
    subgraph Vault["Your vault"]
        Brain["Brain/Markdown the agent writes"]
        Notes["Your notes"]
        Index[(".open-second-brain/brain.sqliterebuildable search index")]
    end
    Plug --> Srv
    Plug --> Hooks
    Mcp --> Srv
    Claw --> Core
    Cliu --> Cli
    Srv --> Core
    Hooks --> Core
    Cli --> Core
    Core --> Brain
    Core --> Index
    Core -. reads, writes a named note on request .-> Notes

Each client reaches the same core through a plugin, an MCP registration or the CLI. The core keeps its own records under Brain/ and a generated search index under .open-second-brain/ that it can rebuild from the files. Your notes are read; the note tools write one only at a path the caller names.

flowchart LR
    Agent["Agent"] -->|brain_feedback| Inbox["Brain/inbox/signal"]
    Inbox -->|dream pass| Pref["Brain/preferences/rule"]
    Pref -->|rendered into| Active["Brain/active.md"]
    Active -->|read at session start| Agent
    Agent -->|brain_apply_evidence| Log["Brain/log/"]
    Log -->|next dream pass| Pref

The learning loop: signals become rules, rules reach the next session through Brain/active.md, and applied or violated evidence confirms, quarantines or retires them. Details: docs/how-it-works.md.

Install

  1. Install Bun 1.1 or later: install/prerequisites.md.

  2. Install the plugin for your client (guides below), or get the o2b CLI: install/prerequisites.md.

  3. Create the vault files:

    o2b init       --vault /path/to/vault --name "My Second Brain"
    o2b brain init --vault /path/to/vault
    
  4. Connect the client (table below), then check the result:

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →