arXiv:2610.21372cs.SEOct 2026

Manuscript Offprint

arXiv:2610.21372

Agentic Dependency Transformations: Lessons from an Exploratory Case Study of Flask

Kaya Kitada, Yoshiki Higo, Raula Gaikovina Kula

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Kaya Kitada, Yoshiki Higo, Raula Gaikovina Kula

The University of Osaka, Japan

{ka-kitad, higo, raula-k}@ist.osaka-u.ac.jp

Abstract—Modern software relies heavily on third-party libraries, requiring maintainers to balance the benefits of reuse against dependency-related maintenance and risk. We define dependency transformation as an emerging approach in which an AI coding agent alters how a repository handles external dependencies. Local reimplementation is one transformation strategy that recreates required functionality as local code; dependency transformation is broader and may include other strategies.

In this emerging-results paper, we report an exploratory case study of Flask to explore dependency transformation strategies. We design experiments that show how available context shapes an agent's dependency discovery and iterative transformation of dependencies. The case yields five preliminary lessons. These lessons and the five-part research agenda position dependency transformation as an emerging research direction and motivate explicit transformation contracts, provenance constraints, preservation requirements, and independent validation criteria.

Index Terms—Agentic Software Engineering, Dependency Management, Open Source

I. INTRODUCTION

Modern software is assembled from ecosystems of external libraries and frameworks such as npm, PyPI, and Maven. Reuse accelerates delivery, but it also creates update work, version conflicts, vulnerabilities, and supply-chain exposure [1]–[3]. A 2024 Synopsys report found open-source software in 96% of the audited commercial codebases and estimated that 77% of their code was open source. 1^{1} Widely propagated vulnerabilities such as Log4Shell illustrate how risk in a single library can affect many downstream systems. 2^{2} Research has also shown dependency management impacts security [4], [5].

Existing tools support dependency identification, vulnerability scanning, and version maintenance [6]–[8]. For example, Dependabot automates update proposals and vulnerability notifications. Developers must nevertheless determine where and why a dependency is used, whether updating or removing it is safe, and whether a proposed change preserves repository behavior.

The idea of using Large Language Models (LLMs) for dependency management is now in early exploration. For instance, Almeida et. al, [9] and Tawosi et al. [10] both explore how dependency recommendations by an LLM. Related research addresses automation for dependency identification, vulnerability analysis, resolution, and automated updates [5]–[8], [11], [12]. Apart from updates, dependency strategies may involve dependency downgrades [13] and removals [14] for self-containment.

An AI coding agent may complement these dependency bots by searching a repository, inspecting heterogeneous artifacts, editing multiple files, and running builds and tests [15]. We subsequently refer to the AI coding agent as the agent. These capabilities motivate dependency transformation, which which we define as how an agent alters how a repository handles external dependencies.

We define a dependency transformation as a repository-level change in which an agent takes one third-party package that the repository relies on and changes how the functionality obtained from that package is supplied, so that the repository no longer needs the package. A transformation therefore spans three kinds of edits: (i) the code that imports or calls the package, (ii) the files that declare it, such as manifests, lockfiles, and CI/CD configuration, and (iii) the build and tests used to validate the dependency. For example, if a repository imports a package only to load a configuration file, an agent may rewrite that loader locally, delete the package from pyproject.toml, and re-run the tests. This differs from a dependency update, which keeps the package and changes its version, and from a library migration, which is when there is a replacement of one third-party package with another. Local reimplementation, as in the example, is one transformation strategy; dependency transformation is broader and also covers strategies such as using the standard library, copying the package source into the repository, or removing the feature that needs the package. We call a third-party package that the agent reports as a dependency of the repository, and that is therefore a potential target of a transformation, a dependency-transformation candidate.

In this paper, we study dependency transformation in a real-world setting using the agent rather than a standalone LLM. We explore a case study of Flask using OpenAI ChatGPT 5.4 3^{3} and the pi coding-agent harness. 4^{4}. Rather than establish effectiveness, our study uses one repository-level case to derive two research questions:

• RQ1: How does available context shape the discovery of dependency-transformation candidates?

The motivation is to compare the agent's dependency discovery with and without context (only source code).

1^{1}Synopsys OSSRA 2024

2^{2}GitHub, “The Untold Story of Log4Shell”

3^{3}OpenAI GPT-5.4

4^{4}pi coding agent

  • RQ2: What transformation strategies arise when an agent iteratively processes transformation candidates at the repository level?

In addition to local reimplementation, we explore other strategies suggested and implemented by the agent.