AI-TechScienceGovernmentBusinessSportsEntertainment
AI-Tech

Software quality steadily degrades as coding agents pile on features

Automated tools write code that passes initial tests, but repeated edits introduce bloat and structural decay that eventually break long software projects.

11 statements added by Sebastian Baye · 2 Dec see what was added
Software quality steadily degrades as coding agents pile on features
Source: Primary generated image. © 2026
Published2 Dec 2026, 23:24 Last updated2 Dec 2026, 23:24 Sources
Source mode Marks each sentence drawn from a source or a contributor

Software engineering has long treated correctness as the ultimate standard of functional code. If an algorithm takes the expected input and returns the required output without crashing, it is typically judged to be working. Large language models have become remarkably adept at meeting that narrow standard, generating functions that satisfy automated unit tests on the very first try.12 Yet programmers who rely on automated assistants to build larger systems often discover that functional success conceals an insidious decay in structural cleanliness.12

As software grows across successive feature requests, code written by generative systems tends to swell with redundant statements, duplicated blocks, and heavily overloaded functions.2 In traditional software development, engineers spend the majority of their working hours reading, debugging, and modifying existing components instead of writing fresh files from scratch.2 When automated assistants solve each new requirement by bolting additional layers of scaffolding onto existing routines, the resulting bloat makes the system increasingly difficult for humans to inspect and impossible for models to modify reliably.2

That widening divide between passing functional tests and preserving architectural health is now coming into quantitative focus. A preprint posted to the arXiv server in March 2026 by Gabriel Orlanski and colleagues at the University of Wisconsin–Madison, Washington State University, and the Massachusetts Institute of Technology introduced SlopCodeBench, a benchmark designed to track how code quality deteriorates over multi-step software tasks. Their findings were subsequently examined in an analysis published in September 2026 by Sebastian, a researcher at the software company Earendil, who noted that while models can pass isolated verification suites, their output rapidly degenerates into fragile accumulations of code.

Understanding why software rots under automated editing requires looking at the sequence of decisions that occur when an application evolves. First, a human developer gives a language model a self-contained initial specification, which the model satisfies by writing a simple script that often hardcodes file formats or inlines helper procedures. Second, a new requirement arrives demanding that the tool support multiple inputs or new data formats. Third, in place of pausing to refactor the initial foundation into modular interfaces, the model inserts nested conditional branches directly into the existing procedure.2 Fourth, as further capabilities are requested, the model copies entire blocks of logic to handle edge cases, resulting in duplicated code paths and sprawling individual functions. Finally, the function becomes so entangled that subsequent automated edits fail to anticipate every internal branch, causing new features to break earlier behavior.12

Why does artificial intelligence produce bloated software?

Automated coding tools degrade code because they solve immediate requirements by piling new conditional checks onto existing functions instead of redesigning internal architecture.2 When a software program is evaluated solely on whether it passes a current suite of hidden unit tests, any solution that satisfies the immediate input and output contract receives a full score.12 Language models lack an innate instinct for economy or foresight, so they frequently choose the most direct path to passing the active test suite.2 If an initial routine was written to search Python files using regular expressions, an instruction to support additional programming languages often prompts the model to append extra conditional checks inside the file-processing loop. Over multiple iterations, this habit concentrates nearly all program decisions into a single sprawling procedure.2

This structural deterioration occurs because conventional coding benchmarks fail to penalize architectural debt.2 Standard industry evaluations present models with isolated, single-shot coding prompts or supply human-authored starter templates that already contain clean design patterns.2 In those artificial settings, models never have to pay the maintenance cost of their own earlier missteps.2 When agents must instead build repeatedly on top of their own previous workspace without human intervention, early shortcuts compound. An initial shortcut that avoided creating an abstract parser interface transforms subsequent feature additions into cascading rewrites, which the model handles by pasting even more defensive scaffolding into the file.

Software quality steadily degrades as coding agents pile on features
Source: Jasonmccreary

Sebastian, the Earendil researcher, noted that this pattern stems from an operational trade-off that models encounter during sequential tasks. Sebastian said in response to questions from Primary that "a large part of it comes from the asymmetry between the strong short-term incentive to patch rather than refactor. A local edit directly addresses the current requirement while risking little existing behaviour, whereas a refactor touches interfaces and dependencies whose correctness must then be re-established. As a result, repeated local fixes are often the safer choice."

