Abstract
EnvX is a novel framework designed to transform static software repositories into autonomous "Agentic AI" entities. By automating environment setup and implementing a standardized Agent-to-Agent (A2A) protocol, EnvX enables Large Language Models (LLMs) to fully operationalize and coordinate complex software ecosystems through natural language. Evaluation on the GitTaskBench benchmark demonstrates that EnvX achieves a state-of-the-art 74.07% Execution Completion Rate, significantly outperforming existing coding assistants while maintaining superior token efficiency.
Introduction
The open-source ecosystem is a vast resource of reusable software, yet utilizing a new repository remains a high-friction manual process. Developers must navigate dense documentation, resolve dependency conflicts, and write custom integration code. While current AI coding assistants (such as Aider or SWE-Agent) are effective at generating code snippets or fixing bugs, they generally treat repositories as passive text files.
EnvX addresses this gap through agentization: the process of turning a codebase into an autonomous agent that understands its own capabilities, manages its own environment, and collaborates with other agents to solve multi-step, real-world problems.
Methodology: The Agentization Pipeline
EnvX moves away from simple Natural Language to Code (NL2Code) workflows toward a three-phase agentization pipeline:
1. TODO-Guided Environment Initialization
Instead of merely running installation commands, EnvX analyzes READMEs and technical manuals to generate a structured "TODO list." This includes setting up dependencies, downloading model weights or artifacts, and preparing validation datasets to ensure the environment is functional before any task execution begins.
2. Human-Aligned Agentic Automation
EnvX instantiates a "Meta-Agent" equipped with a Code Knowledge Graph (CKG). This graph allows the agent to semantically understand the repository’s internal logic and entry points. By leveraging the CKG, the agent can invoke repository functions as tools to solve user queries effectively.
3. Agent-to-Agent (A2A) Protocol
To facilitate multi-repository coordination, EnvX introduces a "social" layer. It generates "Agent Cards"—standardized manifests describing a repository's skills and invocation methods. This allows a "Router Agent" to coordinate multiple repository-agents (e.g., one for image downloading and another for style transfer) to complete complex, multi-repo tasks without exceeding context window limits.
Experimental Evaluation
The researchers evaluated EnvX using GitTaskBench, a benchmark designed for repository-level task execution across 18 diverse open-source repositories and 54 human-validated tasks. EnvX was tested against three major baselines: OpenHands, Aider, and SWE-Agent, using backbones like GPT-4o and Claude 3.7 Sonnet.
Key Results
EnvX established a new state-of-the-art (SOTA) on the GitTaskBench benchmark:
- Execution Completion Rate (ECR): Achieved 74.07% with Claude 3.7 Sonnet, meaning the agent successfully set up the environment and produced an output in nearly 3 out of 4 cases.
- Task Pass Rate (TPR): Reached 51.85%, significantly outperforming OpenHands (48.15%) and SWE-Agent (42.59%) on the same backbone.
- Token Efficiency: Compared to OpenHands, EnvX was remarkably more efficient. When using Claude 3.7, OpenHands consumed over 10x more tokens than EnvX to achieve lower performance, highlighting the benefits of EnvX's structured tool-calling approach.
Discussion and Insights
- From Passive to Active: The core innovation of EnvX is treating a repository as a "living" agent rather than a static resource. This shift allows for higher reliability because the agent is responsible for its own environment health and validation.
- Efficiency of Planning: One surprising finding was that as models get more intelligent (e.g., moving from GPT-4o to Claude 3.7), token consumption actually decreases in some scenarios. Stronger models plan more effectively and make fewer hallucinated tool calls.
- Structured Collaboration: By using "Agent Cards," the system avoids context window bloat by using high-level abstractions of what each repository can do rather than feeding entire codebases into a single prompt.
Limitations and Future Work
The authors identify several areas for future development:
- Evaluation Oracles: Current testing relies on scripted oracles; real-world "long-horizon" tasks may introduce more complex coordination failures.
- Rigorous Verification: Future work will implement more rigorous property-based checks to ensure agent outputs are truly correct beyond basic completion signals.
- Security: As agents gain the power to autonomously manage environments, stricter sandboxing and contract-based execution will be necessary to prevent unintended or malicious actions.
Summary updated