CodeTaste: Can LLMs Generate Human-Level Code Refactorings?
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
LLM coding agents can generate working code, but their solutions often accumulate complexity, duplication, and architectural debt. Human developers address such issues through refactoring: behavior-preserving program transformations that improve structure and maintainability. We investigate whether agents (i) can execute refactorings reliably and (ii) identify the refactorings that human developers actually chose in real codebases. To this end, we construct CodeTaste, a benchmark mined from large multi-file open-source refactorings. To score solutions, we combine repository test suites that measure functional correctness with tailored static checks that verify removal of undesired and introduction of desired code patterns using dataflow reasoning. Our results show a clear gap: agents perform well at implementing refactorings that are specified in detail, but often fail to discover the human refactoring choices when given a focus area for changes. A propose-then-implement decomposition improves alignment, and selecting the best-aligned proposal before implementation can yield further gains. CodeTaste provides an evaluation target and a potential preference signal for aligning coding agents with human refactoring decisions in realistic codebases. We release the benchmark, leaderboard, and code.
Key facts. Cited by 8 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 13 of its 42 references that are in the map. First posted on arXiv 4 Mar 2026.
Builds on
13 of 42 references.
Closest ancestors · 2
Same direction, newest first
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents26 May
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun
Other references · 11
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2025FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementationcited by 57
- 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
- 2025RefactorBench: Evaluating Stateful Reasoning in Language Agents Through Codecited by 28
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 27
- 2024An Empirical Study on the Code Refactoring Capability of Large Language Modelscited by 19
- 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarioscited by 11
- 2026SWE-Refactor: A Repository-Level Benchmark for Real-World LLM-Based Code Refactoringcited by 11
- 2024An Empirical Study on the Potential of LLMs in Automated Software Refactoringcited by 10
- 2025Refactoring Codebases through Library Designcited by 4
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026Code as Agent Harnesscited by 40
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoringcited by 5
- 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Taskscited by 0
- 2026Super Library Agent: Joint Generation and Maintenance of Multiple Applications Beyond the Single Codebasecited by 0
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skillscited by 0
- 2026Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Modelscited by 0
- 2026Can Agents Design Libraries for Agents?cited by 0
- 2026Chronos Enables Code Agents to Reason over Software Evolutioncited by 0
- 2026Chronos Enables Code Agents to Reason over Software Evolution8 Oct 2026
- 2026Can Agents Design Libraries for Agents?29 Sep 2026
- 2026Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models24 Sep 2026
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 2026Super Library Agent: Joint Generation and Maintenance of Multiple Applications Beyond the Single Codebase29 Aug 2026
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring10 Aug 2026
- 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Tasks4 Jun 2026
- 2026Code as Agent Harness18 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026"Refactoring Runaway": Understanding and Mitigating Tangled Refactorings in Coding Agents for Issue Resolution
- 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaboration
- 2025Agentic Refactoring: An Empirical Study of AI Coding Agents
- 2025RefAgent: A Multi-agent LLM-based Framework for Automatic Software Refactoring
- 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoring
- 2026REFINE: A Multi-Agent LLM Approach for Evidence-Guided Code Refactoring
- 2026RefactorPlatform: An Open-Source Harness for Controlled Evaluation of Repository-Scale Refactoring Agents
- 2026To Run or Not to Run: Analyzing the Cost-Effectiveness of Code Execution in LLM-Based Program Repair