LLM Agents for Automated Dependency Upgrades

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Tawosi, Vali, Alamir, Salwa, Liu, Xiaomo, Veloso, Manuela
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914169159155712
author Tawosi, Vali
Alamir, Salwa
Liu, Xiaomo
Veloso, Manuela
author_facet Tawosi, Vali
Alamir, Salwa
Liu, Xiaomo
Veloso, Manuela
contents As a codebase expands over time, its library dependencies can become outdated and require updates to maintain innovation and security. However, updating a library can introduce breaking changes in the code, necessitating significant developer time for maintenance. To address this, we introduce a framework of LLM agents to be used in combination with migration documentation to automatically recommend and apply code updates and ensure compatibility with new versions. Our solution can automatically localize updated library usages in live Java codebases and implement recommended fixes in a user-friendly manner. The system architecture consists of multiple key components: a Summary Agent, Control Agent, and Code Agent. To validate our approach, we apply the framework on an industrial use case by which we create three synthetic code repositories with major Upgrade changes and benchmark our approach against state-of-the-art methods. Results show that our approach not only performs upgrades using fewer tokens across all cases but also achieves a precision of 71.4%, highlighting its efficiency and effectiveness compared to state-of-the-art methods.
format Preprint
id arxiv_https___arxiv_org_abs_2510_03480
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLM Agents for Automated Dependency Upgrades
Tawosi, Vali
Alamir, Salwa
Liu, Xiaomo
Veloso, Manuela
Software Engineering
As a codebase expands over time, its library dependencies can become outdated and require updates to maintain innovation and security. However, updating a library can introduce breaking changes in the code, necessitating significant developer time for maintenance. To address this, we introduce a framework of LLM agents to be used in combination with migration documentation to automatically recommend and apply code updates and ensure compatibility with new versions. Our solution can automatically localize updated library usages in live Java codebases and implement recommended fixes in a user-friendly manner. The system architecture consists of multiple key components: a Summary Agent, Control Agent, and Code Agent. To validate our approach, we apply the framework on an industrial use case by which we create three synthetic code repositories with major Upgrade changes and benchmark our approach against state-of-the-art methods. Results show that our approach not only performs upgrades using fewer tokens across all cases but also achieves a precision of 71.4%, highlighting its efficiency and effectiveness compared to state-of-the-art methods.
title LLM Agents for Automated Dependency Upgrades
topic Software Engineering
url https://arxiv.org/abs/2510.03480