AI-Generated Smells: An Analysis of Code and Architecture in LLM and Agent-Driven Development
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
The promise of Large Language Models in automated software engineering is often measured by functional correctness, overlooking the critical issue of long term maintainability. This paper presents a systematic audit of technical debt in AI-generated software, revealing that AI does not eliminate flaws but rather introduces a distinct machine signature of defects. Our multi-scale analysis, spanning single-file algorithmic tasks and complex, agent generated systems, identifies a fundamental Reasoning-Complexity Trade-off: as models become more capable, they generate increasingly bloated and coupled code. This architectural decay is so pronounced that we establish a Volume-Quality Inverse Law, where code volume is a near perfect predictor of structural degradation. Crucially, we demonstrate that neither functional correctness nor detailed prompting mitigates this decay. These findings challenge the current paradigm of prompt-driven generation, reframing the central problem of AI-based software engineering from one of code generation to one of architectural complexity management. We conclude that future progress depends on equipping agents with explicit architectural foresight to ensure the software they build is not just functional, but also maintainable.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 3 of its 21 references that are in the map. First posted on arXiv 4 May 2026.
Builds on
3 of 21 references.
Closest ancestors · 1
Same direction, newest first
Other references · 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Lost in Code Generation: Reimagining the Role of Software Models in AI-driven Software Engineering
- 2026How Generation Architecture Shapes Code Complexity in Multi-Agent LLM Systems: A Paired Study on HumanEval
- 2026Constraint Decay: The Fragility of LLM Agents in Backend Code Generation
- 2026Code That Works, Environments That Don't: Measuring Environment Reproducibility in AI-Generated Software
- 2026Cheap Code, Costly Judgment: A Case Study on Governable Agentic Software Engineering
- 2026Needle in the Repo: A Benchmark for Maintainability in AI-Generated Repository Edits
- 2026The Spec Growth Engine: Spec-Anchored, Code-Coupled, Drift-Enforced Architecture for AI-Assisted Software Development
- 2026Rethinking Software Engineering for Agentic AI Systems