How can engineers measure structural decay in software?

Researchers track software deterioration by separating superficial code expansion from the concentration of complex logic inside overburdened routines.2 To measure this decay objectively, Orlanski and the SlopCodeBench research group formulated two mathematical metrics: verbosity and structural erosion.2 Verbosity quantifies the proportion of a codebase composed of redundant or duplicated text.12 The metric combines identical code clones with lines flagged by 137 custom syntax rules developed using the pattern-matching utility AST-Grep, which targets unnecessary intermediate variables, redundant list comprehensions, and empty checks that add length without adding computational value.2

Structural erosion measures how much of an application's complexity mass is trapped inside overly complicated functions.12 The authors calculated the mass of each callable function by multiplying its cyclomatic complexity, which counts the number of independent decision paths through the logic, by the square root of its source lines of code. The erosion score represents the fraction of total codebase mass held by functions whose cyclomatic complexity exceeds 10, a standard threshold adapted from the software analysis tool Radon.1 If an application contains twenty small, modular functions and one monolithic procedure packed with nested conditions, that single overloaded procedure dominates the complexity mass, yielding a high erosion score.

The quantitative gap between human software and machine output proved striking across every evaluated benchmark task. Across 11 large language models evaluated on 20 multi-stage software problems spanning 93 checkpoints in the benchmark, not a single automated agent solved an entire problem from start to finish.2 The authors reported that the highest solve rate achieved across individual checkpoints was 17.2 percent of attempted tasks.2 Structural erosion climbed across 80 percent of all evaluated agent trajectories, while verbosity increased across 89.8 percent of those trajectories.2

Explaining why the end-to-end failure rate proved absolute, Sebastian told Primary that the outcome reflects multiple overlapping problems rather than simple crashes. Sebastian said that "it reflects a mixture of early behavioral errors, persistent failures that are never repaired, later compatibility regressions, and some tests were overly strict as well. All of these factors combined with the strict pass rates, where all tests at all checkpoints have to pass, leads to such a low solve rate."

When the researchers benchmarked these results against 48 mature open-source Python repositories, the divergence deepened.2 Comparing agent trajectories against 20 repositories tracked over their historical development showed that human-maintained software maintains flat quality metrics over time, whereas agent-written projects deteriorate at each step.2 On average, agent code proved 2.2 times more verbose than human code, recording a mean verbosity score of 0.33 with a standard deviation of 0.10, compared to a human repository baseline of 0.15 with a standard deviation of 0.06.12 For structural erosion, human projects averaged 0.31 with a standard deviation of 0.17, while agent-written code surged to 0.68 with a standard deviation of 0.20.1 In personal projects built using iterative generative prompts, Sebastian observed that verbosity climbed to 0.40 and structural erosion reached 0.75 across several repositories.1

Software quality steadily degrades as coding agents pile on features
Source: Mike is Michi (CC0)

Can better instructions keep codebases clean?

Prompting strategies that instruct models to plan ahead reduce initial bloat, but they fail to prevent software quality from declining over repeated revisions.2 Orlanski and colleagues evaluated interventions such as anti-slop guidelines, which specifically warned models against bloated syntax, and planning-first frameworks that required systems to sketch architecture before writing code. While these system instructions lowered verbosity and erosion in the earliest checkpoints, they did not halt the compounding degradation that occurred as tasks progressed.2 Furthermore, the cleaner initial code did not lead to higher test pass rates or lower computational costs.2

Commenting on why planning prompts failed to rescue downstream performance, Sebastian told Primary that the finding matched earlier observations about model training limits. Sebastian said that "certain model short comings are not easily negated through prompting."

These benchmark findings capture experimental observations of automated programming agents in synthetic environments, and they leave open questions about how models perform across broader commercial workflows. The research by Orlanski and colleagues was posted as a preprint to the arXiv server in March 2026 and has not yet undergone formal peer review.2 Due to computational expense, the authors confined their empirical runs to Python implementations, leaving open the question of whether strongly typed languages like Rust or Go exhibit different degradation patterns.2

