A 65-Line File That Fixes Claude Code. Here's What It Actually Tells Us About AI.

A 65-line CLAUDE.md file that improves Claude Code accuracy from 65% to 94%

Someone turned Andrej Karpathy's three biggest complaints about AI coding agents into a 65-line text file. Developers using it report Claude Code accuracy jumping from 65% to 94%.

I care less about what the file does than about what that gap reveals.

Who is Karpathy and why does this matter

Andrej Karpathy is one of the most credible voices in AI. He was a founding member of OpenAI and head of AI at Tesla, founded Eureka Labs, and joined Anthropic in May 2026. When he posts about what AI is getting wrong, the industry listens.

His complaints about AI coding agents are specific. He made three precise observations about where the behavior breaks down.

  • Silent assumptions instead of asking clarifying questions
  • Overcomplication: writing 200 lines when 20 would do
  • Touching code you never asked it to touch

Someone took those three complaints and built a CLAUDE.md file from them. Drop it in your project folder and Claude Code reads it automatically at the start of every session. It takes thirty seconds to set up.

You can find the file here: github.com/multica-ai/andrej-karpathy-skills

The three complaints, unpacked

One: AI guesses when it should ask. When a coding agent isn't sure what you mean, it has two choices: ask, or assume. Almost every agent assumes by default. Guessing produces output, and asking feels like friction. The result is code that compiles but solves a problem you didn't have. The Karpathy file flips this. Before writing anything, Claude has to either confirm its understanding in one sentence or surface the specific ambiguity and ask.

Two: complexity is the default. Ask Claude to add a button and you often get back a button, a wrapper component, a config file, and a small refactor of the parent. That's five files for one feature, and nobody asked for the abstraction. The fix: minimum viable code, no speculative flexibility, no preemptive generalization. Three similar lines stay as three similar lines until there's evidence they'll become five.

Three: it touches things you didn't ask it to touch. A one-line fix that comes back as a 200-line diff because the agent "cleaned up" while it was in there. The rule: surgical changes only. Edit what was requested. Leave everything else exactly as it was. If the surrounding code is bad, say so instead of silently fixing it.

There's also a fourth rule. Every task needs a verifiable success criterion up front. Did the test pass? Did the bug disappear? You can't be "done" until you can prove it.

The real insight here has nothing to do with code

What caught my attention is how ordinary the file is.

It's a set of clear instructions in a place Claude reads by default. It works because Claude Code's default behavior is much sloppier than its actual capability. The gap between what the model can do and what it does without direction is enormous, and a plain text file closes most of that gap.

The model was capable enough. It failed because nobody told it what they actually expected.

This maps onto something I keep coming back to in my own work with AI. The bottleneck is almost always a lack of direction. You get lazy AI output when you treat AI as a vending machine instead of as something that needs to be briefed, steered, and held to a standard.

I use a CLAUDE.md myself, though for my second brain rather than for code. It's a personal knowledge base I've been building with Claude as the steward. The file tells Claude how to process new material, what categories exist, how to write in third person, how to flag contradictions. Without it, every session would start from scratch. With it, Claude knows exactly what it's maintaining and why. I've since written up the full setup in how Claude Code runs my creative studio, including what goes in the file and why it should keep shrinking.

The principle is the same whether you're building software or a personal wiki: the quality of the output is directly proportional to the quality of the context you provide.

How to set it up in 30 seconds

Even if you're not a developer, the setup is three steps.

1. Open the GitHub repo and copy the contents of the CLAUDE.md file.

2. Paste it into a new file called CLAUDE.md in the root folder of your project. Same level as your package.json or .git folder.

3. Save. Done. Claude Code reads it automatically at the start of every session.

If you already have a CLAUDE.md in your project, just append the Karpathy rules to the bottom.

Claude Code CLAUDE.md file: Karpathy rules for AI accuracy

What this means beyond the file

The 65% to 94% accuracy jump is interesting. What it says about how most people are using AI right now interests me more.

Most people are using AI at default settings, wondering why the output is inconsistent, blaming the model and accepting the slop.

The people getting good results understand that AI needs direction, and a prompt alone isn't direction. Direction is a clear brief, defined constraints, stated expectations, and a standard to be held to: the same things you'd give a talented but uninitiated person on their first week.

AI under-delivers when nobody has told it what good looks like for this project, this context, this person.

AI does not remove the need for taste. It exposes the lack of it.

A 65-line file can close a 29-point accuracy gap. Before you wait for a smarter model, get better at setting the standard for the one you already have.

Are you using a CLAUDE.md or any kind of persistent instruction file in your AI workflow? I'm curious what's in it.

Kurt Loy
Kurt Loy

Creative technologist and AI Forward Deployed Creative at Original Copy Studio.