A preprint runs 5,625 controlled trials to ask a narrow question: when a coding agent extends an existing codebase and two implementations would both pass the tests, what decides which one it writes? The answer, under the conditions tested, is the surrounding code — overwhelmingly, and almost regardless of what a newer and better module nearby happens to do.
The practical consequence is the one every migration runs into. An unmigrated module keeps teaching the agent the pattern you are trying to retire, and a correctly migrated sibling does not propagate on its own.
The headline number circulating from this paper is real but needs one large qualification that its popular summaries drop, and one widely repeated conclusion drawn from it is not supported. Both are below.
The design, which is the good part
The method is clean. For each of six implementation choices the authors built a matched pair — two ways of doing the same thing — and wrote hidden functional tests that accept either. Correctness is therefore held fixed and only the design choice varies, so the study measures taste rather than capability.
The six choices are ordinary API decisions: field casing, boolean naming, whether an ID serialises as a number or a string, whether a response is a flat object or wrapped under a single data key, whether an error returns a status or raises, and whether dispatch is a chain of conditionals or a lookup table. Each condition ran fifteen times, across 375 cells.
The agents are four model–harness combinations: two models through one coding CLI and two through another. The paper is explicit that this means agent differences cannot be attributed to models alone, since each agent is a model plus its harness. Anyone reading "four coding agents" as four distinct products is reading it wrong, and the paper says so.
The headline, and the qualification that must travel with it
With no precedent in the repository, the agents converged hard: of 360 runs, 359 chose the same default, and 23 of the 24 pair–agent cells were unanimous. So absent any signal, these agents share a house style.
Then, with existing endpoints implementing the opposite pattern, the choice flipped in 359 of 360 runs. That is the number being quoted everywhere.
Here is what the summaries omit. The task in that stage asked the agent to follow the conventions of the existing code, without naming the implementation choice. So the finding is not that agents spontaneously imitate their surroundings; it is that when told to follow conventions, they do, with near-perfect reliability. The paper is careful about this in its own words: the experiments control which precedents are available, not which ones agents attend to.
That does not make the result uninteresting — near-total compliance with a vague instruction is itself worth knowing, and it is the basis for everything useful below. But "agents copy repository precedent in 359 of 360 runs" states a disposition when the evidence supports a response to an instruction. The distinction matters to anyone deciding whether the fix is to change the code or to change the prompt.
One more bookkeeping note on that figure: the 359 of 360 flip is a composite of 299 of 300 across five pairs plus 60 of 60 on the sixth, and that sixth pair's default is the designated alternative, so its "flip" runs in the opposite direction. Two different movements are being reported as one number.
The finding that is not a retrieval problem
The most useful result is about the sibling condition. The authors added analogous endpoints elsewhere in the repository implementing the alternative pattern, leaving the files local to the task at the old pattern. Adoption of the sibling's pattern: 13 of 1,079 classifiable trials, about 1.2 percent. One of the four agents adopted it zero times out of 270.
Set that against the local comparison. Three supporting files local to the task produced 347 adoptions out of 360. Three supporting sibling files produced 13 out of 360. Same evidence, same repository, twenty-seven-fold difference by location.
And critically, the paper establishes that this is not a context problem: the sibling files were in context in every one of the 45 trials checked for one agent and one choice. The agents read the better pattern and wrote the worse one.
That reframes a common mitigation. Teams migrating a codebase often reason that once a few modules are converted, the agent will pick up the new pattern and spread it. The evidence says it will not. Proximity to the edit beats correctness elsewhere, and a reference implementation in a neighbouring directory is close to worthless as a signal.
Overriding it: what works, and the conclusion that does not hold
Without guidance, adoption of the intended pattern was zero out of sixty. Three interventions were tested.
A code example in the request reached 38 of 60 joint successes — and that aggregate conceals most of the story. One agent scored 15 of 15 on both pairs. The other scored 8 of 15 on one pair and zero of 15 on the other. An example is not a reliable instrument; whether it works depends on the model.
A written priority rule reached 59 of 60, with 14 or 15 of 15 in every cell. Adding a code example to the rule produced no gain over the rule alone, by the paper's own significance test. So the rule does the work and the example adds nothing.
In the field, on a single choice across four open-source repositories in three languages, a written rule moved adoption from 0 of 120 to 117 of 120. (That 117 is joint success — passing tests and adopting the pattern; raw adoption was 118.)
Now the conclusion that does not hold. It is being repeated that the rule scored 59 of 60 in a prompt and 60 of 60 when placed in the agent's instruction file, implying the file is the stronger channel. It is not. The 59 of 60 came from the rule in the task description. The 60 of 60 figures come from a separate delivery experiment in which the task description also scored 60 of 60 — both channels hit the ceiling. The paper states that the two channels do not differ detectably, and adds the honest caveat that with every cell at ceiling the data cannot demonstrate equivalence either.
So the actionable finding is: have an explicit priority rule. Where you put it is not shown to matter. The one-point difference being cited as evidence for instruction files is an artefact of comparing across two experiments.
A reassuring secondary result: guidance did not cost correctness. 238 of 240 guided runs passed the hidden tests.
Where it does not reach
The paper's own limitations section is unusually frank and should be read before generalising.
The controlled experiments use a single Flask API task family. The open-source extension covers four repositories but only two implementation choices, with explicit guidance evaluated for just one. Fifteen repetitions per cell characterise variability under fixed conditions, not across tasks or repositories. Only two model providers are represented. The local-versus-sibling comparison varies task relatedness and file location together, so their separate effects are unknown. Technical interruptions forced retries in one research question. And the outcomes concern implementation choice only — not maintainability, not overall quality.
It is a preprint, version one, with no venue listed, and it has not been peer reviewed.
One thing the limitations section does not discuss, though the results report it, is how much the agents differed from each other. At one support level, one agent adopted string IDs 10 times out of 15 while another managed 1 of 15. On dispatch the same pair ran 4 of 15 against 12 of 15. One agent showed no file-placement effect at all. In the field study, sibling-only envelope adoption was 0 of 30 for one agent in one repository and 15 of 15 for another. Any single number from this paper is an average over agents that behave quite differently, and a team should expect to measure its own.
Review checklist
If you are migrating a codebase that agents work in:
Write the priority rule down explicitly, naming the intended pattern and that it overrides existing code. This is the only intervention that worked reliably. Do not rely on a code example alone — it failed completely for one agent on one choice.
Do not expect converted modules to teach the new pattern. Sibling precedent was adopted about one percent of the time, and the agents had the files in context. Correctness elsewhere does not beat proximity.
Expect the unmigrated remainder to keep producing the old pattern on every touch, and budget the migration as a sweep rather than as a seeded change that spreads.
Do not spend effort choosing between a prompt and an instruction file on the strength of this paper. Both reached ceiling. Choose on operational grounds — who can edit it, whether it is reviewed, whether it survives into every session.
Check where your conventions actually live. A rule that is not in a channel the agent loads is not a rule. This interacts badly with environments that load only a subset of a repository's agent configuration.
Measure your own agents rather than inheriting the averages. The per-agent spread in this paper is wide enough that one agent's result predicts another's poorly.
Treat the numbers as a single-task-family preprint. The direction is well supported; the magnitudes are not yet portable.
What was checked
Every figure above was checked against the preprint's own abstract, tables and results sections as verbatim text. Nothing here rests on summary material.
Not established: peer-review status or venue, of which there is none listed; whether any traceability mechanism works, since the paper calls for design-decision traceability as future work and tests none; and the paper's statistical intervals and trend tests, which were not re-derived. The practitioner summary that surfaced this work reported several of the figures above in forms the paper does not support, and those discrepancies are identified in place rather than repeated.