second-brain-template

An LLM-compiled personal wiki: drop raw notes in, Claude Code compiles them into an interlinked Obsidian vault. Karpathy-pattern second brain — download Obsidian, take this, run.

Second Brain — an LLM-compiled personal wiki

Download Obsidian. Take this. Run.

This is a template for a second brain that maintains itself. You drop raw material in (meeting notes, transcripts, documents, half-formed thoughts) and an LLM agent — Claude Code — compiles it into a persistent, synthesized, interlinked wiki that you browse in Obsidian. Knowledge accumulates and compounds instead of being re-derived every session.

The pattern comes from two things Andrej Karpathy published in April 2026: his X post on LLM Knowledge Bases and the follow-up "LLM Wiki" idea file on GitHub Gist. The analogy is compilation: raw notes are source code, the LLM is the compiler, the wiki is the optimized build output — compile once, query cheaply forever.


The idea in one picture

you                          Claude Code                      you
 │                                │                            │
 │  drop anything into raw/      │                            │
 ├───────────────────────────────▶                            │
 │        say "ingest"           │  reads, synthesizes,       │
 │                                │  cross-references,        │
 │                                │  writes wiki/ pages       │
 │                                ├───────────────────────────▶
 │                                │        browse in Obsidian │

Your job: curate sources, ask questions, direct analysis. Claude's job: ingest, synthesize, cross-reference, maintain, answer.

You never write in wiki/. Claude never writes in raw/. That separation is the whole system.


Quick start (5 minutes)

  1. Install Claude Code if you don't have it.
  2. Copy-paste this into a terminal:
    git clone https://github.com/seanschweiger-product/second-brain-template.git ~/second-brain
    cd ~/second-brain
    claude
    
  3. Type /setup and follow along. Claude does the rest with you: a short interview, adapting the brain to your work, compiling your first note, setting up Obsidian, and making everything work from any folder on your machine.

(Obsidian is just the nicest way to look at the brain — the brain itself is plain markdown files and works fully without it.)

Want your own copy on GitHub (recommended, so your brain is backed up — in a private repo)? Use the Use this template button at the top of this page, and clone your repo's URL instead in step 2.

From then on, the loop is:

  • After a meeting / reading something / having an idea → write or drop a file anywhere in raw/
  • /ingest → Claude processes everything new, updates pages, links them, logs the change
  • Ask questions"What are my open blockers?", "What do I know about X?" — Claude reads the wiki first, then answers
  • /lint (monthly) → maintenance pass: orphans, contradictions, superseded claims, index gaps, open questions

What's in the box

File / folderWhat it is
HOW-TO-USE.mdThe human manual. Two zones, three workflows. Read this one.
WIKI-SCHEMA.mdThe operating manual for Claude — categories, page format, workflows, quality rules. This file is the system.
CLAUDE.mdAuto-loaded by Claude Code every session; points Claude at the schema.
.claude/skills/setup/The /setup slash command — one-time onboarding: personalize the schema, first ingest, and use-from-any-folder install.
.claude/skills/ingest/The /ingest slash command — the full compile protocol.
.claude/skills/query/The /query slash command — answer questions from the wiki with citations; every claim traceable back to raw/.
.claude/skills/lint/The /lint slash command — the maintenance pass (orphans, contradictions, superseded claims, data gaps…).
.claude/skills/fathom/The /fathom slash command — one-button meeting sync: pull your newest Fathom recording (summary, action items, transcript) into raw/ and ingest it. Optional — needs a Fathom account.
.claude/skills/start-day/The /start-day slash command — 3-line morning standup: what happened, today's ONE task, why it advances your current objective. Optional daily ritual.
.claude/skills/close-day/The /close-day slash command — 2-line evening close: what was verifiably done, tomorrow's task, one entry in wiki/log.md. Optional daily ritual.
scripts/fathom_poll.pyThe fetcher behind /fathom. API key lives in ~/.fathom-api-key, outside the repo.
raw/Your zone. Everything you capture goes here. Processed files get a dated name and move to raw/processed/{meetings,docs,research,notes}/.
wiki/Claude's zone. Compiled knowledge: people, meetings, projects, concepts, feedback, sessions, references.
wiki/index.mdTable of contents — Claude's entry point for every question.
wiki/log.mdAudit trail of every ingest. If it's growing, the brain is working.

Why this works when note-taking apps don't

  • No filing decisions at capture time. Everything goes in raw/. The compiler decides where knowledge belongs.
  • Synthesis, not storage. A meeting transcript becomes: a meeting page, updates to each attendee's person page, updates to touched projects, new concept pages — all wikilinked.
  • No orphans. Every page must link to at least one other page. The graph stays connected, so retrieval stays cheap.
  • An audit trail. Every ingest appends to wiki/log.md. You can always see what the compiler did and correct it — and the corrections themselves become rules in wiki/feedback/.
  • Maintenance is a command, not a chore. Human wikis die because the maintenance burden grows faster than the value. Here maintenance is /lint — a periodic pass that finds orphans, contradictions, superseded claims, and open questions, at near-zero cost to you.
  • The schema evolves with you. WIKI-SCHEMA.md isn't fixed doctrine. When you notice the system failing you, tell Claude to update the schema. The brain learns how to be a brain.

Make it yours

The categories (people, meetings, projects, concepts, feedback, sessions, references) fit knowledge-work — but they're just directories listed in WIKI-SCHEMA.md. A researcher might want papers/ and experiments/; a student might want courses/. Edit the schema's category table, create the folders, and Claude follows the new rules from the next session.

If you use Claude Code with connected tools (Slack, Jira, Google Drive, Calendar…), skills/ingest.md includes an optional enrichment step: every entity in a raw file gets cross-checked against your connectors, so the wiki captures context that exists nowhere in the file itself.


Credits & license

Related

How to Install

  1. Download the ZIP or clone the repository
  2. Open the folder as a vault in Obsidian (File → Open Vault)
  3. Obsidian will prompt you to install required plugins

Stats

Stars

3

Forks

0

License

MIT

Last updated 1mo ago