doc/development/documentation/agents_md.md
The AGENTS.md file provides documentation instructions for GitLab Duo.
When an agent writes documentation in the gitlab/doc directory, it
reads AGENTS.md automatically and applies the instructions to its output.
Before you submit AI-generated content for review, ensure the following:
AGENTS.md is applied automatically at the start of each new GitLab Duo Chat
conversation. You do not need to reference it in your prompt. To get the best
results:
The AGENTS.md file is located in gitlab/doc/AGENTS.md.
Because of the location, the instructions apply to documentation only. The instructions are not
applied when contributors work on unrelated parts of the codebase.
Before you request a review, check for the following known issues with AI-generated content:
If you notice a recurring pattern in AI-generated content, open an MR to add or refine an instruction.
When you update the file, follow these principles:
Write concisely.Avoid marketing language,
provide an example: Avoid marketing language. For example, do not use "powerful" or "seamless".AGENTS.md, conversations must be restarted for changes to take
effect. Existing conversations do not pick up changes automatically.