Every coding agent session starts with an empty memory. The agent knows programming in general, but it does not know that your team uses pnpm, that the API handlers live in one folder, or that the staging database must never be migrated by hand. A project context file closes that gap. It is a Markdown file at the root of the repository that the agent loads before it does anything else.
The file goes by several names. AGENTS.md is an open format that came out of a shared effort between several agent makers and is stewarded by the Agentic AI Foundation under the Linux Foundation, according to agents.md. The same page describes it as a complement to the README: the README is for humans, and AGENTS.md holds "the extra, sometimes detailed context coding agents need: build steps, tests, and conventions." Claude Code reads CLAUDE.md, and its memory documentation explains that it can also read a repository's AGENTS.md, or pull it into a CLAUDE.md with an @AGENTS.md import line. Cursor keeps scoped rules as .mdc files under .cursor/rules and also accepts a plain AGENTS.md, per the Cursor rules documentation.
If your team uses more than one agent, write one AGENTS.md and point every tool at it. Three separate files for three tools will drift apart within weeks.
A context file is guidance, not enforcement. Claude Code's documentation says the agent treats these files "as context, not enforced configuration," and that blocking an action regardless of what the model decides requires a hook or a permission setting (Claude Code memory docs). Keep that split in mind from the start: the file shapes behavior, and tooling enforces it.



