Skip to content
Halil Sekeroglu
The CLAUDE.md born from Karpathy's warnings: four rules

KARPATHY The CLAUDE.md born from Karpathy's warnings: four rules

The CLAUDE.md born from Karpathy's warnings: four rules

Open the repo on GitHub

Checked on 30 November 2026 against the repo itself, its README and Karpathy's post on X.

github.com · checked on November 30, 2026

A free file compiled from Andrej Karpathy's notes on AI coding mistakes: what it says, how to add it, what to watch for

In short:

  • Who: Andrej Karpathy, a founding member of OpenAI and former Director of AI at Tesla. On 26 January 2026 he wrote that AI models make wrong assumptions on your behalf while coding and just run along with them.
  • The file: a developer (Jiayuan Zhang) turned those notes into a single CLAUDE.md seven hours later. Karpathy did not write it. The repo now lives at multica-ai/andrej-karpathy-skills; it had 237,526 stars on 30 November. The file is 65 lines.
  • Four rules: 1) Think Before Coding: don't assume; ask when unsure. 2) Simplicity First: write the minimum code that solves the problem; if 200 lines could be 50, rewrite it. 3) Surgical Changes: touch only what you must. 4) Goal-Driven Execution: define success, loop until verified.
  • Add it to an existing project (README: Existing project, append). In your project folder: echo "" >> CLAUDE.md · curl https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md >> CLAUDE.md
  • The README's other suggested route is the Claude Code plugin: /plugin marketplace add forrestchang/andrej-karpathy-skills, then /plugin install andrej-karpathy-skills@karpathy-skills.

Watch out

The README's curl -o command for new projects overwrites an existing CLAUDE.md; in an existing project append with >>. The file is free (its README says MIT); Claude Code itself needs a paid plan. These rules don't guarantee fewer mistakes: Karpathy himself wrote that the errors continued despite simple instructions in his CLAUDE.md. Note: AI makes things easier for bad actors too. Check what it does before installing, and try it first in a separate folder.

My take

“Claude Code reads the CLAUDE.md in your project folder at the start of every session; these four rules go at the end of that file. Read it before you add it.”

Sources

  1. multica-ai/andrej-karpathy-skills (GitHub)github.com
  2. CLAUDE.md (65 lines)github.com
  3. Andrej Karpathy on X, 26 Jan 2026x.com
  4. Claude Code docs: CLAUDE.md and memorycode.claude.com

Hear about new tools early. Follow so you don't miss them.

Follow on Instagram

Next video

career-ops: score a job against your CV before you apply