CLAUDE.md

A Markdown file in a project that Claude Code reads first: commands, rules and conventions for that repository.

Also called: project memory

Source
Claude

In plain English

Put it in the repo root (and optionally in subfolders). Keep it short and specific.

Example

Following the conventions in CLAUDE.md, I used the existing Content class.

In code

# CLAUDE.md
- Run tests: php artisan test
- Never commit .env
- Content lives in content/{locale}/*.json

Same idea elsewhere

Tool File
Codex AGENTS.md
Cursor .cursor/rules

Related terms

Added 2026-11-26 · Last reviewed 2026-11-30