Search papers, labs, and topics across Lattice.
This paper outlines a comprehensive roadmap for integrating large language models (LLMs) into continuous software maintenance, shifting the focus from isolated method-level refactoring to ongoing code quality improvement. By framing refactoring as a continuous process, the authors address key challenges across five dimensions, including multi-objective optimization, evolving quality definitions, and trust in autonomous systems. The proposed framework aims to enhance the integration of AI-driven refactoring into continuous delivery pipelines, thereby transforming software maintenance practices.
Refactoring isn't just a one-off task; it's time to make it a continuous process that evolves with your codebase.
Large language models have shown promising capabilities in code refactoring, but existing approaches remain limited to method-level tasks. In this paper, we envision LLM-based refactoring as a continuous component of software maintenance rather than a tool invoked only for occasional manual refactoring. Under this vision, AI agents continuously monitor, evaluate, and improve codebases against explicit and evolving notions of software quality. We present a roadmap organized around five dimensions: the multi-objective optimization problem, quality definition and evaluation, multi-timescale integration of heterogeneous signals, architecture and design pattern, and trust in autonomous refactoring. We further identify integration into continuous delivery pipelines and cost considerations as cross-cutting concerns. For each dimension, we analyze the underlying challenges and pose open research questions. These dimensions define a research agenda for advancing autonomous refactoring from isolated code improvements to system-level quality maintenance.