用智能代理让代码仓库能自动理解、运行和协作,提升开源软件复用效率。
EnvX: Agentize Everything with Agentic AI
- 将代码仓库转化为可自然语言交互的智能代理,分三阶段自动初始化与执行任务。
- 在18个仓库上实现74.07%任务完成率和51.85%任务通过率,优于现有框架。
- 支持多代理协作,适合希望自动化集成开源工具的研发人员。
开源仓库的广泛存在带来了大量可复用的软件组件,但其使用仍依赖人工操作,易出错且割裂。为解决此问题,我们提出EnvX框架,利用代理型AI将GitHub仓库转化为具备自然语言交互和多代理协作能力的智能体。该框架采用三阶段流程:(1) 基于TODO的环境初始化,自动配置依赖、数据与验证集;(2) 人类对齐的代理自动化,使仓库专属代理可自主执行真实任务;(3) 代理间(A2A)协议,支持多代理协同。结合大模型与结构化工具集成,EnvX不仅生成代码,更实现了功能理解、初始化与运行全过程自动化。我们在GitTaskBench基准上评估了18个跨图像处理、语音识别、文档分析、视频编辑等领域的仓库,结果表明其任务执行完成率达74.07%,任务通过率为51.85%,显著优于现有框架。案例研究进一步证明了A2A协议在多仓库协作中的有效性。本工作推动开源仓库从静态代码资源向智能互动代理的转变,增强生态的可访问性与协作性。
原文摘要 · Abstract (English)
The widespread availability of open-source repositories has led to a vast collection of reusable software components, yet their utilization remains manual, error-prone, and disconnected. Developers must navigate documentation, understand APIs, and write integration code, creating significant barriers to efficient software reuse. To address this, we present EnvX, a framework that leverages Agentic AI to agentize GitHub repositories, transforming them into intelligent, autonomous agents capable of natural language interaction and inter-agent collaboration. Unlike existing approaches that treat repositories as static code resources, EnvX reimagines them as active agents through a three-phase process: (1) TODO-guided environment initialization, which sets up the necessary dependencies, data, and validation datasets; (2) human-aligned agentic automation, allowing repository-specific agents to autonomously perform real-world tasks; and (3) Agent-to-Agent (A2A) protocol, enabling multiple agents to collaborate. By combining large language model capabilities with structured tool integration, EnvX automates not just code generation, but the entire process of understanding, initializing, and operationalizing repository functionality. We evaluate EnvX on the GitTaskBench benchmark, using 18 repositories across domains such as image processing, speech recognition, document analysis, and video manipulation. Our results show that EnvX achieves a 74.07% execution completion rate and 51.85% task pass rate, outperforming existing frameworks. Case studies further demonstrate EnvX's ability to enable multi-repository collaboration via the A2A protocol. This work marks a shift from treating repositories as passive code resources to intelligent, interactive agents, fostering greater accessibility and collaboration within the open-source ecosystem.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。