Agentic AI
Multi-Agent System Automates Coordinated Code Refactoring While Keeping Developers in Control
Researchers introduce an AI agent framework that intelligently propagates rename changes across codebases, reducing manual refactoring burden while minimizing false positives.
A team of researchers has developed the first multi-agent system designed to handle coordinated rename refactoring—a common but time-consuming programming task where changing one identifier name requires related updates across multiple files and contexts. The work centers on the principle that AI agents should amplify developer capability rather than replace human judgment.
The Challenge#
Rename refactoring that spans multiple related identifiers is a frequent source of friction in software development. Developers typically face three unsatisfying options: manually propagate changes across their codebase (tedious and error-prone), rely on heuristic-based tools that flag far too many false candidates, or use standard large language models that lack sufficient code context and cannot directly interact with refactoring infrastructure. The result leaves teams choosing between incomplete refactorings or spending hours filtering noise.
The Multi-Agent Solution#
The researchers' framework operates through three specialized agents working in concert. The Scope Inference Agent converts a developer's initial refactoring action into a clear, natural-language description of what should change. The Planned Execution Agent then interprets this declared scope as a strict directive, identifying which program elements require updates and performing changes through the IDE's own tested refactoring APIs—ensuring safety and reliability. A third Replication Agent uses the same scope to guide searches across the entire project, catching related changes that might otherwise be missed.
The key insight is that a developer's first refactoring choice itself contains signals about the intended scope of related work. By extracting and formalizing these signals, the agents can make principled decisions about propagation without over-reaching.
Validation at Scale#
The team grounded their work in empirical evidence, conducting a formative study of over 609,000 commits across 100 open-source projects and surveying 205 developers on actual refactoring practices. This foundation informed the system's design and provided realistic benchmarks for evaluation.

