The AI Second Brain
Setup Guide
Every AI conversation you have disappears when you close the tab. This fixes that. Claude Code + Obsidian, wired so every session reads your vault for context and saves what it learned. Run it for a month and your AI knows your world — this is the exact system I run my agency on.
The fast way: don't read this — feed it to your AI
The setup file is written for Claude Code, not just for you. Download it, drop it anywhere, open Claude Code, and say: Read this file and set up my AI second brain. It builds the vault, installs the memory rules and commands, walks you through the Obsidian connection, and seeds your first notes. You mostly watch.
Create the vault
Make a folder anywhere (e.g. ~/Documents/SecondBrain) and open it in Obsidian with "Open folder as vault". Inside it, this structure:
YourVault/ ├── 01-Daily/ ← daily notes, tasks ├── 02-Projects/ ← one folder per project ├── 03-Areas/ ← ongoing areas of life/work ├── 04-Archive/ ← finished things ├── wiki/ ← AI-generated pages (never edit!) ├── _System/ ← notes about the vault itself └── log.md ← one line per AI session
The rule that makes everything work: source notes are where truth lives — wiki/ is a generated view. Never hand-edit the wiki; change sources and rebuild.
Give your AI the memory rules
Claude Code reads ~/.claude/CLAUDE.md at the start of every session. Add a block that tells it: check wiki/index.md for context before working, append one line to log.md after every session, save durable knowledge into the source folders, and cross-link with [[Page Name]] syntax.
The exact block is in the setup file — Claude Code installs it for you.
Connect Obsidian to Claude Code (MCP)
In Obsidian: Settings → Community plugins → install “Local REST API” and copy its API key. Then register the MCP server:
claude mcp add obsidian \ -e OBSIDIAN_API_KEY=<your-key> \ -e OBSIDIAN_HOST=127.0.0.1 \ -- uvx mcp-obsidian
Restart Claude Code and test with "list the files in my vault." This step is optional — plain file access works too — but MCP gives cleaner search and survives vault moves.
Learn the three commands
The setup installs three slash commands into Claude Code. They are the whole daily practice:
/log-session— end of any real work session. Logs one line, saves anything durable to the vault./push-my-day— end of the day. Writes the daily note, carries over unfinished tasks, commits and pushes the vault./rebuild-brain— weekly. Regroups everything into clean wiki topic pages, and Obsidian's graph view shows the clusters form. Never gets old.
If the logging stops, the brain quietly dies — the log is the heartbeat. Everything else forgives you.