karpathy-diff
Karpathy Diff Review
Review a code change before it is committed or accepted, against Andrej Karpathy's principles for LLM coding. The governing question is simple:
Does every changed line trace to the task that was asked?
Coding agents reliably do more than they were asked — they refactor adjacent code, reformat, rename, delete comments and code they don't fully understand, and over-build the part they were asked for. None of that is visible if you accept diffs without reading them, which is how most changes get accepted. This review is the safety net under that.
Default to report first, fix on approval. Report what doesn't trace to the task; never revert or rewrite the user's change without their say-so.
1. Get the change
Unless the user points somewhere specific, review all uncommitted work: