second-brain-os README

README проекта с github.com/undefined-ui/second-brain-os. Одним файлом markdown: README.md.

Second Brain OS

Guides and resources for AI engineers: a course on building agents, five handbooks that go deep on one layer each, hands-on projects, and the links worth your time.

Read it on the web: secondbrainos.dev puts every page, term and tool from this repo on one interactive map.

Why this repo?

AI engineering moves fast, and the useful parts are scattered across whitepapers, engineering blogs and repos. This collects them into one path you can follow: theory with sources, a build in every module, and a reading list where every entry has a reason to be here. Here you will find:

Table of contents


Getting started

  1. New to building agents: read What an agent is, then the agents course in order. Seven modules, three lessons each.
  2. One layer of your agent is hurting: open its handbook. Graphs, gates, harnesses, loops or evals, and every one ends in a build.
  3. Want a project to practise on: build the second brain, a knowledge base an agent maintains for you. The quickstart is below.
  4. Staying current: New this month lists what landed recently, each item checked at its source.
Second brain quickstart
# copy the starter vault, skills, commands, agents and scripts
git clone https://github.com/undefined-ui/second-brain-os.git
cp -r second-brain-os/vault-template ~/brain

mkdir -p ~/brain/.claude
cp -r second-brain-os/skills   ~/brain/.claude/skills
cp -r second-brain-os/commands ~/brain/.claude/commands
cp -r second-brain-os/agents   ~/brain/.claude/agents
cp -r second-brain-os/scripts  ~/brain/scripts

