TRANSMISSION // 2612.00485v1

When Coding-Agent Instructions Clash Across Tools

Source published

A study of 128 repositories estimates how often parallel coding-agent instruction files conflict—and finds lightweight detectors struggle to catch them reliably.

AI-generated conceptual illustration for When Coding-Agent Instructions Clash Across Tools
AI-generated conceptual illustration; not documentary evidence.

A project may keep separate instruction files for different AI coding tools. Each can seem sensible on its own, yet the pair may direct agents to take incompatible actions. A study called Context Clash estimates how often this happens in a sample of public repositories and tests whether simple automated screeners can identify conflicts without mistaking legitimate tool-specific guidance for a problem.

Why compare instruction files?

Coding agents often read repository files that specify how to run tests, which tools to use, where code belongs, or what must not be changed. Projects supporting multiple agents may maintain parallel files for different tools. If one file is updated while another is not, the instructions can drift apart.

But difference is not necessarily contradiction. One file might describe a command for one package and another a command for a different environment. The study counts a conflict only when instructions concern the same subject, apply to overlapping situations, and cannot both be followed.

How the study worked

Aditi Patodiya examined a frozen dataset of public GitHub repositories, covering projects in ten programming languages. From that dataset, the study identified 513 eligible repositories with readable English instructions for at least two coding tools. The estimate applies to this eligible group, not to all software projects.

The researcher drew a probability sample of 128 repositories and compared every eligible pair of instruction files within each selected project: 241 pairs in total. Two annotators independently read the files, recorded potentially conflicting passages and their shared scope, and did not see each other’s judgments or detector results. The author then adjudicated disagreements and checked the set of positive labels against the source files.

For automated detection, the study compared three lightweight approaches on a separate test set of repositories: a lexical-similarity method, a natural-language-inference (NLI) model, and a model using structured features such as shared commands, version mismatches, and opposing wording. The methods’ alert thresholds were selected using development data, with a target of high precision because false alarms also cost maintainers time.

Conflicts appeared in about one in five eligible repositories

After accounting for the sampling design, the estimated share of eligible repositories with at least one conflict was 20.83%. The reported 95% confidence interval was 12.87% to 29.44%. The estimate remained above 10% under each annotator’s independent labels, though their individual estimates differed.

Command and toolchain disagreements were the most frequently recorded type, followed by style and API guidance. Other conflicts involved instruction polarity, architecture or file location, versions, testing and release procedures, and permissions. These categories describe the observed conflicts; they do not establish why they arose.

The study’s examples show why context matters. In one pair of files, one instruction prohibited a particular test command while another recommended using it. In another case, apparently different commands concerned the same browser-test suite. A text comparison can spot overlap, but deciding whether the rules truly collide requires understanding what they apply to.

Screeners struggled to issue reliable alerts

At their selected thresholds, the three screeners each found only one of the 23 conflicts in the held-out test set. The lexical method issued no alerts. NLI flagged seven pairs and the structured-feature model flagged three; each of those two methods’ alerts included non-conflicts. Uncertainty around the test results was substantial.

NLI did show some ability to rank likely conflicts above other pairs. In an exploratory analysis, the 37 highest-ranked pairs included 13 of the 23 conflicts. That result suggests NLI scores might help organize human review, but it does not show that NLI can safely identify conflicts on its own. The ranking analysis was post hoc and needs testing on an independent sample and in a real review workflow.

What the evidence does—and does not—show

The prevalence estimate concerns written instructions in a particular dataset of active public repositories, with English files for multiple tools. Private projects, other languages, and teams that configure agents outside the repository may have different patterns. The files came from a snapshot, so the study cannot tell when or why a conflict developed, which files an agent actually loaded, or whether the conflict changed an agent’s behavior in practice.

The detector test was also small: it contained 23 adjudicated conflicts. The paper reports that uncertainty is too large to establish that the methods are equivalent or that one reliably outperforms another. The study measures conflicts in written guidance, not downstream coding errors or harm.

The manuscript identifies itself as an author-accepted manuscript for the 2027 ACM/SIGAPP Symposium on Applied Computing and provides a replication package. That publication status is reported by the manuscript; this account does not independently verify it. The study is not a measurement of effects on deployed coding-agent sessions. Its main contribution is a measured estimate and a human-labeled benchmark: cross-tool instruction inconsistency can be studied systematically, while dependable automatic detection remains an open challenge.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.