Skip to content

Compose: Orchestrating Coding Agents for Large-Scale Multi-Repository Code Migrations

Pantazis Deligiannis, Rahee Ghosh Peshawaria, Gabriela Martinez Sanchez, Galen Hunt

cs.SE

Abstract

Code migrations recur as platforms, dependencies, and architectural requirements change, and they are costly in legacy code. When each owning team migrates its own code, teams repeat the same reasoning, implementation, and validation, and the migration is complete only when every team finds time for it among its other work. Coding agents can adapt edits to each codebase, but the user directing a migration must still coordinate their work and review the resulting changes across repositories. We present Compose, an agentic system for centralized coordination of code migrations. A contract derived from the user's instructions records the migration goal and constraints, while coding agents make context-specific edits in each repository. Compose captures each repository's changes and validation evidence, groups recurring edits and clusters related groups for review across repositories, and carries review feedback into later, user-authorized iterations. We evaluated Compose on ten historical open-source migrations and a parser SDK migration across 350 repositories at Microsoft. Six open-source migrations met all core requirements in the first iteration, and review feedback led to completion of the other four. In the SDK migration, 285 repositories passed build and corpus regression checks in the first iteration; two more iterations completed it. The 4,036 edit occurrences formed 11 edit groups.

Create a lesson