Andrej Karpathy — what to adopt for IKA

Audit of github.com/karpathy top-20 repos against IKA needs (Operations + Builder + Token stack). Compiled 2026-04-26. Companion to /ika-pro-architecture, /gstack, /graphify, /tokens.

TL;DR

One adopt, one watch, ignore the rest. Most of his repos are educational; the agent-orchestration ones are what matter for us.

ADOPT (pattern + possibly code): llm-council (17.7k★, Nov 2025). Karpathy's canonical implementation of multi-vendor LLM consultation — the same pattern we already plan to lift from gstack #3 (multi-vendor second opinion) and lock in v17's threshold table. Two independent strong signals (Karpathy + Garry Tan) for the same pattern = high confidence in the design. Use Karpathy's code as the implementation reference for our second-opinion middleware in Paperclip.

WATCH: reader3 (3.5k★, Nov 2025). "Read books together with LLMs" — small reference for our Note + Document + LLM interaction patterns. Worth a 1-hour code-walk before we build the doc-summarization skill, but not a direct lift.

IGNORE: nanochat, nanoGPT, llm.c, llama2.c, micrograd, minGPT, LLM101n, nn-zero-to-hero, build-nanogpt, makemore, minbpe — all educational implementations of LLM training/inference internals. We don't train models, we use them. Reference material if/when team members onboard to ML fundamentals; no adoption.

Top 20 repos (by stars) with relevance

RankRepoStarsLast commitWhat it isIKA relevance
1autoresearch76.7kMar 2026"AI agents running research on single-GPU nanochat training automatically"Pattern interesting (autonomous agent loop) but specific to ML model training; not directly applicable
2nanoGPT57.2kNov 2025Training/finetuning medium GPTsSkip — we don't train
3nanochat52.5kApr 2026"The best ChatGPT that $100 can buy" — full self-hosted chat modelSkip — we use Anthropic
4LLM101n36.8kAug 2024"Let's build a Storyteller" — educational courseSkip — pure education
5llm.c29.7kJun 2025LLM training in raw C/CUDASkip — we don't train
6minGPT24.2kAug 2024Minimal PyTorch GPTSkip — education
7nn-zero-to-hero21.6kAug 2024Neural Networks: Zero to Hero courseSkip — education
8llama2.c19.4kAug 2024Llama 2 inference in pure CSkip — we use Anthropic
9llm-council17.7kNov 2025"LLM Council works together to answer your hardest questions"ADOPT pattern + lift code — multi-vendor consultation; pairs with gstack #3 / v17 second-opinion middleware
10micrograd15.6kAug 2024Tiny autograd engineSkip — education
11char-rnn12.0kOct 2023RNN language model (legacy)Skip — outdated
12convnetjs11.2kJan 2023Browser-based deep learning trainingSkip — outdated
13minbpe10.5kJul 2024BPE tokenizer referenceSkip — education
14arxiv-sanity-preserver5.7kNov 2021arXiv browser/searchSkip — old
15neuraltalk25.6kNov 2017Image captioning (Torch)Skip — old
16neuraltalk5.5kDec 2020Multimodal RNN learningSkip — old
17build-nanogpt5.0kAug 2024Lecture: building nanoGPTSkip — education
18ng-video-lecture4.7kJan 2024Video lecture supportSkip — education
19makemore3.9kJun 2024Char-level autoregressive modelSkip — education
20reader33.5kNov 2025"Read books together with LLMs" — doc + LLM interactionWATCH — useful pattern reference for our Note/Document + LLM interaction; 1-hour code-walk before building doc-summarization skill

llm-council deep dive

What it is: Karpathy's reference implementation of "asking multiple LLMs and reconciling answers." For complex/ambiguous questions, you query a council (e.g. Claude + GPT-4 + Gemini), see the spread of answers, and synthesize a final response. Often catches mistakes that any single model would make alone.

Why it matters for IKA

IKA needHow llm-council answers it
v17 multi-vendor second-opinion (gstack #3) — high-stakes Operations actions need a second model to review before executionThis IS that pattern. Karpathy's implementation is canonical reference; lift the request fan-out + answer reconciliation logic.
Token stack Layer 3 (LiteLLM smart routing) — route low-stakes to Haiku, high-stakes to SonnetCouncil pattern extends routing to "ask multiple models when stakes are high; defer to single model when stakes are low"
Builder side — when I (Claude) face an ambiguous design call, asking a council instead of guessingDirect application during v3.0 / v3.5 build for the hardest architectural decisions

What to lift from llm-council

Operating notes

reader3 — quick look

Small repo (~3.5k stars) demonstrating the pattern of "read a book + LLM together." Loads a PDF, splits into chunks, lets the user converse with the LLM about specific passages with the book always in context.

For IKA: relevant when we build the document-summarizer + note-companion skills (per v19.5 catalog). Don't lift the code wholesale (it's a demo, not a library); lift the UX pattern — keep the source document visible side-by-side with the conversation, let user click any passage to ground the next agent turn.

Effort: 1-hour code walk before building our own doc-companion skill. Maybe a few specific functions worth extracting (chunking strategy, citation format).

Why ignore the educational repos

nanoGPT, llm.c, llama2.c, micrograd, minGPT, LLM101n, nn-zero-to-hero, build-nanogpt, ng-video-lecture, makemore, minbpe, char-rnn, convnetjs, neuraltalk(2), arxiv-sanity-preserver — these are training/inference internals + courses. Excellent if you want to learn how transformers work or build your own model from scratch.

IKA's posture: we use Anthropic Claude as the model layer and don't train. So:

Different posture would change this calculus. If we wanted full sovereignty over the model layer (no third-party LLM API), nanochat at $100 + llm.c for training would be the path. Out of scope for v0.

Recommendation

Action plan

  1. Add llm-council to the gstack #3 / v17 second-opinion middleware spec in /ika-pro-architecture — note Karpathy as a second-source confirmation of the pattern + reference implementation. ~10 minutes of doc edit.
  2. Vendor llm-council code under /vendored/karpathy-llm-council/ alongside the gstack prompt-injection classifier when we build out the second-opinion middleware. Pin to a specific commit. ~half day to integrate.
  3. Code-walk reader3 before we build the document-summarizer / note-companion skills (per v19.5 catalog). Lift the UX pattern of side-by-side document + chat. ~1 hour.
  4. Skip everything else. Karpathy\'s educational repos stay as ML reference, not infrastructure.

Open questions for Mats

Sources: github.com/karpathy top-20 repos by stars (2026-04-26). Companion: /gstack, /tokens, /graphify, /ika-pro-architecture. On-disk at build/web/bi/main/karpathy/index.html.