Environment-in-the-Loop: Rethinking Code Migration with LLM-based Agents

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Li, Xiang, Fei, Zhiwei, Ma, Ying, Zhang, Jerry, Federica, Sarro, Ye, He
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908826234519552
author Li, Xiang
Fei, Zhiwei
Ma, Ying
Zhang, Jerry
Federica, Sarro
Ye, He
author_facet Li, Xiang
Fei, Zhiwei
Ma, Ying
Zhang, Jerry
Federica, Sarro
Ye, He
contents Modern software systems continuously undergo code upgrades to enhance functionality, security, and performance, and Large Language Models (LLMs) have demonstrated remarkable capabilities in code migration tasks. However, while research on automated code migration which including refactoring, API adaptation, and dependency updates has advanced rapidly, the exploration of the automated environment interaction that must accompany it remains relatively scarce. In practice, code and its environment are intricately intertwined. Relying solely on static analysis of the environment leads to an inadequate understanding of the target setting, prolongs feedback cycles, and consequently causes significant rework and project delays, thereby reducing overall efficiency. We contend that successful software evolution demands a holistic perspective that integrates both code and environment migration. To understand the current landscape and challenges, we first provide an overview of the status of automated environment construction. We then propose a novel framework paradigm that tightly integrates automated environment setup with the code migration workflow. Finally, we explore the challenges and future directions for automated environment interaction within the code migration domain. Our findings emphasize that without automated environment interaction, the automation of code migration is only half complete.
format Preprint
id arxiv_https___arxiv_org_abs_2602_09944
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Environment-in-the-Loop: Rethinking Code Migration with LLM-based Agents
Li, Xiang
Fei, Zhiwei
Ma, Ying
Zhang, Jerry
Federica, Sarro
Ye, He
Software Engineering
Modern software systems continuously undergo code upgrades to enhance functionality, security, and performance, and Large Language Models (LLMs) have demonstrated remarkable capabilities in code migration tasks. However, while research on automated code migration which including refactoring, API adaptation, and dependency updates has advanced rapidly, the exploration of the automated environment interaction that must accompany it remains relatively scarce. In practice, code and its environment are intricately intertwined. Relying solely on static analysis of the environment leads to an inadequate understanding of the target setting, prolongs feedback cycles, and consequently causes significant rework and project delays, thereby reducing overall efficiency. We contend that successful software evolution demands a holistic perspective that integrates both code and environment migration. To understand the current landscape and challenges, we first provide an overview of the status of automated environment construction. We then propose a novel framework paradigm that tightly integrates automated environment setup with the code migration workflow. Finally, we explore the challenges and future directions for automated environment interaction within the code migration domain. Our findings emphasize that without automated environment interaction, the automation of code migration is only half complete.
title Environment-in-the-Loop: Rethinking Code Migration with LLM-based Agents
topic Software Engineering
url https://arxiv.org/abs/2602.09944