Addressing that technical boundary, Sebastian cautioned against assuming that compiled environments behave identically. Sebastian told Primary that "their compilers, and Rust’s ownership rules in particular, catch classes of errors that Python may only expose at runtime, which could change both failure frequency and where failures appear." Nevertheless, Sebastian emphasized that "successful compilation does not guarantee correct or maintainable code. Agents can introduce duplicated logic, unnecessary abstractions, edge-case bugs, or regressions in any language."

Additionally, the benchmark evaluates self-contained command-line and interface utilities across three to eight sequential checkpoints, which isolates iterative coding behavior but does not simulate the hybrid collaboration where human reviewers reject messy pull requests before they enter production.2 For the software industry, the persistence of structural erosion exposes a fundamental flaw in evaluating generative systems solely through unit test pass rates. When engineers celebrate models that pass tests on initial deployment, they risk filling their codebases with brittle logic that requires exponentially more effort to maintain or expand later.12

To address this challenge, researchers are now looking beyond basic line counts and static rule matching toward deeper metrics of software health. Sebastian noted plans to investigate function coupling, code churn, and modular cohesion, searching for evaluation harnesses that encourage artificial intelligence to practice genuine architectural discipline instead of piling code onto an eroding foundation.1 Discussing what evidence would demonstrate genuine progress, Sebastian told Primary that a meaningful advance would require models "being able to generate the same functionality with fewer lines of code, thereby making the code more human-readable again."

The record

46 sentences trace to 2 sources and 1 contributor.

  1. 1 E earendil.com Document · earendil.com · 11 Sep 2026 If coding is solved, what now?: Measuring the sloppiness of code See the source
  2. 2 A arxiv.org Paper · arxiv.org SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks Preprint · may not have been peer reviewed See the source
  3. 3 SB Sebastian Baye Contributor · interview 21 Sep 2026 · in the article since 2 Dec 2026 Contribution — Sebastian Baye 11 statements added to this article

Article history

  1. Published 2 Dec 2026, 23:24
    Assembled by the Primary desk from 2 sources · 1 contributor · 46 cited sentences
  2. Sebastian Baye 11 statements added 73 days before publication
    1. Go to the sentence: Automated coding tools degrade code because they solve immediate requirements by piling new conditional checks onto existing functions instead of redesigning internal architecture.
    2. Go to the sentence: Sebastian said in response to questions from Primary that "a large part of it comes from the asymmetry between the strong short-term incentive to patch rather than refactor. A local edit directly addresses the current requirement while risking little existing behaviour, whereas a refactor touches interfaces and dependencies whose correctness must then be re-established. As a result, repeated local fixes are often the safer choice."
    3. Go to the sentence: Across 11 large language models evaluated on 20 multi-stage software problems spanning 93 checkpoints in the benchmark, not a single automated agent solved an entire problem from start to finish.
    4. Go to the sentence: Structural erosion climbed across 80 percent of all evaluated agent trajectories, while verbosity increased across 89.8 percent of those trajectories.
    5. Go to the sentence: Sebastian said that "it reflects a mixture of early behavioral errors, persistent failures that are never repaired, later compatibility regressions, and some tests were overly strict as well. All of these factors combined with the strict pass rates, where all tests at all checkpoints have to pass, leads to such a low solve rate."
    6. Go to the sentence: Furthermore, the cleaner initial code did not lead to higher test pass rates or lower computational costs.
    7. Go to the sentence: Sebastian said that "certain model short comings are not easily negated through prompting."
    8. Go to the sentence: Due to computational expense, the authors confined their empirical runs to Python implementations, leaving open the question of whether strongly typed languages like Rust or Go exhibit different degradation patterns.
    9. Go to the sentence: Sebastian told Primary that "their compilers, and Rust’s ownership rules in particular, catch classes of errors that Python may only expose at runtime, which could change both failure frequency and where failures appear."
    10. Go to the sentence: Nevertheless, Sebastian emphasized that "successful compilation does not guarantee correct or maintainable code. Agents can introduce duplicated logic, unnecessary abstractions, edge-case bugs, or regressions in any language."
    11. Go to the sentence: Discussing what evidence would demonstrate genuine progress, Sebastian told Primary that a meaningful advance would require models "being able to generate the same functionality with fewer lines of code, thereby making the code more human-readable again."