AI Lab5 December 20268 min read

CLAUDE.md file tested: 12 runs gained nothing from it, until it held rules the code hides

Result card: CLAUDE.md only helped with rules the code could not show. Round 2 bars of checks passed out of 10: no CLAUDE.md 7, auto-written 7, hand-written 10. A dark box says that in round 1 all 12 of 12 runs scored full marks with or without a file.
Round 2: checks passed out of 10, average of 2 runs per setup. The box shows round 1.

On 4 December the ClaudeDevs account on X (about 5,500 likes) announced that the Claude Code desktop app can now draft your CLAUDE.md for you, and lets you edit it in the app. That raises a plain question. What is a CLAUDE.md file worth? Does an agent do better with one, and does it matter if Claude wrote it?

I could not test the desktop app itself. So I tested the idea behind it on my own Mac, with a small project and a hidden grader.

Does a CLAUDE.md file really help Claude Code? How did I test it?

I wrote the project, the tasks and the grader before the first run.

What happened in round 1, when the code showed every rule?

Nothing changed. All 12 runs scored full marks: 13 of 13 checks on the refund task and 9 of 9 on the monthly summary, with no file, the auto-written file and the hand-written file alike.

The agents did not need the file. They read the code, saw the REGISTRY comment, the error table and the audit helper, and copied the pattern. One agent with no file wrote that the folder had no CLAUDE.md, so it followed the README and run_checks.py instead.

The tokens were almost the same too. Each run reported about 60,000 to 64,000 tokens. The average was 61,500 with no file, 61,900 with the auto-written file and 62,300 with the hand-written one.

Terminal output of the hidden grader: one line per run. All 12 round 1 lines show full marks. In round 2, the no-file and auto-written runs show 7 of 10 checks, highlighted in yellow, and the hand-written runs show 10 of 10.
The grader's output for all 18 runs. Yellow lines are the ones that missed a rule.

What happened in round 2, with rules the code could not show?

SetupChecks passed (2 runs)Finance rules followed (of 4)Tokens per run
A: no CLAUDE.md7 of 10, 7 of 10161,700
B: auto-written CLAUDE.md7 of 10, 7 of 10163,100
C: hand-written CLAUDE.md with the 3 rules10 of 10, 10 of 10464,500

The one finance rule that A and B met was the audit action name, and they met it by luck, because "refund" is the obvious word. They missed the other three: where to store refunds, the approval limit, and the error when approval is missing. The hand-written file got all of them, in both runs. It cost about 5% more tokens than no file.

This result is close to true by design. A rule that exists nowhere in the code cannot be followed by an agent that is not told it. But that is the point of the test. It shows where a CLAUDE.md earns its place.

Is an auto-written CLAUDE.md worth keeping?

It was accurate. I read it, and I found nothing invented. It listed the commands, described the data model, the audit trail, the error codes, the registry and the "do not edit" file. It was good at writing down what the code already shows. It also ran to about 400 words, against about 120 for my first hand-written rules.

But in my test it added nothing the agents could not find alone. And it could not add the one thing that matters: the rules in people's heads. Nobody can rebuild those from files. An auto-written draft is a fine start. The value is in what you add by hand.

What does this test not show?

What should you put in a CLAUDE.md file?

For a related look at what extra setup costs, see my single agent vs multi agent test, and the test of whether Claude Code stays inside the change you ask for.

FAQ

What is a CLAUDE.md file?

It is a plain text file in a project that Claude Code reads for instructions: how to run checks, how the project is laid out, and rules to follow. You can also keep one in your home folder for rules that apply to every project.

Does a CLAUDE.md file help Claude Code?

It depends on what is in it. In my test, a file that repeated what the code already showed made no difference: 12 of 12 runs scored full marks without one. A file with 3 rules that were not in the code raised the score from 7 to 10 checks out of 10.

What should I put in a CLAUDE.md file?

Put in what the agent cannot see: business rules, approval limits, off-limits files and the command that must pass before work is done. Leave out descriptions of code that the agent can read in seconds.

Should I let Claude write my CLAUDE.md?

As a first draft, yes. The draft in my test was accurate and had no invented facts. But it only restated the code. Add the rules that live in your head, and cut anything an agent would find by itself.

Does a longer CLAUDE.md cost more tokens?

A little. Runs with the hand-written file used about 5% more tokens than runs with none. Every line is read on every run, so keep the file short.

Sources

TH

Written by Tabish Hassan, a software developer in Pakistan. 4+ years of production React and TypeScript, 75 iOS apps on the App Store. The tests on this blog run on my own Mac, with the method and limits shown.

Found a mistake or got different numbers? Email hello@tabishapps.com. Published 2026-12-05.