LLM Wiki — Using Claude to Maintain My Second Brain
“I don’t want to manage my notes. I want to think.”
I’ve been trying to build a second brain for years. The problem was never capturing notes — it was that notes rot. You write something, it sits in a folder, you forget it exists. The act of organising notes became a second job.
Then I came across an idea from Andrej Karpathy (former OpenAI/Tesla AI director) that reframed everything.
Resources:
Updated October 2026. Five months in, the wiki is 85 pages and the pattern held. The operations grew, and one of my original plans got reversed. This post now describes the setup as it runs today.
The Karpathy Insight
In a tweet and a GitHub gist, Karpathy described what he called the LLM Wiki pattern:
Raw sources → LLM compiles them → Wiki as output → Obsidian as viewer.
The key idea: you are not the organiser. The LLM is.
Your job is to capture raw material — articles, videos, book highlights, meeting notes. The LLM’s job is to read that material and maintain a clean, cross-linked wiki. You just ask questions.
It’s not a chatbot on top of your notes. It’s a persistent, compounding knowledge base that gets better every time new material flows in.
What I Built
I implemented this pattern inside Obsidian using Claude Code as the LLM layer.
The Vault Structure
My Vault/
├── 0 - Everything/ ← Wiki layer. Claude maintains this.
├── 1 - Material/ ← Raw sources (videos, books, articles, podcasts, papers)
├── 3 - Community/ ← Raw community notes
├── 4 - Meetings/ ← Raw meeting notes
├── 5 - Work/ ← Project-specific raw notes
├── 6 - Talks/ ← Raw notes for talks I give
├── Clippings/ ← Web Clipper inbox. Temporary.
├── Dump/ ← Quick captures, no structure
├── Published/ ← Blog posts. This one lives here.
└── _Main Notes/ ← Staging area for rough/active notes
The split is clean: you write into the raw layers, Claude writes into 0 - Everything/. Obsidian is just the viewer for both.
The Operations
It started as three operations, invoked as slash commands. They are still the core:
/ingest <source>
Read a raw note or folder. Extract what’s worth knowing. Update or create wiki pages. Cross-link everything. Extract signals (project ideas, research topics, post ideas) into synthesis pages. Mark the source #completed and file it into the right 1 - Material/ folder. Update the index and log.
What you point it at decides how it runs:
/ingest <note or folder> → compile it into wiki pages
/ingest Atomic Habits → that book's highlights, compiled as one source
/ingest Clippings/<note> → does NOT ingest. Writes a material note and stops.
/ingest 6 - Talks/<note> → polish and file a talk I gave. No summarising.
/ask <question>
Read the Index. Find relevant pages. Synthesize an answer. If the answer is substantial, save it as a new synthesis page — so the next time you ask something related, that answer is already in the wiki.
When the wiki can’t answer, /ask queue <topic> adds the question to the research backlog instead. It has to be phrased as a question that can be closed, and it has to say what answering it is good for.
/lint
Health check. Find contradictions between pages, orphaned pages, broken links, stale content, missing cross-links. Report and fix.
Two more got added along the way:
/highlights <book>
Photos of highlighted book pages go in, one note per highlight comes out, each linked to its book.
/draft <topic>
Draft a blog post from wiki pages into Published/, always with publish: false. I decide when it goes live.
How It Works in Practice
When I first ran this, I had 46 book highlights from Atomic Habits, The Psychology of Money, Kaizen, and others — all sitting in 1 - Material/Books/Highlights/ as tiny individual files.
I typed: /ingest 1 - Material/Books/Highlights/
Claude read all 46 files, recognised they cluster around a few themes, and created:
concept - habit formation.md— synthesising the Four Laws, Goldilocks Rule, environment designconcept - psychology of money.md— wealth is hidden, fee vs fine, manage to sleepconcept - kaizen.md— 1% rule, forest bathing, adversity as teacherperson - james clear.md,person - morgan housel.md, etc.
Each page is cross-linked. Each person links to their concepts. Each concept links to related concepts. The graph builds itself.
I didn’t write any of those pages. I just captured the highlights.
Today that folder holds 202 highlights from 8 books, and I no longer type them in. I photograph the page, run /highlights The 100 Startup, and a script reads only the passages I marked. Each one becomes its own note with a book: link. Later /ingest The 100 Startup collects every highlight carrying that link and compiles the book’s argument across all of them, not one wiki page per highlight.
Our Modifications to Karpathy’s Pattern
Karpathy’s original idea was language-model-agnostic and tool-agnostic. Here’s what we adapted for Obsidian + Claude Code:
1. Obsidian Wikilinks as the Tag System
Obsidian has a backlink graph. Empty .md files in a Tags/ folder act as tag nodes — every note that links [[psychology]] creates a backlink to Tags/psychology.md. This gives you a live, visual tag graph with zero extra tooling.
Every wiki page starts with a type tag first, then topic tags:
Tags: [[concept]] [[psychology]]
Type tags: concept, person, tool, project, synthesis, career, community, talk
The list is extensible. talk came later, when I wanted pages for talks I give — each one split into a public half (abstract, slides) and a private half (what flopped, what to fix next time).
2. No YAML Frontmatter on Wiki Pages
Obsidian’s YAML frontmatter (---) is designed for structured data (Obsidian Bases). But wikilinks inside YAML need careful handling and don’t render the same way.
For wiki pages, we use plain text headers instead:
Tags: [[concept]] [[psychology]]
Status: #growing
Updated: 2026-05-02
Sources: [[1 - Material/Books/Repository/Atomic Habits - James Clear]]
# Page Title
Clean, readable, and every link is a real backlink in the graph.
#growing is the status of a healthy page: a living reference that ingests keep adding to. It is also what /lint watches — a #growing page nobody has touched in 60 days gets flagged as stale.
Raw notes are the opposite case. A highlight note does carry YAML, because its book: field is structured data: Bases groups by it, and /ingest <book> finds highlights through it.
3. Claude Code Skills for Persistent Operations
Claude Code has a skills system: markdown files in .claude/skills/<name>/SKILL.md that define reusable instructions Claude follows when you type /skillname.
The ingest/ask/lint operations live as skills. This means the instructions persist across every session — Claude always knows the schema, the page formats, the extraction rules — without you having to explain it again.
4. Extraction to Synthesis Pages
During every ingest, Claude scans the source for three types of signals:
- Project ideas → appended to
synthesis - project ideas.md - Research topics → appended to
synthesis - research topics.md - Post ideas → appended to
synthesis - post ideas.md
A post idea isn’t necessarily a long article. It could be a tweet, a LinkedIn post, a thread — the format gets decided later based on depth. What Claude captures during ingest is the seed: the insight, framing, or pattern that’s worth sharing publicly. A rough format hint ([tweet] / [article]) gets added based on complexity.
These pages compound over time. Ask “do I have any project ideas?” and Claude reads a growing, cross-referenced backlog extracted from everything you’ve ever ingested.
The research page turned into a real queue: about 50 topics so far, some extracted during ingests and some added by hand with /ask queue. When the same idea shows up in a second source, Claude adds it as a second signal on the existing entry instead of writing a duplicate.
5. Avoid Circular Tags
One early mistake: tagging everything with [[learning]]. In a second brain, everything is something you’ve learned — the tag adds zero signal. We removed it entirely and replaced it with specific tags ([[psychology]], [[productivity]], [[philosophy]]) that actually help group related pages.
The rule: a tag is only useful if not everything would qualify for it.
6. A Gate Against Collecting
This is the one I got wrong at first. With the Obsidian Web Clipper, saving an article takes one click, and /ingest could turn that clipping into wiki pages in a minute. I’d end up with pages about things I never actually read.
Saving and summarising feel like learning. They are not.
So /ingest refuses to ingest a clipping. It writes a rough material note with the key points, adds an empty section at the end, and stops:
## My take
<!-- 3 lines in your own words. What did you take from this? -->
Until I’ve written those lines, the note can’t enter the wiki. Claude never fills them in for me. Three lines is a small price, and it’s the difference between a wiki of what I know and a wiki of what I saved.
The Index
Claude maintains 0 - Everything/Index.md — a single catalog of every wiki page with a one-line description. This is what Claude reads first when you ask a question. It’s also how you browse the wiki without the graph.
## Concepts
- [[concept - habit formation]] — Four Laws, 1% compounding, environment design, Goldilocks Rule
- [[concept - psychology of money]] — Wealth is hidden; autonomy as highest form; fee vs fine
## People
- [[person - james clear]] — Author of Atomic Habits; 1% daily improvement, identity-based habits
- [[person - morgan housel]] — Author of The Psychology of Money; wealth is hidden, know your game
The Log
0 - Everything/Log.md is append-only. Every operation leaves a record:
- #ingest 2026-05-02 — "Books/Highlights/" (46 notes) → created [[concept - habit formation]],
[[concept - psychology of money]], [[person - james clear]], [[person - morgan housel]]...
This gives you a full audit trail and makes it easy to answer “what has Claude touched?”
What It Feels Like
Before: notes pile up, never revisit them, feel guilty.
After: capture anything, anywhere. Run /ingest. Ask questions in plain English. The wiki grows and connects on its own.
The compounding effect is real. The more you ingest, the richer the cross-links become. A book highlight about habit stacking links to a meeting note about team processes links to a startup lesson about product distribution. Ideas that would never have connected in separate notebooks now sit one hop apart.
Tools Used
- Obsidian — vault viewer, graph, backlinks, Bases for structured data
- Claude Code — CLI running Claude; skills for persistent operations
- Claude Opus — the LLM doing the actual synthesis
- Obsidian Web Clipper — saves web pages into
Clippings/ - Gemini — reads the highlighted passages out of book-page photos for
/highlights
The schema lives in SCHEMA.md. The instructions live in CLAUDE.md. The skills live in .claude/skills/. Everything is plain markdown, portable, and not locked into any service.
Try It Yourself
If you want this in your own vault, I’ve packaged the full setup into two guides. Give the relevant one to your coding agent and say “read this and set up the LLM knowledge base for my Obsidian vault”:
- Claude Code setup guide — uses
.claude/skills/and slash commands (/ingest,/triage,/ask,/lint,/draft) - AGENTS.md setup guide — for OpenAI Codex, Cursor, Windsurf, Gemini CLI, and other CLIs that use
AGENTS.md
Both guides handle empty vaults and existing vaults with years of notes already inside — the agent asks before building, reuses what’s already there, and only adds the compiled wiki layer on top.
The Loop Nobody Builds
The ingest flow is one-directional: raw material flows in, the wiki grows. That’s the part that’s satisfying to build.
The harder part is closing the loop.
When you act on something the wiki surfaced — a project idea you shipped, a post you published, a concept that changed how you work — that outcome is raw material too. If it doesn’t flow back in, the wiki becomes a snapshot of who you were when you built it, not who you are now.
How It Works
You act on something → write a short note about what happened → drop it in Dump/ → /ingest picks it up → Claude updates the relevant wiki pages.
The note doesn’t need structure. Three lines is enough:
Tried habit stacking for my morning coding block.
Didn't work — trigger was too vague. Environment design (phone in other room) worked better.
The implementation intention framing was the actually useful part.
That’s enough for Claude to update concept - habit formation.md with real-world signal, not just book theory. It lands under its own ## In practice heading, so what I lived stays separate from what the book said.
Three Feedback Sources
Post outcome — after you publish something, drop the text and link in Dump/. Claude updates the relevant concept pages and appends to synthesis - posted.md. Over time this becomes a record of what ideas were worth sharing publicly — and what resonated.
Project outcome — when a project idea gets started, killed, or pivots, a 5-line note with what happened and why. Claude writes it onto that idea’s status line in synthesis - project ideas.md. Project ideas without outcomes are just wishes.
Concept evolution — when your thinking on something changes, write “I used to think X, now I think Y because Z.” The rarest but highest-signal update.
The Behavioral Trick
The capture reflex already exists — a notes app for quick mobile capture. The habit is: when you do something the wiki recommended or inspired, immediately drop a 2-line note. Same reflex, different trigger. It flows into Dump/ with everything else.
The wiki loop closes itself. You just have to capture the exit condition.
These days my capture is even smaller: one line in my evening note that starts with > DID:. Once a week those lines are collected into a single file in Dump/, and /ingest routes each one the same three ways. The evening note belongs to a second system I built on top of this vault, which has its own post: The Loop.
What Happened to “What’s Next”
When I first published this, the list was:
/ingeston articles, podcasts, meeting notes/askas the primary interface — ask the wiki questions instead of browsing it/lintto keep the graph healthy as it grows- Potentially: auto-ingest via a Claude Code hook when new files land in
1 - Material/
The first three are routine now. /lint turned out to matter more than I expected — the valuable findings are not broken links but contradictions, like one number carried wrong across nine pages until a lint run checked it against the original source.
The fourth I decided against. Auto-ingest is the Collector’s Fallacy with a hook attached. The gate above goes the other way: nothing enters the wiki until I’ve written something about it myself.
The goal isn’t a perfect note system. It’s a system that thinks with you.