Metraipolis › archive › dc_31b2c781057f

Precedent or Intent? What Coding Agents Follow When Evolving Existing Code — arXiv:2610.38244

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.38244
License (as archived)
CC0-1.0
Archived
2026-10-31T06:11:25.938Z
SHA-256 of the archived text
f9d9e3d96a8aebc472f5754baf5113dfb3b2dc627fa111d4e20faee825504006
Stable URL of this page
https://metraipolis.com/documento/dc_31b2c781057f

How to cite

Precedent or Intent? What Coding Agents Follow When Evolving Existing Code — arXiv:2610.38244 — arXiv (en), https://arxiv.org/abs/2610.38244 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_31b2c781057f (Metraipolis archive dc_31b2c781057f, sha256 f9d9e3d96a8aebc472f5754baf5113dfb3b2dc627fa111d4e20faee825504006)
BibTeX
@misc{dc31b2c781057f,
  title = {Precedent or Intent? What Coding Agents Follow When Evolving Existing Code — arXiv:2610.38244},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.38244},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_31b2c781057f; sha256 f9d9e3d96a8aebc472f5754baf5113dfb3b2dc627fa111d4e20faee825504006},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.38244. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Existing code reveals past implementation decisions but rarely explains the reasoning behind them. When coding agents implement new features or modify existing functionality, past decisions may conflict with new task instructions. This raises a fundamental question for agentic software evolution: when multiple implementations satisfy the same functional requirements, how do coding agents decide whether to follow existing code or new task instructions? We investigate this question through bidirectional, controlled experiments in purpose-built repositories, followed by validation in real-world open-source repositories. Our approach isolates three competing sources of guidance: (1) agents' default preferences, (2) repository precedents, and (3) explicit task instructions. We conduct 5,625 trials across four coding agents and six implementation pairs, with validation in four open-source repositories spanning three programming languages. We find that agents share the same default implementation choices, yet overwhelmingly follow repository precedent when it conflicts with those defaults (359/360 trials). Crucially, not all precedents carry equal influence: three supporting local files yield 96% adoption, compared with only 4% for sibling-resource files, and changing file placement alone can shift adoption from 0% to 100% at a fixed example count. When new task intent conflicts with existing code, written priority rules achieve substantially higher success than code examples alone (59/60 versus 38/60 joint successes for two agents on two implementation pairs). The effectiveness of explicit rules also extends to open-source repositories, where a harness-loaded rule raises joint success from 0/120 to 117/120. These findings motivate design-decision traceability that preserves not only implementation choices but also the rationale and priorities that should guide future changes.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2610.38244 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-31T06:07:08.639Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).