Context Clash: Prevalence and Limits of Lightweight Detectors for Cross-Tool Coding-Agent Instruction Conflicts
Abstract
Repository-level instructions act as persistent configuration for coding agents, yet projects increasingly maintain parallel files for different tools. These files can appear reasonable in isolation while prescribing incompatible actions. We estimate how often such cross-tool conflicts occur and test whether lightweight screeners can distinguish them from legitimate tool-specific guidance. Two annotators independently reviewed every eligible file pair in a probability sample of 128 repositories, followed by evidence-based adjudication. Conflicts affect roughly one in five eligible repositories and most often concern commands or toolchains. Under either annotator's independent labels, the lower confidence bound stays above one in ten. We evaluate lexical similarity, natural language inference (NLI), and a structured-atom model on a repository-disjoint held-out benchmark. At thresholds chosen to target high precision, each recovers at most one held-out conflict. In an exploratory post hoc analysis, the 37 pairs that NLI ranks highest contain 13 of the 23 held-out conflicts, which suggests NLI could help prioritize human review. These results establish cross-tool inconsistency as a measurable maintenance problem and provide a benchmark that separates conflicts from legitimate tool-specific differences.
Community
In a probability sample of 128 repositories, an external annotator and I independently reviewed every eligible pair of instruction files written for different coding tools, and roughly one in five eligible repositories had a conflict, most often about commands or toolchains. Under either annotator's own labels the lower confidence bound stays above one in ten. I also tested lexical similarity, NLI and a structured-atom model on a repository-disjoint held-out benchmark, and at thresholds chosen for high precision each recovered at most one held-out conflict. Data and code are at https://doi.org/10.5281/zenodo.24599998
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- What Open-Source Projects Tell Their Coding Agents: A Census of AGENTS.md and CLAUDE.md (2026)
- AgentTorrent: A Dataset of Context and Harness Engineering Artifacts on GitHub (2026)
- Launder-Bench: Can Repository-Level Agentic Code Laundering Be Detected? (2026)
- Does the Agent's Map Match the Territory? Architectural Claims in AI Agent Context Files and Their Fit with the Code (2026)
- ANCHOR: Assessing Naturalistic Constraint Hierarchies and Ordering in Repository-Grounded Agentic Coding (2026)
- Hidden in Plain Sight: an Empirical Study about The Instruction Stacks of Coding Agents (2026)
- Do They Do as They Are Told? Investigating Coding Agents'Adherence to Explicit Instructions in Context Files (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2612.00485 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 1
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper