CLAUDE.md
Definition
Claude Code's instruction file, read at the start of a session from the project and user directories, so standing rules apply every time.
In more detail
Project CLAUDE.md files are usually committed so the whole team shares them; a personal one in your home directory applies to every project. CLAUDE.md can import other files with @path, so many teams keep shared instructions in AGENTS.md and import it.
Related terms
AGENTS.md
An open, tool-neutral Markdown file of instructions for coding agents working in a repository, read by many different agents and editors.
Context engineering
Deciding what information, tools and history a model sees at each step, and what to leave out, to get the result you want.
Cursor rules
Instruction files in a project's .cursor/rules folder that tell Cursor's agent about conventions, applied always, by file pattern or on request.
Read more about CLAUDE.md
- CLAUDE.md and AGENTS.md: instruction files for coding agents
CLAUDE.md vs AGENTS.md: what to put in each, where Claude Code, Codex, Cursor and Copilot look for them, and how to keep one source of truth without drift.
- Your first session with Claude Code
Install it, run it in a real repository, approve its first changes, commit a reviewed edit and learn the commands you will use daily.