mlsanityData to 14 Oct 2026

SmellBench: Evaluating LLM Agents on Architectural Code Smell Repair

arXiv 2605.07001 ↗First posted 7 May 2026cs.SE cs.CLcited by 3

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Architectural code smells erode software maintainability and are costly to repair manually, yet unlike localized bugs, they require cross-module reasoning about design intent that challenges both developers and automated tools. While large language model agents excel at bug fixing and code-level refactoring, their ability to repair architectural code smells remains unexplored. We present the first empirical evaluation of LLM agents on architectural code smell repair. We contribute SmellBench, a task orchestration framework that incorporates smell-type-specific optimized prompts and supports iterative multi-step execution, together with a scoring methodology that separately evaluates repair effectiveness, false positive identification, and net codebase impact. We evaluate 11 agent configurations from four model families (GPT, Claude, Gemini, Mistral) on 65 hard-severity architectural smells detected by PyExamine in the Python project scikit-learn, validated against expert judgments. Expert validation reveals that 63.1% of detected smells are false positives, while the best agent achieves a 47.7% resolution rate. Agents identify false positives with up to kappa = 0.94 expert agreement, but repair aggressiveness and net codebase quality are inversely related: the most aggressive agent introduces 140 new smells. These findings expose a gap between current LLM capabilities in localized code transformations and the architectural understanding needed for cross-module refactoring. SmellBench provides reusable infrastructure for tracking progress on this underexplored dimension of automated software engineering. We release our code and data at https://doi.org/10.5281/zenodo.19247588.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 6 of its 27 references that are in the map. First posted on arXiv 7 May 2026.

Builds on

6 of 27 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025RefAgent: A Multi-agent LLM-based Framework for Automatic Software Refactoring5 Nov
  2. 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaboration18 Mar

Other references · 4

  1. 2024An Empirical Study on the Code Refactoring Capability of Large Language Modelscited by 19
  2. 2025Clean Code, Better Models: Enhancing LLM Performance with Smell-Cleaned Datasetcited by 3
  3. 2025ROSE: Transformer-Based Refactoring Recommendation for Architectural Smellscited by 2
  4. 2025A Causal Perspective on Measuring, Explaining and Mitigating Smells in LLM-Generated Codecited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Agentic LMs: Hunting Down Test Smells
  2. 2026Beyond Strict Rules: Assessing the Effectiveness of Large Language Models for Code Smell Detection ↗
  3. 2025Abstain and Validate: A Dual-LLM Policy for Reducing Noise in Agentic Program Repair
  4. 2026AgenticRepair: Multi-Faceted Program Context Engineering for Agentic Vulnerability Repair
  5. 2024An Empirical Study on LLM-based Agents for Automated Bug Fixing
  6. 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents
  7. 2026To Run or Not to Run: Analyzing the Cost-Effectiveness of Code Execution in LLM-Based Program Repair
  8. 2026When Passing Tests Hides Vulnerabilities: An Empirical Study of Silent Failures in Agentic Systems