- Status: Accepted
- Date: 2026-02-20
- Author: Kevin Ghadyani
- Source: commit e5ecdcd4fb084275c13770bc846482f5441751bb
- Area: ai-workflow
- Tags: #ai-workflow #agents-md
AGENTS.md at the repo root is the single source of truth for AI agent instructions. Every AI tool
(Claude, Gemini, GitHub Copilot, and any future tool) must point to this file. Tool-specific shim
files (.claude/ai.md, .gemini/ai.md, .github/copilot-instructions.md) contain one line
redirecting here.
Maintaining separate instruction files per tool. The natural drift is for each AI tool to accumulate its own rules file that diverges from the others — Claude gets one set of rules, Copilot gets a subset, Gemini gets none. This guarantees agents make inconsistent decisions depending on which tool happens to be used.
One file means one update location. When a rule changes (naming conventions, PR template, test style), it changes in one place and every tool picks it up on the next conversation. Diverged instruction files are invisible technical debt that cause regressions silently.
- Never add substantive rules to
.claude/CLAUDE.md,.gemini/ai.md, or.github/copilot-instructions.md. Those files must only@includeor link toAGENTS.md. - When a new coding rule is established (from a code review, a regression fix, a PR comment),
update
AGENTS.md— not memory, not a comment in code. - Package-level overrides go in
packages/.../AGENTS.mdand are listed in the rootAGENTS.mdtable in §11.