arXiv:2610.24093cs.SEOct 2026

Manuscript Offprint

arXiv:2610.24093

Does AI-Assisted Development Homogenize Software? An Empirical Study of Code Similarity, Quality, and Evolution

Luciano Marchezan, Romain Lefeuvre, Kevin Delcourt, Benoit Combemale, Houari Sahraoui

Abstract

AI-assisted software development is evolving from interactive LLM assistance toward agentic systems that autonomously perform software engineering tasks, yet the effects of this shift remain insufficiently understood. We present an empirical study of 50 long-lived Java and Python open-source projects across three eras: pre-LLM, potentially LLM-assisted, and detected agentic development. Using snapshots from Software Heritage, we examine code similarity, software quality, and software evolution. Similarity is measured semantically through embedding-based cosine similarity and syntactically through CodeBLEU*. Quality is assessed with SonarQube metrics covering maintainability, complexity, reliability, and security. Evolution is characterized by annualized growth rates of LOC, functions, classes, files, and statements, and by commit ac-

tivity in the three months preceding each snapshot. Results show no consistent evidence of increased similarity as semantic and syntactic similarity decreased significantly in Java for both the LLM and agentic eras relative to the pre-LLM era, while Python showed no significant differences. Software quality remained largely stable, although the agentic era showed significantly lower code-smell and SQALE index densities. Structural growth was generally lower in the agentic era, particularly for files, whereas development activity increased moderately in Java, especially in commits and added lines. These findings challenge the assumption that LLM- and agent-assisted development necessarily homogenizes code, degrades quality, or accelerates growth.

Keywords agentic AI, LLMs, code similarity, software quality, software evolution, open-source software

Luciano Marchezan

Université de Montréal, Montréal, Canada

University of York, York, UK

E-mail: lucianomarchp@gmail.com

ORCID: 0000-0003-3096-580X

Romain Lefeuvre

Université de Rennes, Rennes, France

E-mail: romain.lefeuvre@inria.fr

ORCID: 0009-0008-2019-1058

Kevin Delcourt

Université de Montréal, Montréal, Canada

E-mail: kevin.delcourt@umontreal.ca

ORCID: 0009-0005-2988-7308

Benoit Combemale

Université de Rennes, Rennes, France

E-mail: benoit.combemale@inria.fr

ORCID: 0000-0002-7104-7848

Houari Sahraoui

Université de Montréal, Montréal, Canada

E-mail: sahraouh@iro.umontreal.ca

ORCID: 0009-0000-6980-5454

1 Introduction

The rapid progress of Large Language Models (LLM) has led to their widespread adoption in software development. According to the 2025 Stack Overflow Developer Survey, 84% of developers already use, or plan to use, AI-based tools (Overflow 2025). Their role has evolved from inline code completion, where a 2022 study of GitHub Copilot reported about 25% of suggestions accepted without modification (Ziegler et al. 2022), to autonomous agents producing complete pull requests (Khan et al. 2026).

Despite this adoption, developers remain cautious about AI-generated code. One concern is software similarity, which we define as the degree to which similar programming goals are realized through similar implementation choices across projects and over time. LLM outputs tend to be more homogeneous than human-generated ones (Anderson et al. 2024), and in creative domains LLM assistance often reduces the diversity of ideas (Moon et al. 2025). Whether similar effects emerge in software ecosystems is unclear.

The implications of increased similarity are also multi-faceted. If LLMs preferentially recommend widely adopted languages, libraries, design patterns, or conventions (Twist et al. 2025), they may improve standardization, consistency, and maintainability, and AI-assisted development has been associated with better adherence to coding standards (Xu et al. 2026). Software engineering, however, has historically evolved through continual exploration of alternative abstractions, architectures, and implementation strategies (Lehman 1980; Jr. 1987), so excessive homogenization could reduce the ecosystem's exploratory capacity and limit novel solutions.

Beyond code similarity, another emerging concern is the potential impact of AI-assisted development on software quality. The same Stack Overflow survey (Overflow 2025) found that only a minority of developers fully trust AI-generated outputs, while many report that validating and debugging generated code remains a significant challenge. These concerns are supported by a growing body of empirical evidence highlighting limitations of LLM-generated code, including maintainability issues, hallucinated or inconsistent artifacts (Liu et al. 2024), security vulnerabilities (Yetistiren et al. 2023), reliance on deprecated APIs (Wang et al. 2024), overcorrections during code modification tasks (Jin and Chen 2026), and deficiencies in automatically generated tests (Tang et al. 2023). Likewise, studies comparing human-written and AI-generated code, or investigating AI-assisted development in real-world repositories, report mixed trade-offs between short-term productivity gains and longer-term quality indicators such as code complexity, duplication, warnings, and ownership concentration (He et al. 2026; Agarwal et al. 2026; Tomaz et al. 2026).

