
Claude Second Brain
Fastest way to scaffold your LLM powered personal knowledge base - Obsidian, Claude Code, qmd, Github
:classical_building: claude-second-brain
Your notes don't compound. This wiki does.
Getting started · Skills · CLI · How it works
Drop in an article, PDF or note. Your AI agent reads it, files it into a cross-linked wiki, and answers questions about it months later with citations.
Inspired by Andrej Karpathy's approach to LLM-powered knowledge management: give an LLM agent an "idea file" and let it build and maintain your knowledge base.
npx claude-second-brain
Needs Node 22+ and an agent that supports Agent Skills. Obsidian is optional.

What you get
- A wiki your agent maintains. Summaries, topic pages, cross-links and contradiction flags, written for you.
- Local search across everything, powered by qmd.
- An Obsidian vault with graph view, backlinks and git sync already set up. Read it on your phone through iCloud.
- Plain git as the source of truth: GitHub, Cloudflare Artifacts, or any remote.

Quickstart
- Create a brain. Run
npx claude-second-brainand answer four prompts. - Build the search index. Run
csb reindex. The first run downloads about 2GB of models, once per machine. - Add a source. Save an article to
raw-sources/articles/and run/brain-ingestin your agent. - Ask. Run
/brain-searchwith a question and get an answer that cites your wiki pages.
The setup guide covers each prompt, git remotes and Obsidian.
Skills
| Skill | What it does |
|---|---|
/brain-ingest | Read a source and fold it into the wiki |
/brain-remember | Save decisions and learnings from the current conversation |
/brain-search | Answer a question with citations |
/lint | Find broken links, orphans and contradictions |
/brain-refresh | Re-index after edits |
/brain-rebuild | Redesign the search index (destructive) |
Works with Claude Code, Codex, Cursor, GitHub Copilot and 11 more agents.
How it works
Your sources go in on the left. Your brain in the middle is a wiki your agent writes and cross-links, with qmd indexing it for search. Any agent on the right can read and grow it, and because the vault is a git repo, Obsidian and every device see the same files.

More in How it works and the wiki schema.
CLI
csb create <name> # create another brain
csb ls # list your brains
csb use <name> # switch the default brain
csb skills --agent codex,cursor # install skills for more agents
csb lint # check wikis for broken links and orphans
csb reindex # refresh the qmd search index
csb upgrade # update a brain to this release
csb doctor # check tools, config and skills
csb comes with npm i -g claude-second-brain. Every command is in the CLI reference.
License
MIT
How to Install
- Download the ZIP or clone the repository
- Open the folder as a vault in Obsidian (File → Open Vault)
- Obsidian will prompt you to install required plugins
Stats
Stars
188
Forks
27
License
MIT
Last updated 3h ago
Categories
Tags