AGENTS.md is a lightweight instruction file placed at the root of a repository. It tells an AI coding agent how the project is organized, which commands to run, and what conventions or boundaries must be respected.
What to include
Document the development commands, test strategy, directory structure, style rules, and release path. Add explicit safety constraints for databases, credentials, production systems, and files that must not be touched. Keep instructions specific enough to verify.
Keep it current
An outdated instruction file is worse than no instruction file. Update it when the build system, deployment path, or architecture changes. Nested AGENTS.md files can provide narrower rules for subdirectories.
A useful baseline
State the stack, package manager, local preview command, required checks, formatting command, and the exact production release procedure. Then add project-specific cautions that a new contributor would otherwise learn the hard way.