π§ Second Brain Starter Template
A persistent knowledge base you build with your AI agent.
Clone β Open in Obsidian β Connect your agent β Start building.
The Idea
You read things. Articles, papers, books, transcripts. You learn from them. Then you forget most of it.
Note-taking apps don't solve this. They're filing cabinets β you dump things in and never find them again. Search helps, but search only finds what you already know you wrote.
This template does something different. Your AI agent reads your sources, synthesizes them into connected wiki pages, and builds a living knowledge graph that grows every time you add something new. You curate. The agent connects. You both remember.
This is sometimes called an LLM Wiki β a concept popularized by Andrej Karpathy. A knowledge base that an AI agent actively maintains, not just a folder of notes you hope to revisit.
How It Works
You drop sources in β /sources/ (you own this)
β
Agent reads & connects β /wiki/ (agent writes, you review)
β
You think & reflect in β /journal/ (you own this too)
β
Agent follows rules from β /schema/ (you set the rules)
Four zones. Clear ownership. No confusion about who does what.
| Zone | What Goes Here | Who Owns It | What the Agent Does |
|---|---|---|---|
| Sources | Articles, papers, transcripts β raw material | You | Reads them. Never modifies. |
| Wiki | Synthesized knowledge β connected pages | Agent (you review) | Creates and updates pages. |
| Journal | Daily notes, reflections, decisions | You | Reads for context. Never modifies. |
| Schema | Rules, tags, templates | You | Follows them. Never changes. |
The Workflow
- You save an article into
/sources/(as a markdown file). - You tell the agent to process it (one command).
- The agent reads the source, identifies key concepts, creates wiki pages, and links everything together.
- You review the wiki pages. If something's wrong, fix it. If it's right, mark it reviewed.
- Repeat. Over time, you get a connected web of knowledge that the agent maintains for you.
Safety Built In
- The agent cannot modify anything you've reviewed and approved.
- The agent cannot change your source files. Ever.
- When sources contradict each other, the agent flags the conflict instead of silently picking one. You decide.
- The agent never fabricates β every claim in a wiki page cites its source.
Quick Start
What You Need
- Obsidian β free note-taking app. Download it.
- An AI agent β Claude Code, Cursor, GitHub Copilot, or any agent that can read files and follow instructions.
- A GitHub account β free. Lets you sync your vault across devices (laptop, phone, tablet) and back up your work automatically.
Step 1: Download This Template
Click the green "Code" button above and select "Download ZIP", or if you use the terminal:
git clone https://github.com/aporb/second-brain-starter-template.git my-vault
Step 2: Open in Obsidian
- Open Obsidian.
- Click "Open folder as vault".
- Select the folder you just downloaded.
- That's it. No plugins to install. No settings to configure.
Step 3: Connect Your Agent
Point your AI agent at the vault folder. The agent reads instruction files that are already in the repo β no setup needed on your end.
| Your Agent | What It Reads |
|---|---|
| Claude Code | CLAUDE.md + 7 built-in slash commands |
| Cursor | .cursorrules |
| GitHub Copilot | copilot-instructions.md |
| Anything else | AGENTS.md |
All of them point to the same source of truth: /schema/agent-protocol.md. You update the rules in one place, every agent stays in sync.
Step 4: Start Building
- Save an article as a markdown file in
/sources/(use the template there). - Tell your agent to process it:
- Claude Code: type
/ingest - Other agents: "Read the source file in /sources/ and create wiki pages from it"
- Claude Code: type
- Check
/wiki/β your agent created pages and linked them together. - Review the pages. Mark them
reviewedwhen you're satisfied. - Add more sources. Repeat.
Built-in Commands (Claude Code)
If you use Claude Code, you get 7 slash commands out of the box:
| Command | What It Does |
|---|---|
/ingest |
Process a source β create wiki pages β cross-reference |
/ask |
Ask a question β get an answer from your wiki |
/research |
Research a topic β ingest sources β build wiki pages |
/daily |
Create today's journal entry scaffold |
/sync |
Save your work (pull, commit, push to GitHub) |
/status |
Show vault health β what needs attention |
/expand |
Take a wiki page and deepen it from sources |
Using a different agent? The same workflows are documented in AGENTS.md.
What's In The Box
second-brain-starter-template/
βββ CLAUDE.md β Claude Code reads this
βββ AGENTS.md β Any agent reads this
βββ .cursorrules β Cursor reads this
βββ copilot-instructions.md β GitHub Copilot reads this
βββ llms.txt β Agent discovery (short)
βββ llms-full.txt β Agent discovery (full reference)
β
βββ sources/ β You put raw material here
β βββ README.md (how to use this folder)
β βββ _template.md (copy this for new sources)
β
βββ wiki/ β Agent builds knowledge here
β βββ README.md (how this folder works)
β βββ _template.md (page template)
β βββ index.md (table of contents)
β βββ contradictions.md (where conflicts get flagged)
β
βββ journal/ β Your daily thinking
β βββ README.md (how to use this folder)
β βββ _template.md (daily entry template)
β
βββ schema/ β The rules
β βββ README.md (what's in here)
β βββ agent-protocol.md (the full operating rules)
β βββ tags.md (tag taxonomy)
β βββ templates.md (page templates)
β
βββ scripts/
β βββ sync.sh β Save your work in one command
β
βββ .claude/commands/ β 7 slash commands for Claude Code
βββ ingest.md
βββ ask.md
βββ research.md
βββ daily.md
βββ sync.md
βββ status.md
βββ expand.md
FAQ
Do I need to know how to code? No. If you can save a file and type a sentence to an AI agent, you can use this template. The Quick Start above walks you through everything.
What if I don't use Claude Code?
The template works with any AI agent. Claude Code gets the best experience (7 slash commands), but the core workflows β ingest sources, build wiki pages, flag contradictions β work with any agent that can read and write markdown files. Instructions for all agents are in AGENTS.md.
Do I need Obsidian plugins? No. Zero plugins required. Obsidian works out of the box with this vault. Add plugins on your own if you want, but you don't need any.
What's an LLM Wiki? A concept popularized by Andrej Karpathy β instead of passively filing notes, an AI agent actively reads your sources, synthesizes them into connected pages, and maintains the knowledge base over time. The vault grows smarter as you add more to it.
Can I use this with my team?
Yes. The template supports branching workflows β each person works on a branch, then you merge after review. See the Git Workflow section in AGENTS.md.
What if the agent writes something wrong?
You review it. Wiki pages start as draft β the agent can modify them freely. Once you mark a page reviewed, the agent cannot change it without your explicit permission. You're always in control.
Where does my data live? On your machine. Pure markdown files. No cloud, no database, no lock-in. You own everything.
What does "agent-agnostic" mean? This template doesn't care which AI tool you use. Claude Code, Cursor, GitHub Copilot, OpenAI Codex, or anything else β they all read the same instruction files and follow the same rules.
What This Is Not
- β Not a plugin collection β zero plugins required
- β Not a sync service β your data stays local
- β Not a database β pure markdown, portable forever
- β Not tied to one AI tool β works with any agent
License
MIT β use it however you want. No attribution required.
Built with the idea that knowledge should be alive, not filed away.