Do Coding Agents Reuse Existing Code or Reinvent the Wheel?

Dongsheng Ma, Sizhe Wang, Xinyi Huang, Zhengren Wang, Yuhan Wang +3 more
9/28/2026
cs.SEcs.AIcs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Coding agents are increasingly deployed for iterative development on real repositories, yet existing evaluation barely answers a basic question: \emph{do coding agents reuse existing code or reinvent the wheel?} The question matters: every duplicated implementation is a fix applied twice and agents produce code far faster than humans can audit, so redundancy accumulates unsupervised. Thus, we present \textbf{RepoReuse}, a multi-turn benchmark for auditing code reuse in real repositories, where requirements are revealed turn by turn and the workspace accumulates across turns. It is built by a fully automated pipeline combining AST-based dependency graphs, guided evidence collection, and execution-verified task synthesis, and scales readily to new repositories. Beyond pass rates, we measure the reuse rate together with recall and cross-turn structural redundancy. An audit over 3{,}000 turns shows that agents progressively stop exploring relevant repository code, reuse their own history less even when it is fully in the workspace, and leave duplicated logic in 50.8\% of task chains by turn~5---all while pass rates barely move. Such deficiencies are invisible to pass rates, underscoring the need to evaluate code generation beyond functional correctness.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ma2026coding,
  title  = {Do Coding Agents Reuse Existing Code or Reinvent the Wheel?},
  author = {Dongsheng Ma and Sizhe Wang and Xinyi Huang and Zhengren Wang and Yuhan Wang and Luyang Si and Xincheng Wei and Wentao Zhang},
  year   = {2026},
  eprint = {2609.35357},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.35357v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.35357.svg)](https://codeofpaper.com/paper/2609.35357)

Discussion