AGENTS.md file in your repository to customize the agent’s behavior (Agents.md is also accepted). The agent reads this file and follows any instructions you provide.
The agent searches for AGENTS.md files in two locations. It first checks the documentation directory, then the repository root. If you have AGENTS.md files in both locations, the agent uses the file in your documentation directory.
Add any instructions that you want the agent to follow. The agent appends these instructions to its system prompt, so the instructions apply to all tasks, whether you use the agent in your dashboard, on Slack, or via the API.
What to include in AGENTS.md
Consider adding instructions for:- Style preferences: Voice, tone, formatting, and terminology specific to your documentation.
- Code standards: Programming languages, frameworks, and coding conventions to use in examples.
- Content requirements: What sections or information to include for different types of pages.
- Project context: Specific details about your product, architecture, or user base that inform documentation decisions.
Example AGENTS.md file
AGENTS.md