Patterns of Developer Adoption of LLM-Generated Code Refactoring Suggestions

πŸ“… 2026-05-06
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF

career value

179K/year
πŸ“ Abstract
Large language models (LLMs) have gained widespread popularity and have steadily improved over time, enabling software developers to use them for various code-related tasks. One common task is code refactoring, where the LLM suggests changes for the developer to apply to their code to improve quality attributes such as readability or maintainability. While current research focuses on evaluating LLM-generated refactoring suggestions, there is a limited understanding of how developers apply these suggestions in practice. To explore this, we analyze 169 GitHub commits where developers refactor their code based on a ChatGPT conversation linked in the commit message. We found that developers mostly accept and use the suggestions without modifications. When changes are made, they are mostly major and fall into five different patterns that depend on the refactoring activity, the developer's prompt, and the validity of the response from ChatGPT.
Problem

Research questions and friction points this paper is trying to address.

LLM-generated code
code refactoring
developer adoption
GitHub commits
ChatGPT
Innovation

Methods, ideas, or system contributions that make the work stand out.

LLM-generated refactoring
developer adoption patterns
code refactoring
ChatGPT in software development
empirical study
πŸ”Ž Similar Papers
No similar papers found.