# the folder READMEs are for reading on GitHub, not for the agent
rm ~/brain/.claude/*/README.md ~/brain/scripts/README.md

cd ~/brain && claude

Then follow the nine Setup pages in order. The scripts/ copy is what lets /metrics, /health and /graph-export run from inside the vault. On Windows, use python where the guide says python3.


New this month

What landed in September and October 2026 that changes how you would build any of this. Checked on 1 November 2026, stars from the GitHub API that day. Notes on each are in resources/.

Second brain and memory

Graphs and retrieval

Claude Code and skills

Agent engineering


Learn by level

Every page in the repo, in reading order. The course runs through all three levels, the second-brain project runs from beginner to intermediate, and the handbooks are references for when one layer of your agent starts hurting.

🟢 Beginner

What an agent is and what it actually sees, then a first project: a knowledge base an agent builds for you. No agent experience needed.

The map course module 0

Context course module 1

Concepts second brain 01

Setup second brain 02

Ingestion second brain 03


🟡 Intermediate

How an agent loops and decides, and the second brain grown into a graph that maintains itself and answers real questions.

Loop course module 2

The gate course module 3

Structuring second brain 04

Graphs second brain 05

Agents second brain 06

Retrieval second brain 07

Outputs second brain 08

Maintenance second brain 09

Troubleshooting second brain 10


🔴 Advanced

Harden, measure and ship agents, then go deep on one layer at a time. Every handbook ends in a build you can finish in an evening.

Harness course module 4

Evals course module 5

Production course module 6

Knowledge graphs handbook T1

Jev engineering handbook T2

Agent harnesses handbook T3

Loop engineering handbook T4

Eval engineering handbook T5


Toolkit

The agents-course plugin each tool does one module's practice page in your repo

claude plugin marketplace add undefined-ui/second-brain-os
claude plugin install agents-course@second-brain-os

Skills second brain, one per workflow

Subagents second brain, four of them read-only

Slash commands second brain, 72

Scoped entry points into the skills, in nine groups: ingestion, structuring, graph, retrieval, maintenance, outputs, projects, safety and setup. Start with /ingest, /ask, /lint and /review.

Scripts dependency-free Python

Starter vault


Resources

Curated, not comprehensive. The full catalog, filterable, is at secondbrainos.dev/resources.html, with notes on every entry in resources/.

Reading lists by topic

Graph, RAG and memory stars, September 2026

Second brain: start here

Second brain: Obsidian plugins installs, September 2026

Second brain: other implementations stars, September 2026

Second brain: outside Obsidian

Web Clipper for capture, Claude Code for maintenance, yt-dlp and OCRmyPDF for processing, ripgrep, NetworkX, Ladybug and Gephi for the graph, and Quartz to publish.


How the second brain works

   you                    raw/                 agent                 wiki/
 ┌───────┐          ┌──────────────┐      ┌────────────┐      ┌──────────────┐
 │ clip  │  ──────> │ articles     │ ───> │  ingest    │ ───> │ sources/     │
 │ save  │          │ transcripts  │      │  extract   │      │ concepts/    │
 │ dump  │          │ pdfs         │      │  link      │      │ entities/    │
 └───────┘          │ chat exports │      │  lint      │      │ synthesis/   │
                    └──────────────┘      └────────────┘      └──────────────┘
                                                │                     │
                                                │   ask anything      │
                                                └─────────────────────┘

Raw material is an archive you never read. The wiki is the artifact: plain language, one idea per page, densely linked. New sources update existing pages instead of piling up beside them, which is why the vault gets better as it grows rather than just bigger. Beside the wiki sits a project layer, one folder per project with its own CLAUDE.md. The wiki holds what you know, the projects hold what you are doing. The two layers covers why keeping them apart matters.

Three rules the project rests on:


Contributing

Corrections, resources and real examples are welcome. Read CONTRIBUTING.md first: every factual claim needs a primary source, and tool listings need a reason to exist.

License and credit

MIT licensed. The agents course builds on Google's agent whitepapers. The second-brain project implements Andrej Karpathy's LLM wiki pattern, published as a gist on 4 April 2026, plus the parts the gist deliberately leaves undefined.

second-brain-os (undefined-ui/second-brain-os)

Ищем в базе…

Что это такое?База знаний, которую ИИ-агент создаёт и поддерживает за вас: всё в обычных markdown-файлах, которые принадлежат вам. То, что вы читаете, смотрите и сохраняете, превращается в связанные вики-страницы, к которым можно задавать вопросы. В репозитории — полное руководство, стартовое хранилище (vault), навыки агента и скрипты.
Это приложение, которое я устанавливаю, или что-то другое?Не приложение: руководство на 77 страниц плюс готовые материалы — стартовое хранилище, 18 навыков агента, 72 слэш-команды, 6 субагентов и Python-скрипты без зависимостей. Устанавливать нужно только Obsidian и агента — больше ничего.
Как всё настроить?Скопируйте vault-template в ~/brain и откройте папку в Obsidian через «Open folder as vault», настройте Claude Code, а затем пройдите девять шагов: интервью для CLAUDE.md, слои вики и проектов, Web Clipper вместе с /ingest. По руководству на это уходит один вечер.
Нужно ли что-то ещё, кроме Obsidian и Claude Code?Необязательное подключение через MCP можно отложить на потом. Скриптам нужен Python, причём в Windows команду нужно вызывать как python, а не python3 — имя python3 обычно указывает на заглушку Microsoft Store и ничего не делает.
Если я перестану добавлять новое, оно продолжит само себя наводить?Нет — хранилище, куда вы ничего не добавляете, само не упорядочится. Это и не замена Notion, и не вики для команды. В руководстве сказано, что на пяти страницах граф ещё неинтересен, поэтому добавьте примерно десять источников, прежде чем делать выводы.
Я привязан к Claude Code и Obsidian?Нет. Всё состоит из markdown-файлов, вики-ссылок и файлов SKILL.md, так что это работает с любым агентом, умеющим читать файлы, а Obsidian — лишь просмотрщик графа. Если уйти от всех этих инструментов, у вас останется папка со всем содержимым.
Всё остаётся на моём компьютере?Да: это обычные markdown-файлы в вашей папке хранилища, без регистрации и без облачного сервиса. Раздел руководства про обслуживание рассматривает приватность вместе с git и масштабированием.
Можно бесплатно пользоваться для своего хранилища?Да — бесплатно и без регистрации, плюс лицензия MIT, так что можно ещё и сделать форк или приспособить всю систему под себя.
Почему это не использует векторную базу данных?В руководстве утверждается: личный корпус небольшой и уже структурирован, поэтому структурированные страницы и ссылки отвечают на вопросы лучше, чем поиск по схожести фрагментов, и без затрат на инфраструктуру. Целый раздел посвящён порогу, после которого RAG действительно оправдывает себя.
Что будет, если новый источник противоречит странице?Противоречия записываются, но ничего не перезаписывается: обе позиции остаются на странице с датами и источниками. История того, во что вы верили и почему, — это то, что есть у хранилища и чего нет у поисковика.
Как новый материал попадает в хранилище?Вы сохраняете статью через Obsidian Web Clipper в raw/ и запускаете /ingest; раздел про загрузку охватывает статьи, видео, PDF, экспорты чатов, голосовые записи и наполнение задним числом. Материал считается загруженным, только когда новая страница связана с уже имеющимися.
Чем слой вики отличается от слоя проектов?Вики хранит то, что вы знаете: одна идея на страницу, плотные связи между страницами, причём новые источники обновляют существующие страницы, а не нагромождаются сверху. Слой проектов хранит то, что вы делаете: по папке на проект со своим CLAUDE.md и конвейером Inputs / Process / Outputs / Feedback, и эти два слоя питают друг друга.
Автор
undefined-ui
Размер
0.7 MB
Звёзды
1.6K
Обновлён
КоммитNov 03
Возраст
2 мес
Коммиты · 90 дней