Karpathy-Inspired Claude Code Guidelines

github.com

A single CLAUDE.md file with four principles, derived from Andrej Karpathy's observations, to stop Claude Code from over-assuming and overcomplicating.

Pricing
Open source
Published
Oct 26, 2026

Next steps

What it does

andrej-karpathy-skills is an MIT-licensed repository containing one CLAUDE.md file that improves Claude Code's behavior, based on Andrej Karpathy's public observations about LLM coding pitfalls: making silent wrong assumptions, overcomplicating code and APIs, and changing code orthogonal to the task. It encodes four principles: Think Before Coding (state assumptions, surface tradeoffs, ask when unsure), Simplicity First, Surgical Changes, and Goal-Driven Execution with tests-first, verifiable success criteria. The guidelines bias toward caution over speed for non-trivial work. It is maintained by the author of Multica and offers English and Simplified Chinese READMEs.

Use cases

  • Drop a CLAUDE.md into a repo to make Claude Code ask before assuming
  • Reduce unnecessary abstractions and unrelated edits in agent PRs
  • Adopt tests-first success criteria for agent tasks

Frequently asked questions

What is in the repo?
Mainly a single CLAUDE.md file with four coding principles, plus English and Chinese READMEs; MIT license.
Is it affiliated with Andrej Karpathy?
No, it is derived from his public observations on LLM coding pitfalls and maintained by the Multica author.
Does it work with other agents?
It is written for Claude Code, but the principles can be adapted to other agents' instruction files.
Log in to join the discussion