r/opencodeCLI • u/Ok-Buyer-9421 • 3h ago
Are agents.md essentially a wishlist?
I audited 20 open-source repos to see how often their written agent rules were actually followed. Four of them banned AI co-author lines in AGENTS.md.
But found that agent PRs added them anyway, 102 times in a month.
So, I've been working on an approach that turns AGENTS.md rules into executable checks:
- Glob selects the relevant files.
- Grep catches deterministic violations.
- A model judges anything that requires interpretation.
The checks live in the repo and don't depend on which coding agent you use.
How do you enforce your AGENTS.md rules beyond putting them in the agent's context?? Tips wanted :)