@zostaff: Andrej Karpathy spent 20 years writing code by hand. Then he switched to Claude Code. A week later he posted everything…
Summary
A set of rules derived from Andrej Karpathy's experience with Claude Code went viral, accumulating 145k GitHub stars in 3 months and offering guidelines to improve AI coding agent behavior.
View Cached Full Text
Cached at: 05/23/26, 12:09 PM
Andrej Karpathy spent 20 years writing code by hand. Then he switched to Claude Code. A week later he posted everything that broke.
Some guy read it and turned it into a 70-line file. 145k stars in 3 months.
name: andrej-karpathy-skills
4 rules that fix Claude Code’s worst habits:
-
Don’t assume. The model picks one interpretation silently and runs with it. This rule forces it to state assumptions and ask when uncertain.
-
Don’t hide confusion. If something’s unclear, stop. Name what’s confusing. Ask. No more “I’ll just guess”
-
Surface tradeoffs. Multiple ways to do it? Present them. Don’t pick silently.
-
Minimum code that solves the problem. No speculative features. No abstractions for single-use code. If you wrote 200 lines and 50 would do, rewrite it.
Drop the file into project root. Works with Claude Code, Cursor, any agent that reads CLAUDE.md.
Bookmaked it. Repo below.
repo: https://github.com/multica-ai/andrej-karpathy-skills…
trading here: https://predictparity.com/?code=zostaff
Similar Articles
@DivyanshT91162: https://x.com/DivyanshT91162/status/2057692858501804435
Andrej Karpathy's observations on AI coding agent behavior led to the viral CLAUDE.md file, which provides 4 behavioral rules for AI agents and became one of the fastest-growing repositories on GitHub, signaling a shift from AI intelligence to AI discipline in coding.
@rewind02: Andrej Karpathy spent 4 minutes in an interview explaining a single idea about how most people haven’t even started lea…
Andrej Karpathy identified 4 behaviors that break Claude Code; a developer expanded them into 21 rules, achieving 82,000 GitHub stars and improving coding accuracy from 65% to 94%.
@akshay_pachaar: A single 𝗖𝗟𝗔𝗨𝗗𝗘.𝗺𝗱 file just hit 192k GitHub stars. (derived from Karpathy's coding rules) Andrej Karpathy obse…
A single CLAUDE.md file that provides structured behavioral guidelines for Claude Code, derived from Andrej Karpathy's observations on common LLM coding pitfalls, has gained 192k GitHub stars. It aims to prevent over-engineering, reduce wrong assumptions, and enforce simplicity in AI-generated code.
@PrajwalTomar_: Karpathy complained about Claude making mistakes, someone turned it into 4 rules, and it became the fastest-growing sin…
The author updates a viral GitHub prompt template that drastically reduced Claude's coding errors, introducing eight new rules to solve modern AI agent issues like context loss and workflow conflicts for developers using Claude Code.
@mdancho84: 80% of data scientists are using Claude Code wrong. They open a repo, ask for code, accept the first plausible answer, …
A tweet discusses how many data scientists misuse Claude Code and promotes a CLAUDE.md file inspired by Andrej Karpathy's observations to improve AI coding behavior.