Why AGENTS.md Support in AI Coding Tools Comes in Three Tiers: A Quality Framework from Parsing to Adoption
As AI coding tools work directly inside repositories, teams increasingly judge them by whether they understand a project's conventions rather than by single-shot answer quality. AGENTS.md has emerged as a common, tool-agnostic convention for declaring project context, constraints, and preferences at the repository root. This article breaks support quality into three tiers — parsing the file, enforcing its rules, and integrating it into team workflows — explains what each tier requires technically, and offers a conflict-based checklist for testing where a given tool actually sits. It also covers practical guidance for writing an effective AGENTS.md and why "trust but verify" with CI, lint, and tests remains necessary.
Why AGENTS.md Support in AI Coding Tools Comes in Three Tiers: From Parsing to Adoption
1. Background: Why Repository-Level Conventions Matter
As intelligent coding tools become deeply involved in code repositories, the focus of developers is shifting from “how good is a single answer” to “does the tool understand this repository’s conventions.” A common pain point: every time the model generates code, it re-guesses the project’s directory layout, testing approach, naming conventions, and commit habits, which leads to drifting style and repeated rework.
To address this, the community has converged on a general practice: place a structured convention file at the repository root that declares project background, constraints, and preferences to AI coding tools. AGENTS.md is one of the popular general conventions that emerged in this context. It is not a feature unique to any single product, but rather a set of instructions for an agent — any tool willing to read it gains project-level context.
Whether a tool reads the file, how it interprets it, and whether it keeps following it across long tasks account for enormous differences in support quality. That difference can be abstracted into three tiers, commonly described as “three levels of support.”
2. Defining the Three Tiers of Support Quality
Tier 1: Parsed — the file is read
The most basic level of support is that the tool can recognize and load the contents of AGENTS.md. This tier only guarantees that the content enters the context; it does not mean the model will strictly follow it.
Technically, this tier has to solve a few problems:
- File discovery: recursively searching upward from the working directory, or reading the repository root at a fixed location;
- Format parsing: supporting structured Markdown content such as headings, lists, and code blocks;
- Injection timing: loading the file when the session initializes, rather than waiting for the user to explicitly point it out.
The typical failure mode of this tier is “read but unused”: the file contents are concatenated into the system prompt, but the model does not treat the constraints as hard rules during generation. Users will observe the tool claiming to follow the conventions while producing code that violates them.
Tier 2: Usable — constraints are enforced
The core of the second tier is that the convention content genuinely influences generation behavior. The tool turns entries in AGENTS.md into verifiable behavioral boundaries, for example:
- Once a test framework and run command are specified, generated test code uses that framework;
- Once directory responsibilities are declared, new files land in the correct place;
- Once a code style is defined, output conforms to the indentation, naming, and import conventions.
Implementing this tier usually takes more than simple prompt concatenation; it also requires supporting engineering measures: extracting key constraints into structured rules, validating before and after generation, or repeatedly restating relevant entries across multi-turn tasks. The most direct way to judge whether a tool reaches the second tier is a “interference test” — supply conventions that conflict with default habits (for instance, a specific directory structure or unconventional naming) and observe whether the tool complies.
Tier 3: Collaborative — conventions become part of the team workflow
The highest level of support treats AGENTS.md as a dynamic collaboration protocol rather than a static instruction sheet:
- Scoped layering: repository root, subdirectories, and individual user preferences can be stacked, with the tool merging them by priority;
- Sustained compliance: in long-running, multi-step autonomous tasks, the conventions are not “diluted” by subsequent context;
- Conflict flagging: when a user instruction conflicts with the repository conventions, the tool proactively points it out and asks for a decision instead of silently picking one;
- Evolution support: the convention file can be versioned, and the team reviews its changes the way it reviews code.
This tier reflects engineering maturity: conventions are upgraded from a “hint” to a “contract.”
3. How to Evaluate the Support Quality of the Tool You Use
Use the following checklist for a quick assessment:
1. Place an AGENTS.md at the repository root with one rule that conflicts with default habits(e.g., all utility functions go in utils/legacy/; creating helpers/ is forbidden)2. Ask the tool to complete a task that involves creating a new file3. Check:- [ ] Does the file path comply with the convention?- [ ] Is it still followed after multiple turns of conversation?- [ ] When given an explicitly contrary instruction, does it flag the conflict?- [ ] After editing AGENTS.md, does a new session take effect immediately?
Passing all four items means the tool is close to the third tier; passing only the first two puts it in the second tier; if the content is merely “known” while behavior stays unchanged, it is the first tier.
4. Practical Advice for Writing a Good AGENTS.md
Regardless of which tier a tool is at, the quality of the convention file itself directly determines the upper limit of the benefit:
- Concise and executable: express hard constraints in short sentences and lists; avoid long prose that buries the key rules;
- Give commands, not descriptions: instead of “run the tests,” write out the full command to reduce ambiguity;
- Distinguish priority: put inviolable constraints at the top of the file and explicitly mark them as “must”;
- Include counter-examples: state which practices are unacceptable in this repository, such as forbidding a certain class of dependency;
- Keep it in sync: update the file when the project structure changes; an outdated convention is more dangerous than no convention;
- Version and review: bring AGENTS.md into the code review process to ensure team consensus.
Example structure:
# Project Conventions## Must Follow- All new code uses TypeScript strict mode- Every public function needs accompanying unit tests## Directory Layout- src/domain/ domain logic- src/infra/ infrastructure adapters## Common Commands- Run tests: npm test- Local check: npm run lint
5. Limitations and Reasonable Expectations
It is important to recognize that AGENTS.md is not an all-powerful contract. No matter how well the conventions are written, the model can still be affected by context length, task complexity, and default training preferences. The mature approach is therefore “trust but verify”: let the convention file carry the intent, while CI checks, lint rules, and tests do the final gatekeeping. Combining the two is what turns “tool support quality” from a subjective experience into a measurable engineering metric.
6. Summary
The value of AGENTS.md is that it provides a standardized entry point for project-level memory in AI coding tools. The three tiers of support quality — parsed, usable, and collaborative — correspond to three depths: reading, enforcement, and workflow integration. For developers, rather than debating whether a tool claims to support the convention, it is better to actually test its tier with a conflict test; and by treating the convention file as a code asset that is carefully maintained, intelligent tools can reliably produce results that match team expectations in real repositories.
