Is Agent Code Less Maintainable Than Human Code?

Shaswat Patel, Betty Li Hou, Arun Purohit, Kai Xu, Jane Pan +2 more
6/19/2026
cs.SEcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Maintainability is a core dimension of software engineering, shaping how code is written, reviewed, and developed over time. While coding agents have demonstrated strong performance on single-issue tasks, it remains unclear how maintainable their code is when future agents build on top of it, potentially leading to compounding downstream effects.

Show full abstract

We investigate how agent code compares to human code in these maintenance settings, presenting CodeThread, a framework to construct controlled experiments from repository-level coding benchmarks. Applying CodeThread to four frontier coding agents and four benchmarks, we find that agents are less effective at resolving tasks when building on agent code compared to human code, with task resolve rate drops of up to 13.1%. Regression analysis reveals that many traditional software engineering maintainability metrics do not explain this difference. Instead, the clearest signals are subtler behavioral differences in agent code, such as changes to input validation and error handling, along with differences in downstream code size and task difficulty. These findings highlight the need to evaluate these systems not only by immediate task resolution but also by code maintainability, and point to potential sources of downstream errors introduced by agent code.

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. Any repos shown below are weak matches — 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{patel2026agent,
  title  = {Is Agent Code Less Maintainable Than Human Code?},
  author = {Shaswat Patel and Betty Li Hou and Arun Purohit and Kai Xu and Jane Pan and He He and Valerie Chen},
  year   = {2026},
  eprint = {2606.21804},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.21804v2}
}

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/2606.21804.svg)](https://codeofpaper.com/paper/2606.21804)

Discussion