Back to all rules / Drift between files
agents-md-unread-variant
AGENTS.override.md, AGENTS.local.md or .agents/*.md is read by some agents only, or by none.
Source: Codex docs: AGENTS.md (learn.chatgpt.com), read 14 October 2026.
On GitHub: the rule doc and the tests.
Jump to another rule89
What it catches#
AGENTS.override.md, AGENTS.local.md or .agents/*.md is read by some agents only, or by none.
An AGENTS.override.md, AGENTS.local.md or .agents/*.md file. Codex reads AGENTS.override.md in place of AGENTS.md; Claude Code never reads any of these. The note says which agents load the file, so nobody assumes it applies everywhere.
Why it matters#
Codex reads AGENTS.override.md in place of AGENTS.md; Claude Code never reads these variants, and neither reads AGENTS.local.md or .agents/*.md. The note says which agents load the file.
Bad example#
AGENTS.md
AGENTS.override.md # "Skip the integration tests this week"
Codex follows the override, Claude Code and Cursor follow AGENTS.md. The team sees different behaviour from different agents and does not know why.
Good example#
AGENTS.md # one file every agent reads
How to fix#
Merge the content into AGENTS.md if every agent should follow it. Use an override only as a short-lived local file, and delete it when the reason is gone. A variant that a loaded file points at on purpose is not reported: for AGENTS.local.md or a file under .agents/, mention it by name in a loaded file (better, import it); for AGENTS.override.md, import it from a CLAUDE.md with @AGENTS.override.md.
Suppress or configure#
For one finding, put a comment on the line above it. The reason after -- is optional but worth writing:
<!-- asitis-disable-next-line agents-md-unread-variant -- why this one is fine -->
For a whole file:
<!-- asitis-disable-file agents-md-unread-variant -- why this file is an exception -->
For every file, turn it off or change its severity in .asitisrc.json:
{ "rules": { "agents-md-unread-variant": "off" } }
A .asitisrc.json overrides entry limits a change to some paths, and a baseline (asitis lint --format json --write-baseline) accepts today's findings so only new ones fail the build.
Source#
Codex docs: AGENTS.md, read on 14 October 2026.
See what an agent changed in your CLAUDE.md. Keep or revert each change.
The linter is free and needs no signup. I'm also building a desktop editor for the markdown your agents write and read. It shows what an agent changed since you last looked, lets you keep or revert each change, and never touches a line you didn't edit. No release date yet. One email to confirm, one when the paid beta opens, one when 1.0 ships. $29 once for a founding licence, with 24 months of updates.
Or add the linter to CI, no email needed.
Your address is stored with Cloudflare, which hosts this site. No IP address is kept. See the privacy policy.
Related guides
Run the rule
- In your browser, on one file
- In Claude Code, on the project
- In CI, on every pull request
This page is generated from the plugin's rule registry. Edit it on GitHub. False positive? Open an issue with the line it fired on.