Towards Just-In-Time, Inclusive Clone Refactoring
Best Doctoral Proposal Award
Role: Sole author.
Palash Ranjan Roy (published as Palash Roy / Palash R. Roy) · ORCID 0000-0001-9470-4233
Abstract
Code clones are a well-known source of technical debt, often degrading software maintainability. Modern AI coding assistants can unintentionally introduce clones or even license-incompatible code, posing maintenance and legal challenges. This research proposes a Large Language Model (LLM)-powered clone refactoring assistant that proactively detects duplicative code during development and suggests high-level refactorings. By bridging traditional clone detection with LLM-driven code generation or transformation, the approach aims to remove redundancies early while ensuring changes remain behavior preserving and legally compliant. The assistant will integrate into development workflows to prevent clone propagation, flag potential intellectual property risks, and incorporate developer feedback for explainable, trustworthy operation. We will evaluate its impact on code quality and developer productivity, and assess how AI enhancements influence long-term maintenance efforts.
Problem addressed
Code clones add technical debt, and AI coding assistants can unintentionally introduce clones or license-incompatible code, creating maintenance and legal risks.
Relevant to
- just-in-time clone refactoring
- LLM-assisted refactoring
- clones introduced by AI coding assistants
- license compliance of generated code
- technical debt and software maintainability
- behavior-preserving code transformation
- developer-in-the-loop explainable tooling
Cite
@inproceedings{roy2025jit,
title = {Towards Just-In-Time, Inclusive Clone Refactoring},
url = {https://doi.org/10.1109/ICSME64153.2025.00099},
doi = {10.1109/ICSME64153.2025.00099},
booktitle = {2025 IEEE International Conference on Software Maintenance and Evolution (ICSME)},
publisher = {IEEE},
author = {Roy, Palash},
year = {2025},
month = {Sept},
pages = {884--886}
}