# sboNwYmH3AY
<!--
ref: @content/youtube/nate-herk/karpathy-llm-wiki-obsidian-claude-code-setup
tags: [knowledge-bases, llm-wiki, andrej-karpathy, obsidian, claude-code, second-brain, rag, token-efficiency, markdown]
version: 2
updated_at: 2026-11-22T08:38:48.300Z
-->
**[Watch on YouTube](https://www.youtube.com/watch?v=sboNwYmH3AY)**
*Synthesized from Nate on nate-herk, 2026-04-05.*
Nate, a YouTube creator who builds AI agents and automations, presents solo. He walks through Andrej Karpathy's "LLM knowledge base" idea and shows how he implemented it with Claude Code and Obsidian.
## Core Thesis
Nate argues that an LLM can maintain a personal knowledge base made of plain markdown files, with no vector database or embeddings. You drop raw documents into a folder, and Claude Code sorts them into a linked wiki with an index and a log. Knowledge compounds over time instead of disappearing after each chat, and setup takes about five minutes. This approach suits small-to-mid-sized collections, while traditional RAG is still needed at enterprise scale.
## Key Insights
- **Two demo vaults.** Nate shows a YouTube knowledge system built from 36 of his recent videos. The wiki nodes carry tags, the video link, the raw file, a summary and takeaways. They also backlink to tools (Claude Code, Perplexity, VS Code, Nano Banana, n8n) and techniques (the WAT framework, bypass permissions mode, human review checkpoint). The second is a smaller personal "Herk Brain" vault covering his life, businesses, employees and Q2 initiatives. Claude Code worked out the relationships itself, with no manual linking.
- **Karpathy's pitch.** Karpathy posted about using LLMs to build personal knowledge bases for research topics. He said he expected to need "fancy RAG", but the LLM maintained index files and brief document summaries well enough at his scale of about 100 articles and roughly half a million words. He later published the idea as a gist, deliberately vague so users can customize it.
- **Why it matters.** Normal chats are ephemeral, while a wiki lets knowledge accumulate. Nate cites an X user who turned 383 scattered files and 100+ meeting transcripts into a compact wiki and cut token usage by 95% when querying with Claude.
- **Architecture.** A vault contains a `raw/` folder for source material and a `wiki/` folder the LLM writes into. The wiki holds the generated pages plus an `index` and a `log` (operation history). A `CLAUDE.md` file tells the agent how the project works and how to search and update it.
- **Default wiki folders.** Claude Code created `analysis`, `concepts`, `entities` and `sources` on its own. Karpathy sometimes prefers a flat wiki with no subfolders. Nate's YouTube vault uses subfolders (tools, techniques, concepts, sources, people, comparisons) because that fits the content better.
- **Ingest timing and output.** Ingesting the AI 2027 article took about 10 minutes. Claude Code first planned about 25 pages, then created 23: the source page, six people, five organizations, one AI-systems page, concept pages (technical alignment, geopolitical) and an analysis. Batch-ingesting the 36 YouTube transcripts took about 14 minutes.
- **Interactive ingest.** Claude Code asked about emphasis, granularity and goals before writing pages. Nate recommends stating the project's purpose up front (personal second brain versus AI research dump).
- **Hot cache.** His Herk Brain vault has a `hot.md` file of about 500 words/characters covering the most recent context. This saves his executive assistant from crawling wiki pages. He skips it in the YouTube vault, where it adds nothing.
- **Linting.** Karpathy runs LLM health checks over the wiki to find inconsistent data, fill gaps with web searches and suggest new article candidates. These can run daily or weekly, and the agent may ask for more info or sources.
- **Cross-project use.** Nate's executive assistant project ("Herk 2") has a wiki path in its `CLAUDE.md` pointing at the Herk Brain vault. It reads the hot cache, index and domain sub-index only when needed. After he switched from static context files to this method, token usage in that project dropped.
- **Versus semantic-search RAG.** The wiki retrieves by reading indexes and following links, which captures explicit relationships. RAG needs an embedding model, a vector database and a chunking pipeline. The wiki's cost is only tokens, and maintenance means linting and adding sources rather than re-embedding. Its weakness is scale: hundreds of pages with good indexes are fine, but millions of documents call for a traditional RAG pipeline, as of April 2026.
## Actionable Takeaways
1. Download Obsidian (free, obsidian.md) and create a new vault, e.g. "demo vault", in a location like your desktop. Obsidian is optional for the system itself but gives you the graph view.
2. Open the vault folder in VS Code (or wherever you run Claude Code) and start `claude` in the terminal.
3. Paste Karpathy's LLM wiki gist into Claude Code, plus a short instruction: "You are now my LLM wiki agent. Implement this exact idea file as my complete second brain. Guide me step by step. Create the CLAUDE.md schema…" This creates `raw/`, `wiki/`, `CLAUDE.md`, `index` and `log`.
4. Install the Obsidian Web Clipper extension in Chrome. In its options, change the default location from "Clippings" to `raw` so clipped articles land in the right folder.
5. Tell Claude Code which article you added and ask it to ingest it. Before you start, state the project's purpose, and answer its questions about emphasis and granularity.
6. Watch the graph view during ingest to see hubs and relationships form.
7. For later additions, such as a new video transcript, tell Claude Code to ingest it into the wiki. Each ingest is recorded in the log.
8. Run periodic lint passes to find inconsistencies and gaps.
9. To use a vault from another agent, add the vault's wiki path to that project's `CLAUDE.md`. Tell it to read the hot cache and index, and to consult the wiki only when needed.
10. Add a `hot.md` cache only when recency matters, as in an executive-assistant setup.
## Notable Quotes
> "Normal AI chats are ephemeral, meaning the knowledge disappears after the conversation." — Nate
> "It's literally just a folder with markdown files. That's it." — Nate
> "I literally didn't have to do any manual relationship building here. It just figured it all out on its own." — Nate
---
*Related: `@content/web/xinyadu/2026-11-29-claude-code-task-framing-study` · `@content/web/github/2026-11-27-resume-command-osc-7577-issue-112408` · `@content/web/github/2026-11-26-opus-context-fills-faster-issue-112194` · `@content/web/github/2026-11-26-interactive-session-misclassified-background-issue-112133` · `@content/web/github/2026-11-26-autodream-silently-ignored-issue-112310`*
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*