Skip to main content
Create a .mintlify/AGENTS.md file at the root of your documentation project to customize the agent’s behavior (Agents.md is also an accepted filename).
Place your AGENTS.md file inside the .mintlify/ directory, not at the root of your project. If you store the file at the root of your project, your custom instructions are publicly accessible by the /agents.md path. The .mintlify/ directory is not served publicly so your AGENTS.md file is not accessible when in that directory.If you must store your AGENTS.md file at the root of your project or any other directory, add it to your .mintignore file to exclude it from your documentation site.
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

.mintlify/AGENTS.md