Skip to content
All reels

CLAUDE.md 01 · 0:44

CLAUDE.md: what to keep and what to cut (Anthropic's guidance)

Anthropic's Claude Code docs say every line in CLAUDE.md takes a little of Claude's attention on every task, and a long file can bury the rule you care about. Here is what to keep, what to cut, and a free audit prompt that labels every line KEEP, CUT or MOVE.

Keep

  • The exact test, typecheck and lint commands, and how to run one test file.
  • Places where the code misleads, and decisions that aren't written in the repo.
  • Anything you had to correct twice. Write it as a concrete, checkable rule, like "Run npm test before committing".

Cut

  • Anything Claude can find by reading the repo. Anthropic's test: only write down what Claude can't find there.
  • The IMPORTANT in all caps. Anthropic says adding it probably won't fix a rule Claude ignores.
  • Rules that must never break. CLAUDE.md is guidance, so those belong in a hook or a deny rule. Multi-step procedures belong in a skill.

How long

  • Anthropic's memory docs say to target under 200 lines per CLAUDE.md file. It's a recommendation, not a hard limit.

Sources

The CLAUDE.md in the video is an example with invented lines, and the line counts are illustrative. Neither docs page shows a date (read Nov 19, 2026); docs can change. Tested on a small scratch project.

Want this done for your business?

We build websites and AI tools for small businesses anywhere in the US.

Get a free demo
Get a free demo