Teach agents everything they need to know about your project with a single Markdown file.
./AGENTS.md
in the current working directoryAGENTS.md
in sub-folders the agent is working inside~/.config/AGENTS.md
#
) as sections`
) for exact commands, filenames, env varsSection | Purpose |
---|---|
Build & Test | Exact commands for compiling and running the test suite. |
Architecture Overview | One-paragraph summary of major modules and data flow. |
Security | API keys, endpoints, auth flows, rate limits, sensitive data. |
Git Workflows | Branching strategy, commit conventions, PR requirements. |
Conventions & Patterns | Folder structure, naming patterns, code style, lint rules. |
Keep it short
Use concrete commands
Update alongside code
One source of truth
Make requests precise
Verify before merging
Ingestion
Planning
Tool selection
edit_file
and
create_file
.Validation