Create your AGENTS.md
Adding AGENTS.md to your project takes just a few minutes. Here’s everything you need to get started.Create the file
Create a file named
AGENTS.md at the root of your repository. The name is case-sensitive — agents look for exactly this filename.Add build and test commands
Provide the exact commands an agent should run. Agents will execute these automatically to verify their changes:
AGENTS.md
Agents will attempt to run these commands automatically. Be explicit about what must pass before a change is considered complete.
A complete example
Here’s what a real, production-ready AGENTS.md looks like:AGENTS.md
Tips for a great AGENTS.md
Use real commands
Copy-paste commands directly from your Makefile, package.json, or CI config — don’t paraphrase them
Keep it updated
Treat AGENTS.md as living documentation — update it whenever your build or testing workflow changes
Be specific
The more specific your instructions, the better agents will follow them. Vague guidelines lead to vague results
Add security notes
Flag sensitive files or areas the agent should be careful about — especially for deployment or auth-related code
Next steps
What to include
Explore every section type and see detailed examples for each
Agent compatibility
See all 20+ agents that support AGENTS.md and any agent-specific configuration
Monorepos
Learn how to use nested AGENTS.md files in monorepo projects
Format reference
Complete specification for the AGENTS.md format
