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)

正在搜索数据库…

这是什么东西?一个由 AI 智能体替你搭建和维护的知识库,全部是你自己拥有的纯 markdown 文件:你读过的、看过的、收藏的内容都会变成互相关联的 wiki 页面,可以随时查询。这个仓库里包含完整指南、一个起步 vault、智能体技能和脚本。
这是一个要安装的应用吗,还是别的东西?不是应用:它是一份 77 页的指南,加上可以直接使用的资料——一个起步 vault、18 个智能体技能、72 个斜杠命令、6 个子智能体,以及不依赖第三方库的 Python 脚本。除了 Obsidian 和一个智能体之外,没有任何需要安装的东西。
我该怎么搭建?把 vault-template 复制到 ~/brain,然后在 Obsidian 里用「Open folder as vault」打开,设置好 Claude Code,再按九个步骤一步步做:CLAUDE.md 访谈、wiki 和项目两层结构、Web Clipper 加 /ingest。指南预计花一个晚上。
除了 Obsidian 和 Claude Code,我还需要别的东西吗?可选的 MCP 连接可以以后再说。脚本需要 Python,而且在 Windows 上必须用 python 而不是 python3 来调用——python3 这个名字通常指向微软商店的占位程序,运行了也不会有任何效果。
如果我不再添加新内容,它还会继续自我整理吗?不会——对于一个你从不往里添加内容的 vault,它不会去整理,而且它也不是 Notion 的替代品或团队 wiki。指南里说,只有五页内容的时候图谱没什么可看的,所以先喂给它大约十个来源再下判断。
我是不是被绑死在 Claude Code 和 Obsidian 上了?不是。所有东西都是 markdown 文件、wikilink 和 SKILL.md 文件,所以任何能读文件的智能体都能用,Obsidian 只是查看图谱的一个工具。就算把所有工具都换掉,整个文件夹连同里面的内容仍然归你。
所有内容都只存在我自己的电脑上吗?是的:都是你自己 vault 文件夹里的纯 markdown 文件,不需要注册,也没有任何托管服务。指南的维护章节在讲 git 和扩展性的同时,也讲了隐私。
我自己的 vault 用它是免费的吗?是的——免费、无需注册,而且采用 MIT 许可证,你也可以 fork 或修改整套配置。
它为什么拒绝使用向量数据库?指南的论点是:个人语料规模不大,而且本身已经有结构——结构化的页面加链接能回答按相似度切块回答不了的问题,而且不产生任何基础设施成本。指南里有一整节专门讨论 RAG 到什么程度才真正值得用。
当新来源和已有页面内容矛盾时会怎样?矛盾会被记录下来,绝不直接覆盖:两种说法都保留在页面上,并标注日期和来源。 vault 比搜索引擎多出来的,正是这份「你曾经相信什么、为什么」的历史。
新材料是怎么进入 vault 的?你用 Obsidian Web Clipper 把文章剪藏到 raw/,然后运行 /ingest;导入章节讲了文章、视频、PDF、聊天记录、语音以及补录旧内容。在新页面和已有页面建立链接之前,它不算真正导入完成。
wiki 层和项目层有什么区别?wiki 存放你知道的东西:一个页面一个想法,链接密集,新来源是更新已有页面,而不是不断堆积。项目层存放你正在做的事:每个项目一个文件夹,有自己的 CLAUDE.md 和一套 Inputs / Process / Outputs / Feedback 流程,两层互相支撑。
大小
0.7 MB
星标
1.6K
更新
提交Nov 03
时长
2个月
提交 · 90 天