Karpathy Second Brain — AI skill for Claude Code
A ready-to-use Karpathy-style LLM Wiki / second brain system: Obsidian vault + Claude Code (or any LLM agent) that incrementally builds a compounding, interlinked knowledge base from raw sources.
How to install Karpathy Second Brain
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open crl33/karpathy-second-brain and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Karpathy Second Brain does
A ready-to-use Karpathy-style LLM Wiki / second brain system: Obsidian vault + Claude Code (or any LLM agent) that incrementally builds a compounding, interlinked knowledge base from raw sources. Based on Andrej Karpathy's LLM Wiki pattern.
Alternatives in AI
- WeKnora — Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, an 26.9k ★
- Karpathy LLM Wiki — Agent Skills-compatible LLM wiki for Claude Code, Cursor, and Codex 618 ★
- Obsidian + Claude Code: Rebuild Your Second Brain With AI — Build an AI-powered personal knowledge management system from scratch 540 ★
README
Karpathy Second Brain
A ready-to-use implementation of Andrej Karpathy's LLM Wiki pattern: turn Claude Code (or any LLM agent) + an Obsidian vault into a compounding personal knowledge base.
Obsidian is the IDE. The LLM is the programmer. The wiki is the codebase.
Instead of re-deriving answers from raw documents on every query (classic RAG), the LLM incrementally builds and maintains a persistent, interlinked wiki. Knowledge compounds. The graph in Obsidian becomes a living map of your thinking.
Why this works
- Persistent & compounding: Insights are compiled once and kept current.
- LLM as maintainer: Cross-linking, summaries, contradiction detection, and indexing happen automatically.
- You own the files: Plain Markdown. No vendor lock-in. Works offline.
- Obsidian graph view: Visualize the network of ideas in real time as the LLM builds it.
Inspired by Karpathy's [LLM Wiki gist](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f) and the viral "second brain" setups using Claude Code.
Quick Start
**Clone this repo** (or use it as a template):
git clone https://github.com/crl33/karpathy-second-brain.git my-brain cd my-brain**Open as an Obsidian vault**:
- Install Obsidian (free)
- Open the folder as a vault
- Enable the Graph View (Ctrl/Cmd + G) to watch the network grow
**Point Claude Code at the vault**:
# Inside the vault directory claudeClaude Code automatically reads `CLAUDE.md`.
**Start using it**:
- Drop files, PDFs, articles, or transcripts into
raw/ - Or paste a URL / text and say: "ingest this"
- Ask questions: the LLM reads the wiki (not the raw sources) and answers with citations
- Periodically say: "lint the wiki" for health checks
- Drop files, PDFs, articles, or transcripts into
Directory Structure
.
├── CLAUDE.md # Schema — the LLM's operating manual (read this first)
├── raw/ # Immutable sources (
Related Skills
LLM Wiki Skills
Turn your markdown vault into a compounding knowledge wiki (Karpathy inspired). Six agent skills - knowledge g
AI Second Brain Skills
Two Claude Code skills for building a Karpathy-style LLM wiki — a compounding AI second brain. Install: git cl
Vault Organizer
Clean up, organize and index any markdown knowledge base (Obsidian/PARA) with Karpathy's 3-layer LLM-wiki meth
Obsidian AI Second Brain
Obsidian + Claude AI 个人知识库完整搭建指南 基于 Karpathy LLM Wiki 方法论 4 阶段 12 步 不用写代码
Build An AI Second Brain LLM Wiki Pattern With Claude Code And Obsidian
Build an AI-powered knowledge base in Obsidian. Use Claude Code slash commands to ingest, link, and query your
Zenwiki
An implementation of Karpathy's LLM wiki idea — raw sources → agent-compiled wiki → Ask AI
Related Agents
Second Brain Curator
Maintains the user's Obsidian "second brain" vault (Karpathy LLM-Wiki pattern) and its ingest pipeline — runs/
Mnemosine
Mnemósine — Knowledge and documents agent. Use to organise notes and knowledge in Obsidian (second brain wiki,
Quantum Vault Curator
Obsidian Second Brain curator for managing 5,870+ cognitive vault notes, wikilinks, YAML frontmatter, bases, a