Skip to content
Minute Campus.

One repo, one minuteLesson 031 min

One file of rules that changes how an AI writes code

A single file of rules for a coding agent has more than 200,000 stars on GitHub. Andrej Karpathy did not write it. A developer turned his posts about how AI models go wrong into four rules: think before coding, simplicity first, surgical changes, and goal-driven execution. The agent reads the file before it works. Rules are advice, not a guarantee, so you still review the code.

Remember

An agent's rules file is advice, so you still review its code.

Sources

Checked at the source.

Every claim in the lesson was checked against these before it was recorded.

  1. 1andrej-karpathy-skillsGitHub repository (multica-ai) · read 4 Oct 2026The README names four principles derived from Karpathy's observations on LLM coding pitfalls; MIT licence.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

One short file of rules has more than two hundred thousand stars on GitHub. What is in it? The repository is called andrej-karpathy-skills. Andrej Karpathy, a well-known AI researcher, did not write it. He posted about how AI models go wrong when they write code: they make assumptions for you and carry on without checking. A developer turned those observations into four rules for a coding agent. One: think before coding, and say what you are unsure about. Two: simplicity first. Solve only the problem you were given. Three: surgical changes. Touch only what the task needs. Four: goal-driven execution. Define what success looks like, then check it. You add the file to your project, and the agent reads it before it works. The caution: rules are advice, not a guarantee. An agent can still ignore them, so you still review the code.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.