second-brain-os

undefined-uiMIT活跃维护

面向 AI 工程师的学习资源合集,包含智能体课程、五本手册、第二大脑实战项目和精选阅读清单,帮你系统入门并搭建个人知识库。

Guides and resources for AI engineers: an agents course, five handbooks, a hands-on second-brain project and a vetted reading list.

暂无版本1,550star +32 / 7 天265fork同步于 2026-11-10 11:47 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/undefined-ui/second-brain-os.git
cp -r second-brain-os/vault-template ~/brain
cd ~/brain && claude
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

面向 AI 工程师的智能体课程、五本手册与第二大脑实战项目,全部为纯 markdown 且 MIT 许可

面向 AI 工程师的学习资源合集,包含智能体课程、五本手册、第二大脑实战项目和精选阅读清单,帮你系统入门并搭建个人知识库。

核心能力

  • 七模块智能体课程,从单条提示走到生产级 agent
  • 五本手册分别深入知识图谱、门控、harness、循环与评测
  • 第二大脑项目:agent 用纯 markdown 自建并维护知识库
  • 附带 Claude Code 插件,含 18 个技能、72 个斜杠命令、6 个子代理
  • 收录 114 条经核实的资源,按月更新并标注来源

容易踩的坑

需要先安装 Claude Code 并在 vault 目录内启动才能使用技能与命令;复制后要删掉各目录的 README.md,否则会被 agent 当作内容读取;Windows 上需把指南里的 python3 换成 python。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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:

    • The agents course: seven modules from a single prompt to a production agent, covering context, loops, gates, harnesses, evals and production
    • Five handbooks that go deep on one layer each: knowledge graphs, gates, harnesses, loops and evals
    • A hands-on project: a second brain, a knowledge base an agent builds and maintains for you in plain markdown
    • A working toolkit: a Claude Code plugin for the course, plus 18 skills, 72 slash commands and 6 subagents for the project
    • 114 vetted resources, and what landed this month, checked at the source
    • Plain markdown, MIT licensed. No signup, nothing to install to read it

    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.
    # 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
    • Basic Memory 1.0 - A local MCP server whose graph is plain markdown with wikilinks, and it reads and writes Obsidian vaults · 4.4K, AGPL-3.0
    • ai-memory 3.0 - A git-backed wiki of .md files fed by hooks from 20+ agents, now installable as a Claude Code plugin · 14.9K, MIT
    • agent-memory - One markdown file per memory under a MEMORY.md index, with a search index you can delete and rebuild · 4.3K, MIT
    • Hindsight 1.0 - The database-backed alternative, with knowledge pages it can write out as markdown · 57.7K, MIT
    • LLM Wikis From First Principles - A hands-on workshop: three exercises, from a basic raw/ to wiki/ setup to a wiki that learns from queries
    • EvalMem - Splits memory failures into not stored, not found and not used; a wiki layer on top gained 2.5 points
    Graphs and retrieval
    • Follow the Entities - One page per entity, linked to every document that mentions it: more evidence for fewer tokens. The llm-wiki pattern, measured
    • Context as Infrastructure - A grep and BM25 harness with no vector index answered 85% of BrowseComp-Plus; compiled wikis saved tokens, not accuracy
    • Keep Your Receipts - Record the evidence behind every merge and edge, and deleting a retracted source needs no model calls
    • LiteRAG - Graph retrieval without an LLM on every hop: over 100x faster and 99% cheaper than GraphRAG Global and DRIFT
    • LightRAG 1.5.7 - Opt-in graph-first ingestion: build the graph with no embedding calls, add vectors later
    • Ladybug - The maintained continuation of Kuzu, the embedded Cypher database archived in October 2025 · 1.9K, MIT
    Claude Code and skills
    • Agent Skills move to the Linux Foundation - Anthropic handed the SKILL.md standard to the Agentic AI Foundation on 22 October, so the skills here are a neutral format now
    • Mods - A new plugin part: JS or TS handlers that watch or rewrite tool calls and prompts and draw their own panes
    • claude plugin eval - Runs each case with and without your plugin and fails CI below a threshold
    • /skill-doctor - What each loaded skill costs in context on every turn, and which ones never fire
    • AGENTS.md support - Claude Code reads AGENTS.md when there is no CLAUDE.md, so one file can serve several agents
    • When to fold subagents into your main loop - Anthropic's case for one loop with skills over a fleet of subagents, with a migration plan
    • Elephant-Goldfish Model - Google's plugin where reviewers with no prior context check a spec; installs in Claude Code, Codex and Antigravity · 9.1K, Apache-2.0
    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
    • Agent roles - Ingestor, linker, reviewer: one job per agent
    • Scheduling - Scheduled runs that file, link and report while you sleep
    • Subagents and parallel work - Subagents with their own context for parallel reading
    • Hooks - Hooks for the rules a prompt instruction will eventually forget
    • Skills and slash commands - Skills vs slash commands, and when to use each
    • Guardrails - What the agent may touch, and the walls that hold when it is wrong
    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
    • The Office - The model is only as good as the office around it
    • The Four Rings - Containment, guides, sensors, permissions, built from the outside in
    • Harness Practice - Harden a real coding agent, step by step
    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
    
    • context-audit - Measure the four places, find cache killers and window bloat
    • goal-test - Turn a task into a testable done, with the script and a bounded loop
    • gate-check - Find the decisions that do not need the big model
    • harness-audit - Walk the four rings, state the blast radius, rank the fixes
    • evals-bootstrap - Mine real failures into cases and generate the trace checker
    • loop-critic - An agent that reviews loop results in a clean context
    Skills second brain, one per workflow
    Subagents second brain, four of them read-only
    • ingestor - Processes new material in raw/ into linked wiki pages
    • linker - Finds and adds missing connections between existing pages
    • researcher - Answers a question that spans many pages and flags what is missing. Read-only
    • reviewer - Writes the periodic review of what the vault learned. Read-only
    • graph-analyst - Reports graph metrics, hubs, bridges and clusters. Read-only
    • curator - Proposes what to prune, archive or merge, never acts. 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
    • vault-template/ - CLAUDE.md with page contracts and linking rules, the raw/ to wiki/ layout, a project pipeline and four page templates

    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
    • Karpathy's llm-wiki gist - The pattern the project builds on, 4 April 2026. Read it first
    • From Local to Global: GraphRAG - Why chunk retrieval fails on questions about a whole corpus
    • HippoRAG - Graph retrieval with personalised PageRank, the closest analogue of an agent walking links
    • Lost in the Middle - The evidence for keeping context small, and the basis for the context budget
    • Andy Matuschak's notes - Evergreen notes, and the strongest argument against delegating the writing
    • How to Take Smart Notes (Ahrens) and Building a Second Brain (Forte) - Zettelkasten and PARA, the methods an agent now does the upkeep for
    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:

    • Nothing is ingested until it is linked. A page that lands unconnected is invisible within a week, so linking happens in the same run or the ingest is not finished.
    • Contradictions are recorded, never overwritten. Both positions stay, with dates and sources. The history of what you believed and why is the one thing your vault has that a search engine does not.
    • No vector database until you need one. Structured pages plus links answer questions chunk similarity cannot, at zero infrastructure cost. When RAG earns its place names the threshold.

    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.