# Towards Just-In-Time, Inclusive Clone Refactoring

**Palash Ranjan Roy**. *2025 IEEE International Conference on Software Maintenance and Evolution (ICSME), Doctoral Symposium, pp. 884–886, 2025*. Venue ranking: CORE A.

Award: Best Doctoral Proposal Award.

Role of Palash Ranjan Roy: Sole author.

Areas: Software Maintenance & Evolution, Code Clones, Refactoring.

ML topics: Large Language Models.

Page: https://palashroy.me/publications/jit-inclusive-clone-refactoring/

- Slides: https://palashroy.me/slides/jit-inclusive-clone-refactoring-slides.pdf
- DOI: https://doi.org/10.1109/ICSME64153.2025.00099
- Replication package: https://github.com/srlabUsask/CLEAR

## 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 research on

- 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

## BibTeX

```bibtex
@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}
}
```
