mlsanityData to 14 Oct 2026

SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Tasks

arXiv 2606.05574 ↗First posted 4 Jun 2026cs.SEcited by 0

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

Abstract (arXiv)

Code Agents have achieved remarkable advances in recent years, exhibiting strong capabilities across a wide range of software engineering tasks. However, their misuse often produces bloated and disorganized code that impairing readability, extensibility, and robustness. Despite this risk, existing benchmarks largely evaluate functional correctness rather than long-term maintainability of code agents. In this paper, we propose SmellBench, an extensible code refactoring benchmark that proactively injects code smells into clean code snippets from real-world repositories. This design enables the generation of controlled, high-quality, and diverse refactoring cases with human-written ground truth. Specifically, it contains 294 cases spanning 7 popular smell types, 3 difficulty levels, 2 instruction settings across 7 real-world repositories. We further design 3 evaluation aspects covering functional correctness, localization ability, and refactoring quality assessment. Experiments with 2 popular agents and 6 large langauge models (LLMs) show that the best combination - Qwen Code + Claude Sonnet 4.5 - achieved only a 50.34 score of smell elimination. Further analysis reveals that this gap arises from a focus on local code smells and a lack of cross-file understanding, which hinders comprehensive smell elimination.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 18 of its 25 references that are in the map. First posted on arXiv 4 Jun 2026.

Builds on

18 of 25 references.

Closest ancestors · 3

Same direction, newest first

  1. 2026SmellBench: Evaluating LLM Agents on Architectural Code Smell Repair7 May
  2. 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?4 Mar
  3. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul

Other references · 15

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2021Program Synthesis with Large Language Modelscited by 3,637
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  4. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  5. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 585
  6. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
  7. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
  8. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 168
  9. 2025RefactorBench: Evaluating Stateful Reasoning in Language Agents Through Codecited by 30
  10. 2025CodeIF: Benchmarking the Instruction-Following Capabilities of Large Language Models for Code Generationcited by 19
  11. 2026SWE-Refactor: A Repository-Level Benchmark for Real-World LLM-Based Code Refactoringcited by 11
  12. 2024An Empirical Study on the Potential of LLMs in Automated Software Refactoringcited by 10
3 more
  1. 2025PerfBench: Can Agents Resolve Real-World Performance Bugs?cited by 3
  2. 2025Code Refactoring with LLM: A Comprehensive Evaluation With Few-Shot Settingscited by 3
  3. 2025Refactoring with LLMs: Bridging Human Expertise and Machine Understandingcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026REFINE: A Multi-Agent LLM Approach for Evidence-Guided Code Refactoring
  2. 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring
  3. 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoring
  4. 2026RefactorPlatform: An Open-Source Harness for Controlled Evaluation of Repository-Scale Refactoring Agents
  5. 2026"Refactoring Runaway": Understanding and Mitigating Tangled Refactorings in Coding Agents for Issue Resolution
  6. 2025Agentic Refactoring: An Empirical Study of AI Coding Agents
  7. 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaboration
  8. 2026How do Agents Refactor: An Empirical Study