HOW-TO GUIDE

How to set up a Karpathy-style second brain in Obsidian with Claude Code

Based on a guide by Dimitri Aigle on DEV · Nov 21, 2026

You'll end with: A vault with untouched sources, an agent-written wiki, an index, and an action log that grows with each new source.

Why it's worth having: Raw sources stay as they were, so any wiki page can be checked later against what the source actually said.

At a glance

WHO IT'S FOR
Engineers, analysts, and managers who build up notes, specs, and reference material over time.
LEVEL
Beginner
COST
Free to read. An empty vault takes about 5 minutes to set up.
YOU NEED
Obsidian · Claude Code · A first source, such as an article, a transcript, or a PDF

The method, in short

  1. 1Open an empty folder in Claude Code and describe the layout: sources/, wiki/, _index.md, _log.md, and _CLAUDE.md.
  2. 2Never edit sources/ or wiki/ by hand, so you fix an error by changing the rules or adding a source.
  3. 3Drop in a source and ask the agent to ingest it; it updates the related wiki pages, often 5 to 15 per source.
  4. 4Run a regular verification pass for contradictions, broken links, orphaned pages, and stale claims.

The guide covers the folder layout, the two rules, and moving an existing base in 60 to 90 minutes.