@servasyy_ai: Andrej Karpathy: 'Claude's errors: 90% from missing context, not weak model capability.' Without `CLAUDE.md`, error rate is 41%. With 4 basic rules, error rate drops to 11%. Using the following 12 rules, error rate…
Summary
Andrej Karpathy points out that 90% of Claude's errors come from missing context, and shares 12 rules (such as think before writing code, simplicity first, etc.) that reduce the error rate from 41% to 3%, emphasizing that discipline and effective context management are more important than frameworks.
View Cached Full Text
Cached at: 05/19/26, 12:44 PM
Andrej Karpathy: “90% of Claude’s errors come from missing context, not weak model ability.”
Without CLAUDE.md, the error rate is 41%.
With 4 basic rules, the error rate drops to 11%.
With the following 12 rules, the error rate drops to 3%.
These are the 12 rules ultimately distilled by senior engineers:
-
Think before writing code
State assumptions first—don’t guess. The model can’t read your mind, don’t expect it to automatically know what you mean. -
Simple first
Least code, no speculative abstraction. Once you ask Claude to add something for “future flexibility,” you might end up with 200 lines that get deleted next quarter. -
Surgical changes
Only modify what must be modified. Don’t let it “clean up” adjacent code; that’s how a PR balloons. -
Goal-driven execution
Define success criteria first, then loop until validation passes. Without success criteria, Claude either loops forever or stops too early. -
Use the model only for judgment tasks
For example: classification, drafting, summarization, extraction. Don’t let the model handle routing, retries, status code handling, or deterministic transformations. If code can answer it, let code answer it. -
Token budget is not a suggestion
Single task: 4,000 tokens; single session: 30,000. By message #40 during a long debugging session, Claude will re-suggest a fix you already rejected back at message #5. -
Surface conflicts, don’t average them
Two patterns in the codebase? Pick one. If Claude mixes them together, errors get swallowed twice. -
Read before you write
First read exports, callers, shared utilities. Claude is very likely to add a duplicate function right next to an existing one, simply because it didn’t read that part. -
Tests should verify intent, not just behavior
If the business logic changes but the test doesn’t fail, the test is wrong. Claude can write 12 tests that all pass, even if the function actually returns only a constant. -
Checkpoint every important step
Claude might complete steps 5 and 6 on top of a corrupted state from step 4, wasting an hour before anyone notices. -
Match codebase conventions
If the project uses class components, don’t silently switch to hooks. The test pattern might depend oncomponentDidMount; hooks can break it without obvious symptoms. -
Fail loudly
“Successfully completed” while 14% of records are silently skipped—that’s the worst kind of bug. Surface uncertainty; don’t hide it.
What truly compounds is not the next framework, but:
- Using
CLAUDE.mdas cross-session organizational memory - Improving based on eval, not gut feeling
- Valuing checkpoints over raw speed
- Explicitly surfacing conflicts instead of blending them silently
- Discipline over frameworks, always
- One repo, one rules file, no exceptions
Before this becomes the consensus on AI Twitter, get ahead by a few rules.
Study it.
Similar Articles
@DeRonin_: Andrej Karpathy: "90% of Claude's mistakes come from missing context, not a weak model." 41% mistake rate without a CLA…
Andrej Karpathy states that 90% of Claude's mistakes stem from missing context, not model weakness, and provides a set of 12 rules that reduced error rates from 41% to 3% in experiments.
@vincemask: Wow, I had no idea CLAUDE.md had so many tricks. I've been writing it all wrong.
The author reflects on common misconceptions about CLAUDE.md, pointing out that instead of piling on information, one should compress decision criteria, constrain execution boundaries, and consolidate high-frequency rules to improve the efficiency of code agents like Claude Code.
@xiaohu: Claude Code's father's own CLAUDE.md is now just two lines... Claude Code team discusses "less is more" sharing how to communicate with models as capabilities increase: "Don't fight the model by adding more, because each generation of models gets stronger. What you painstakingly build today will soon be useless."
Claude Code team shares best practices: CLAUDE.md should be as short as possible and regularly cleared; insists on CLI over GUI because models improve too fast; using AI to fix bugs is already remarkably efficient. Core strategy: subtract, keep configuration light, and trust model capabilities.
@PrajwalTomar_: Claude isn't broken. Your CLAUDE .md is. Most people think Claude Code makes mistakes because the model is bad. Wrong. …
A tweet argues that poor Claude Code behavior stems from bad CLAUDE.md configuration rather than model flaws, sharing rules to make the agent act like a senior engineer.
@zhanlin990410: Don't tell Claude "do this." Don't tell Claude "write code." Don't tell Claude "fix this bug." Don't treat a Ferrari-level AI like a taxi. 8 prompts you can copy and paste directly:
This article shares 8 advanced prompting techniques for Claude, advising users to avoid vague instructions to fully leverage the AI's potential.