Skip to content

What is CLAUDE.md?

By the Toolbay team · Checked against the sources below on

CLAUDE.md is a Markdown file of instructions that Claude Code loads into every session. It can live in your project (./CLAUDE.md or ./.claude/CLAUDE.md), in your home folder (~/.claude/CLAUDE.md) or as a local-only ./CLAUDE.local.md. Claude Code joins all the files it finds; none replaces another.

Example

CLAUDE.md
# Commands
- Tests: npm test (must pass before a task is done)
- Types: npx tsc --noEmit

# Rules
- Use 2-space indentation.
- Never edit files in src/generated/.

Good to know

  • Anthropic suggests under about 200 lines per file; longer files reduce adherence.
  • /init writes a first draft from your repo.
  • @path/to/file imports another file, up to four levels deep.
  • .claude/rules/*.md files with a paths list apply only to matching files.

Compared with a skill: CLAUDE.md is always loaded, a skill loads only when needed. Compared with AGENTS.md: AGENTS.md is the cross-agent version of the same idea.