In addition to these concerns, the increasing integration of LLMs raises questions about their implications for software evolution. Software systems continuously grow and change as requirements evolve, new capabilities are introduced, and existing functionality is maintained or replaced (Lehman and Fernández-Ramil 2006; Assunção et al. 2025). As AI tools increasingly support tasks ranging from code generation to autonomous modification of software artifacts (Sauvola et al. 2024; Jin et al. 2025), they may influence not only how individual functions are implemented but also the pace and structural trajectory of software development (Lehman 1980). Recent empirical studies of agentic contributions document differences in commit activity, code additions and deletions, and files modified, as well as the types of structural changes performed during agentic refactoring (Ogenrwot and Businge 2026; Horikawa et al. 2025).

Increased development activity, however, does not necessarily translate into sustained structural growth (Hatton et al. 2017), nor does faster code production necessarily imply more extensive or frequent changes to existing systems. AI-assisted development may facilitate incremental modifications and refactoring, but it may also introduce additional code or prompt subsequent revisions (which may also affect similarity and quality). Hence, understanding these dynamics is particularly important for long-lived open-source projects, where the consequences of AI adoption unfold within established codebases shaped by years of development and maintenance.

These observations motivate the central question investigated in this paper: whether the widespread adoption of LLM-assisted software development is associated with measurable changes in the similarity, quality, and growth of open-source software systems. For that, we define three research questions (RQ):

RQ1. To what extent does the code similarity of long-lived open-source software change across eras?

RQ2. To what extent does the quality of long-lived open-source software change across eras considering different quality dimensions?

RQ3. To what extent do the development and structural characteristics of long-lived open-source software change across eras?

To investigate these RQs, we conduct an empirical study of 50 long-lived, engineered open-source projects, comprising 25 Java and 25 Python repositories, retrieved from Software Heritage (Abramatic et al. 2018). We compare snapshots from 2021, 2024, and 2026, representing pre-LLM development, potentially LLM-assisted development, and development with detected traces of coding-agent adoption, respectively. The projects are selected from a dataset of repositories exhibiting evidence of agentic usage (Robbes et al. 2026a). For each snapshot, we examine code similarity through semantic and syntactic measures of function resemblance, and software quality through structural and static-analysis indicators of maintainability, complexity, reliability, and security. Finally, we investigate software evolution by measuring the annualized growth of source lines of code, functions, classes, files, and statements, as well as development activity through commit activity during the three months preceding each snapshot.

The results show no consistent evidence of increased code similarity or substantial changes in software quality across the three development eras. Semantic and syntactic similarity decreased significantly (p<0.05)(p < 0.05) in Java for both the LLM and Agentic eras relative to the Pre-LLM era, while Python exhibited no statistically significant differences. Software quality remained largely stable, with the Agentic era showing statistically significant reductions (p<0.05)(p < 0.05) in code-smell and SQALE index densities. Structural growth was generally lower in the LLM-to-Agentic transition, particularly for files. Development activity showed a moderate increase in Java during the Agentic era, especially in commits and lines added, whereas Python exhibited little overall change.

Our findings challenge the assumption that LLM-and agent-assisted development necessarily homogenizes code, degrades software quality, or accelerates structural evolution and growth. Instead, the observed changes vary across programming languages and metrics, with encouraging improvements in selected maintainability indicators but no consistent changes in complexity, reliability, security, or structural growth.

The main contributions of this paper are:

  1. A curated dataset of 50 long-lived open-source projects, comprising 25 Java and 25 Python repositories, with snapshots spanning pre-LLM, LLM-assisted, and agentic development eras;

  2. An empirical characterization of code similarity across pre-LLM, LLM-assisted, and agentic development eras, using complementary semantic and syntactic measures across Java and Python projects;

  3. A longitudinal analysis of software quality across maintainability, complexity, reliability, and security dimensions, identifying changes in static-analysis indicators across development eras;

  4. An empirical investigation of software evolution, examining structural growth and development activity to assess how these characteristics vary across development eras;

  5. Evidence-based insights into the relationship between LLM- and agent-assisted development and software evolution, highlighting language-dependent similarity trends, improvements in selected maintainability indicators, and the absence of consistent changes in structural growth or development activity;

The rest of the paper is organized as follows. Section 2 presents the background and related concepts. Section 3 describes the research methodology, including

Figure

Fig. 1: Example LLM-assisted development state evolution across a repository history

project selection, data collection, and analysis procedures. Section 4 presents the empirical results, followed by their interpretation and implications in Section 5 and threats to validity in Section 6. Related work is described in Section 7. Finally, Section 8 concludes the paper and outlines directions for future work.

References (64)