Using Copilot Agent Mode to Automate Library Migration: A Quantitative Assessment

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Almeida, Aylton, Xavier, Laerte, Valente, Marco Tulio
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917190415941632
author Almeida, Aylton
Xavier, Laerte
Valente, Marco Tulio
author_facet Almeida, Aylton
Xavier, Laerte
Valente, Marco Tulio
contents Keeping software systems up to date is essential to avoid technical debt, security vulnerabilities, and the rigidity typical of legacy systems. However, updating libraries and frameworks remains a time consuming and error-prone process. Recent advances in Large Language Models (LLMs) and agentic coding systems offer new opportunities for automating such maintenance tasks. In this paper, we evaluate the update of a well-known Python library, SQLAlchemy, across a dataset of ten client applications. For this task, we use the Github's Copilot Agent Mode, an autonomous AI systema capable of planning and executing multi-step migration workflows. To assess the effectiveness of the automated migration, we also introduce Migration Coverage, a metric that quantifies the proportion of API usage points correctly migrated. The results of our study show that the LLM agent was capable of migrating functionalities and API usages between SQLAlchemy versions (migration coverage: 100%, median), but failed to maintain the application functionality, leading to a low test-pass rate (39.75%, median).
format Preprint
id arxiv_https___arxiv_org_abs_2510_26699
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Using Copilot Agent Mode to Automate Library Migration: A Quantitative Assessment
Almeida, Aylton
Xavier, Laerte
Valente, Marco Tulio
Software Engineering
Keeping software systems up to date is essential to avoid technical debt, security vulnerabilities, and the rigidity typical of legacy systems. However, updating libraries and frameworks remains a time consuming and error-prone process. Recent advances in Large Language Models (LLMs) and agentic coding systems offer new opportunities for automating such maintenance tasks. In this paper, we evaluate the update of a well-known Python library, SQLAlchemy, across a dataset of ten client applications. For this task, we use the Github's Copilot Agent Mode, an autonomous AI systema capable of planning and executing multi-step migration workflows. To assess the effectiveness of the automated migration, we also introduce Migration Coverage, a metric that quantifies the proportion of API usage points correctly migrated. The results of our study show that the LLM agent was capable of migrating functionalities and API usages between SQLAlchemy versions (migration coverage: 100%, median), but failed to maintain the application functionality, leading to a low test-pass rate (39.75%, median).
title Using Copilot Agent Mode to Automate Library Migration: A Quantitative Assessment
topic Software Engineering
url https://arxiv.org/abs/2510.26699