Abstract
EvoGit is a decentralized framework that treats software development as an evolutionary process, using Git as the "biological" substrate for multi-agent collaboration. By replacing centralized orchestrators with a Git-based phylogenetic graph, independent LLM agents can asynchronously mutate and merge code, producing complex software artifacts without direct communication. This paper details the framework's architecture, including its use of stigmergy and pairwise evaluation, and demonstrates its effectiveness in web development and meta-level code synthesis tasks.
Introduction
Current multi-agent coding frameworks typically rely on a centralized "manager" agent or shared memory to coordinate work. This architecture creates scalability bottlenecks and introduces single points of failure. Furthermore, these systems often depend on rigid unit tests or scalar rewards, which fail to capture the multi-faceted nature of real-world software engineering—where aesthetic quality and architectural modularity are as important as functional correctness.
EvoGit addresses these challenges by introducing a "Git-native" approach. It utilizes stigmergy—a biological phenomenon where agents coordinate by modifying their environment—to allow independent agents to build upon each other's work asynchronously.
Methodology
The core of EvoGit is the Phylogenetic Graph, a Directed Acyclic Graph (DAG) implemented directly on Git. Each node represents a full snapshot of the codebase, while edges represent validated evolutionary steps.
Autonomous Agent Loop
LLM-powered agents operate in a localized loop without explicit messaging:
- Selection: Agents choose a version from the "frontier" (the best current versions) of the Git graph.
- Mutation and Crossover: Agents apply localized edits (mutations) or merge divergent branches (three-way crossover) using the Lowest Common Ancestor.
- Pairwise Evaluation: Instead of a scalar score, agents perform a pairwise comparison to ensure a new version is an improvement over its parent, enforcing monotonic progress.
This structure ensures that every successful change is recorded as a Git commit, providing perfect traceability and allowing the system to "time travel" to previous successful states if a development path becomes unproductive.
Experimental Evaluation
EvoGit was evaluated on two complex generative tasks:
- Web Application Development: Building a responsive promotional website using Next.js. Agents worked purely through text-based feedback and linter diagnostics to evolve HTML, CSS, and JavaScript.
- Meta-Level Code Synthesis: A recursive task where EvoGit built a system that uses LLMs to evolve solvers for bin-packing optimization problems.
Results and Key Insights
The experimental results highlight several advantages of the decentralized evolutionary approach:
- Coordination without Communication: Agents successfully collaborated by observing the Git frontier, mimicking open-source development patterns.
- Structural Dominance: By using pairwise comparisons, the system supported multi-dimensional quality. Different branches could focus on UI polish or backend logic independently before being merged.
- Traceability: The researchers could reconstruct the entire ancestry of the final software, offering transparency that centralized "black box" swarms lack.
- Emergent Best Practices: In the meta-coding task, agents autonomously implemented engineering features like input validation and exception handling without explicit instructions.
Conclusion and Future Work
While EvoGit demonstrates significant potential, it currently faces limitations regarding the scale of localized edits and the need for occasional human "pruning" to prevent population drift. Future research will focus on adaptive pruning mechanisms and enhancing agents' temporal reasoning for long-horizon planning. By treating code as a living, evolving entity, EvoGit provides a scalable and transparent path forward for autonomous software engineering.
Summary updated