用多个协作AI代理自动完成软件开发全流程。
AgentMesh: A Cooperative Multi-Agent Generative AI Framework for Software Development Automation
- 分角色代理协同工作:规划、编码、调试、评审
- 从需求到代码实现,支持迭代调试与最终审查
- 适合希望自动化开发流程的工程师或研究者
软件开发是复杂多阶段过程,传统上依赖跨领域专家协作。我们提出AgentMesh,一个基于Python的多智能体生成式AI框架,利用多个协作的大型语言模型驱动代理自动化软件开发任务。在AgentMesh中,规划、编码、调试和评审四类专用代理协同工作,将高层需求转化为完整可运行代码:规划代理将用户请求分解为具体子任务;编码代理实现各子任务代码;调试代理测试并修复代码;评审代理验证最终输出的正确性与质量。本文描述了各代理的架构设计与通信机制,提供提示策略与工作流编排的实现细节。案例研究展示了AgentMesh通过顺序任务规划、代码生成、迭代调试与最终评审处理复杂开发请求的过程。我们探讨了分工协作如何发挥大模型优势,同时缓解单智能体局限。最后分析了当前局限,如错误传播与上下文扩展问题,并展望更鲁棒、可扩展的多智能体系统在软件工程自动化中的未来方向。
原文摘要 · Abstract (English)
Software development is a complex, multi-phase process traditionally requiring collaboration among individuals with diverse expertise. We propose AgentMesh, a Python-based framework that uses multiple cooperating LLM-powered agents to automate software development tasks. In AgentMesh, specialized agents - a Planner, Coder, Debugger, and Reviewer - work in concert to transform a high-level requirement into fully realized code. The Planner agent first decomposes user requests into concrete subtasks; the Coder agent implements each subtask in code; the Debugger agent tests and fixes the code; and the Reviewer agent validates the final output for correctness and quality. We describe the architecture and design of these agents and their communication, and provide implementation details including prompt strategies and workflow orchestration. A case study illustrates AgentMesh handling a non-trivial development request via sequential task planning, code generation, iterative debugging, and final code review. We discuss how dividing responsibilities among cooperative agents leverages the strengths of large language models while mitigating single-agent limitations. Finally, we examine current limitations - such as error propagation and context scaling - and outline future work toward more robust, scalable multi-agent AI systems for software engineering automation.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。