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.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
- Comments
- Accepted for publication at the 42nd ACM/SIGAPP Symposium on Applied Computing (SAC 2027). 7 pages, 2 figures, 7 tables. Benchmark data and analysis code: https://doi.org/10.5281/zenodo.24599998
Related papers
Does the Agent's Map Match the Territory? Architectural Claims in AI Agent Context Files and Their Fit with the Code
Shared title terminologycs.SEBachan Ghimire, Daniela Damian
Evaluating Code Slop in Long-Horizon Coding Agents
Shared title terminologycs.SEShubham Gandhi, Shyam Agarwal, Nachiket Kotalwar et al.
ReleaseSynth: Scaling Data from Software Evolution for Long-Horizon Coding Agents
Shared title terminologycs.SEMan Ho Lam, Chaozheng Wang, Zongjie Li et al.
Proceeding After Seeing: When Coding Agents Act on Users' False Claims About the Code
Shared title terminologycs.SEYi Sun
Information Needs in Code Review: What Can an Agent's Trajectory Answer?
Shared title terminologycs.SEHannah Estes, Saba Khanmohammadi, Amirali Rayegan et al.
Everything Is a Commit: git-harness, a Git-Native Coding Agent Harness
Shared title terminologycs.SEHejian Sang