技能梦境:通过拉取请求流演化仓库技能
Skill Dreaming: Evolving Repository Skills through Pull Request Streams
AI总结:
针对LLM智能体依赖技能库进行软件工程任务的需求,提出Skill Dreaming框架,通过分析PR流构建并优化特定仓库的技能库,实现PR、仓库与技能的协同演化,为仓库开发维护提供端到端支持。
摘要:
大型语言模型(LLM)智能体越来越依赖可复用技能来完成复杂的软件工程任务,这使得技能库对仓库的开发与维护至关重要。然而,特定仓库的技能必须随代码结构、实现规范和维护需求的变化而演化。拉取请求(PR)是此类知识的天然来源,它记录了仓库如何通过实现与审查实现演化。同时,新的PR必须遵循特定仓库的实现模式、一致修改相关组件,并确保在为新功能添加覆盖的同时现有测试继续通过。这形成了一个相互强化的循环:PR为更新技能提供知识,而这些技能则改进未来的PR、维护仓库并支持进一步的技能演化。为实现PR、仓库与技能的这种协同演化,我们提出Skill Dreaming框架,该框架从PR流中学习以指导持续的仓库开发与维护。给定一个仓库及其PR历史,Skill Dreaming通过从已验证的PR中提取可执行知识来构建特定仓库的技能库,并在新PR信息可用时持续优化这些技能。这些技能不仅指导编码智能体实现请求的功能,还指导其维护相关测试、文档、兼容性及仓库规范。通过整合PR分析、技能管理、代码执行与持续集成,Skill Dreaming提供了端到端的工作流,用于将学习到的技能应用于仓库变更,并将后续PR的结果纳入未来的技能更新中。
英文摘要:
Large language model (LLM) agents increasingly rely on reusable skills for complex software engineering tasks, making skill libraries essential for repository development and maintenance. However, repository-specific skills must evolve with changing code structures, implementation conventions, and maintenance requirements. Pull requests (PRs) provide a natural source of such knowledge by recording how repositories evolve through implementation and review. Meanwhile, new PRs must follow repository-specific implementation patterns, modify related components consistently, and ensure that existing tests continue to pass while adding coverage for new functionality. This creates a mutually reinforcing cycle: PRs provide knowledge for updating skills, while these skills improve future PRs, maintain repositories, and support further skill evolution. To enable this co-evolution of PRs, repositories, and skills, we propose Skill Dreaming, a framework that learns from PR streams to guide continuous repository development and maintenance. Given a repository and its PR history, Skill Dreaming builds a repository-specific skill library by extracting executable knowledge from validated PRs and continuously refines the skills as new PR information becomes available. These skills guide coding agents not only in implementing requested features but also in maintaining associated tests, documentation, compatibility, and repository conventions. By integrating PR analysis, skill management, code execution, and continuous integration, Skill Dreaming provides an end-to-end workflow for applying learned skills to repository changes and incorporating subsequent PR outcomes into future skill updates.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。