ACM Transactions on Software Engineering and Methodology· 2026Q1
Spell : Synthesis of Programmatic Edits Using LLMs
- 5citations
- Q1SCImago
- 2026year
Short summary
Spell uses LLMs to extract migration examples, which are then generalized into reusable transformation scripts by an agent using PolyglotPiranha, enabling automated API migration without prior data.
AI-generated from the title and abstract; the full text is not read.
Key points
- Spell uses LLMs to extract migration examples from unstructured text, bypassing the need for pre-existing migration datasets.
- Extracted examples are generalized into reusable transformation scripts using an agent and the PolyglotPiranha code transformation tool.
- The system synthesizes structured, testable, and repeatable migration logic without manual engineering effort.
- Experimental results on Python libraries show successful generation of diverse migration examples and generalization to real-world codebases.
AI-generated from the title and abstract; the full text is not read.
Abstract
Library migration is a common but error-prone task in software development. Developers may need to replace one library with another due to reasons like changing requirements or licensing changes. Migration typically entails updating and rewriting source code manually. While automated migration tools exist, most rely on mining examples from real-world projects that have already undergone similar migrations. However, these data are scarce, and collecting them for arbitrary pairs of libraries is difficult. Moreover, these migration tools often miss out on leveraging modern code transformation infrastructure. In this paper, we present a new approach to automated API migration that sidesteps the limitations described above. Instead of relying on existing migration data or using LLMs directly for transformation, we use LLMs to extract migration examples. Next, we use an agent to generalize those examples to reusable transformation scripts in PolyglotPiranha, a modern code transformation tool. Our method distills latent migration knowledge from LLMs into structured, testable, and repeatable migration logic, without requiring preexisting corpora or manual engineering effort. Experimental results across Python libraries show that our system can generate diverse migration examples and synthesize transformation scripts that generalize to real-world codebases.
The authors' abstract, as published at the source. ACM Transactions on Software Engineering and Methodology, 2026 · DOI ↗
Continue with a free account
Ask the paper: 5 free questions a day about this paper; save it, get its citation, new summaries every day for your field. Takeaways are Premium.
Continue free on the webSign in with Google or Apple; no card needed. You come back to this paper.
On your phone:
Field: Information Systems
Information SystemsComputer Science