Supported files
The agent looks for any of these files:AGENTS.mdat the repository rootAGENTS.mdin the subdirectories the agent works inCLAUDE.mdGEMINI.md.github/copilot-instructions.md
How agents use instructions
- The agent reads the instructions for every repository it works in. This includes repositories it clones or checks out during the session.
- The guidelines, conventions, and commands in your instructions take precedence over the agent’s default guidance.
- When the agent can’t find a lint or typecheck command, it asks you for one. It may then suggest adding that command to
AGENTS.mdso future sessions run it automatically.
Write an AGENTS.md file
- Create
AGENTS.mdat the root of your repository. - Add the conventions and commands you want agents to follow.
- Commit the file to the branch your sessions use.
AGENTS.md
AGENTS.md in that subdirectory.