crl33

Karpathy Second Brain — AI skill for Claude Code

AI community

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

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

  1. **Clone this repo** (or use it as a template):

    git clone https://github.com/crl33/karpathy-second-brain.git my-brain
    cd my-brain
  2. **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
  3. **Point Claude Code at the vault**:

    # Inside the vault directory
    claude

    Claude Code automatically reads `CLAUDE.md`.

  4. **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

Directory Structure

.
├── CLAUDE.md          # Schema — the LLM's operating manual (read this first)
├── raw/               # Immutable sources (