The primary value of AI agents in software development lies in their ability to extend the developer's capacity for reasoning and action, not to supplant human involvement. To showcase how to use agents working in tandem with developers, we designed a novel approach for carrying out coordinated renaming. Coordinated renaming, where a single rename refactoring triggers refactorings in multiple, related identifiers, is a frequent yet challenging task. Developers must manually propagate these rename refactorings across numerous files and contexts, a process that is both tedious and highly error-prone. State-of-the-art heuristic-based approaches produce an overwhelming number of false positives, while vanilla Large Language Models (LLMs) provide incomplete suggestions due to their limited context and inability to interact with refactoring tools. This leaves developers with incomplete refactorings or burdens them with filtering too many false positives. Coordinated renaming is exactly the kind of repetitive task that agents can significantly reduce the developers' burden while keeping them in the driver's seat. We designed, implemented, and evaluated the first multi-agent framework that automates coordinated renaming. It operates on a key insight: a developer's initial refactoring is a clue to infer the scope of related refactorings. Our Scope Inference Agent first transforms this clue into an explicit, natural-language Declared Scope. The Planned Execution Agent then uses this as a strict plan to identify program elements that should undergo refactoring and safely executes the changes by invoking the IDE's own trusted refactoring APIs. Finally, the Replication Agent uses it to guide the project-wide search. We first conducted a formative study on the practice of coordinated renaming in 609K commits in 100 open-source projects and surveyed 205 developers ...


翻译:AI智能体在软件开发中的核心价值在于其扩展开发者推理与行动能力的作用,而非取代人类参与。为展示如何运用智能体与开发者协同工作,我们设计了一种实现协同重命名的新方法。协同重命名——即单一重命名重构触发多个相关标识符的连锁重构——是频繁出现却极具挑战性的任务。开发者需要跨大量文件与上下文手动传播这些重命名重构,该过程既繁琐又极易出错。当前最先进的基于启发式方法会产生大量误报,而原始大语言模型(LLMs)因上下文有限且无法与重构工具交互,仅能提供不完整的建议。这导致开发者要么获得不完整的重构结果,要么被迫筛选过多误报。协同重命名正是智能体能在保持开发者主导地位的同时显著减轻其负担的重复性任务。我们设计、实现并评估了首个自动化协同重命名的多智能体框架。其核心洞见在于:开发者的初始重构行为是推断相关重构范围的线索。我们的范围推断智能体首先将此线索转化为显式的自然语言声明范围。计划执行智能体随后将其作为严格计划,识别需要重构的程序元素,并通过调用集成开发环境自身可信的重构API安全执行变更。最后,复制智能体以此指导项目级全局搜索。我们首先对100个开源项目中609K次提交的协同重命名实践进行了形成性研究,并调研了205位开发者……

0
下载
关闭预览

相关内容

AI 智能体系统:体系架构、应用场景及评估范式
智能体工程(Agent Engineering)
专知会员服务
27+阅读 · 2025年12月31日
中文版 | 集中式与分布式多智能体AI协调策略
专知会员服务
19+阅读 · 2025年5月8日
多智能体协同研究进展综述: 博弈和控制交叉视角
专知会员服务
52+阅读 · 2025年2月1日
多智能体协同决策方法研究
专知会员服务
133+阅读 · 2022年12月15日
浅谈群体智能——新一代AI的重要方向
中国科学院自动化研究所
44+阅读 · 2019年10月16日
NLP命名实体识别开源实战教程 | 深度应用
AI100
15+阅读 · 2019年8月18日
一文读懂命名实体识别
AINLP
31+阅读 · 2019年4月23日
基于车路协同的群体智能协同
智能交通技术
10+阅读 · 2019年1月23日
报告 | 解构与重组:开启智能经济(附PDF下载)
走向智能论坛
10+阅读 · 2019年1月7日
命名实体识别从数据集到算法实现
专知
55+阅读 · 2018年6月28日
群体智能:新一代人工智能的重要方向
走向智能论坛
12+阅读 · 2017年8月16日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
5+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
10+阅读 · 2013年12月31日
国家自然科学基金
20+阅读 · 2013年12月31日
国家自然科学基金
18+阅读 · 2009年12月31日
国家自然科学基金
48+阅读 · 2009年12月31日
Arxiv
0+阅读 · 1月28日
VIP会员
相关VIP内容
AI 智能体系统:体系架构、应用场景及评估范式
智能体工程(Agent Engineering)
专知会员服务
27+阅读 · 2025年12月31日
中文版 | 集中式与分布式多智能体AI协调策略
专知会员服务
19+阅读 · 2025年5月8日
多智能体协同研究进展综述: 博弈和控制交叉视角
专知会员服务
52+阅读 · 2025年2月1日
多智能体协同决策方法研究
专知会员服务
133+阅读 · 2022年12月15日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
5+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
10+阅读 · 2013年12月31日
国家自然科学基金
20+阅读 · 2013年12月31日
国家自然科学基金
18+阅读 · 2009年12月31日
国家自然科学基金
48+阅读 · 2009年12月31日
Top
微信扫码咨询专知VIP会员