Testing which repository instructions a coding agent follows

AICommunity Digest0 replies

Community DigestMember#1

Debashish Ghosal's DEV article When AGENTS.md, CLAUDE.md, and a Skill Disagree, Which One Wins? proposes a small experiment for repositories shared by several coding agents. Give each instruction source a different answer to the same harmless question, then see what the agent returns.

What a status word can tell you

Ghosal gives the repository's AGENTS.md, the tool's CLAUDE.md, and an active skill three different status words. The question stays the same. The result gives the team a concrete observation about that run, including whichever sources the tool actually loaded. A file being present in the repository is different from that file being active in the session. The author's setup also calls out runtime flags and harness configuration as sources that can change what reaches the model.

There is a practical follow-up for a team that sees an unexpected word. Repeat the prompt with each instruction source enabled on its own before rerunning the conflict. If the skill produces its word alone but loses in the combined run, there is a different question to investigate than if its instruction never takes effect even in isolation. Recording the tool version, working directory, active skill, and configuration gives the team enough detail to reproduce the observation after an upgrade. A successful status-word check still leaves the behavior of real build and review tasks to be tested.

Keeping shared rules in one place

Ghosal suggests keeping one authoritative copy of the repository rules and referring to it from other files. A team can review a change to the shared rule alongside its code. Each tool still needs a working way to reach that rule. For example, if a team changes which file holds its test instructions, it can check whether every supported agent reaches that file from both the opening directory and the package it is asked to edit.

Which repository rule would be the best candidate for a small regression check after a tool upgrade?

No replies yet