second-brain-os README

The project's README from github.com/undefined-ui/second-brain-os. As one markdown file: 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)

Searching Database…

What is this?A knowledge base an AI agent builds and maintains for you, in plain markdown files you own: what you read, watch and save becomes linked wiki pages you can query. The repo holds the full guide, a starter vault, agent skills and scripts.
Is this an app I install, or something else?Not an app: a 77-page guide plus working assets — a starter vault, 18 agent skills, 72 slash commands, 6 subagents and dependency-free Python scripts. There is nothing to install beyond Obsidian and an agent.
How do I set it up?Copy vault-template to ~/brain and open it in Obsidian with 'Open folder as vault', set up Claude Code, then work through nine steps: CLAUDE.md interview, wiki and project layers, Web Clipper plus /ingest. The guide budgets one evening.
Do I need anything besides Obsidian and Claude Code?The optional MCP connection can wait until later. The scripts need Python, and on Windows you must call python rather than python3 — that name usually resolves to the Microsoft Store stub and does nothing.
Will it keep organizing itself if I stop adding new things?No — it will not organise a vault you never add to, and it is not a Notion replacement or a team wiki. The guide says the graph is not interesting at five pages, so feed it about ten sources before judging it.
Am I locked into Claude Code and Obsidian?No. Everything is markdown files, wikilinks and SKILL.md files, so it works with any agent that reads files, and Obsidian is only a viewer for the graph. Walk away from every tool and you keep the folder with everything in it.
Does everything stay on my machine?Yes: it is plain markdown files in your own vault folder, with no signup and no hosted service. The maintenance section of the guide covers privacy alongside git and scaling.
Is it free to use for my own vault?Yes — free with no signup, and MIT licensed, so you can also fork or adapt the whole setup.
Why does it refuse to use a vector database?The guide argues a personal corpus is small and already structured: structured pages plus links answer questions that chunk similarity cannot, at zero infrastructure cost. There is a whole section on the threshold where RAG actually earns its place.
What happens when a new source contradicts a page?Contradictions are recorded, never overwritten: both positions stay on the page with dates and sources. The history of what you believed and why is what the vault has that a search engine does not.
How does new material get into the vault?You clip an article with the Obsidian Web Clipper into raw/ and run /ingest; the ingestion section covers articles, video, PDFs, chat exports, voice and backfilling. Nothing counts as ingested until the new page is linked to what is already there.
What is the difference between the wiki and the project layers?The wiki holds what you know: one idea per page, densely linked, with new sources updating existing pages instead of piling up. The project layer holds what you are doing: one folder per project with its own CLAUDE.md and an Inputs / Process / Outputs / Feedback pipeline, and the two feed each other.
Size
0.7 MB
Stars
1.6K
Updated
CommitNov 03
Age
2mo
Commits · 90 Days