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
- New this month
- Learn by level
- 🟢 Beginner (30 pages)
- 🟡 Intermediate (47 pages)
- 🔴 Advanced (53 pages)
- Toolkit
- Resources
- How the second brain works
- Contributing
- License and credit
Getting started
- New to building agents: read What an agent is, then the agents course in order. Seven modules, three lessons each.
- One layer of your agent is hurting: open its handbook. Graphs, gates, harnesses, loops or evals, and every one ends in a build.
- Want a project to practise on: build the second brain, a knowledge base an agent maintains for you. The quickstart is below.
- 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
- 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
- Harness² - Google Research tunes the harness, not the weights: prompts, tools and memory edited per task, lessons kept · 21.9K, Apache-2.0
- SoL-Pi - Four add-ons to the Pi harness that keep its score with 45 to 49 per cent less token traffic · 3.6K, MIT
- CliffCompaction - Compaction that only truncates or drops, never summarises a summary; up to 50% cheaper
- The Unreliable Progress Bar - Models misreport their own progress mid-task, so the runtime should own the stop rule
- Building effective agent automations - Bookmarks, a ledger and a spend cap for an agent that runs on a schedule
- Automating eval design and hillclimbing - Keep a change only if the train and the held-out split both improve. Read with Hamel Husain's critique
- Frozen Judges, Moving Agents - A fixed LLM judge errs differently on each agent version, so judge-only scores cannot certify an upgrade
- OpenAI Decisions API - Typed answers instead of text, generally available on 22 October: the course's gate as an API. Compared with Jev and others as cheap judges
- How the Claude Code team does code review - Parallel finders, a voting verifier and a three-round cap took first-round passes from 65% to 78%
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
Setup second brain 02