CLAUDE.md

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

Claude

Also called: project memory

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

Example

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

AI says

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

Same idea elsewhere

Tool File
Codex AGENTS.md
Cursor .cursor/rules

Related

Updated 2026-11-26 Hooks →