AgileCoder: Dynamic Collaborative Agents for Software Development based on Agile Methodology

Minh Huynh Nguyen, Thang Phan Chau, Phong X. Nguyen, Nghi D. Q. Bui

TL;DR

AgileCoder is a multi-agent software development framework that moves beyond the rigid "Waterfall" models of previous AI systems by adopting an iterative Agile Methodology. By organizing specialized LLM agents into roles like Scrum Masters and Testers and utilizing a dynamic dependency graph to manage code context, it achieves state-of-the-art performance on complex, multi-file software projects.

What Problem Does This Paper Address?

While Large Language Models (LLMs) are excellent at writing snippets of code, building entire software systems is a different beast. Existing multi-agent frameworks like ChatDev and MetaGPT typically follow a linear "Waterfall" process: design, then code, then test, then finish. In the real world, software development is rarely linear; it is iterative, requiring constant refinement and adaptation.

Furthermore, LLMs struggle with "repository-level" understanding. As a codebase grows, the amount of context (files, classes, imports) exceeds the LLM's "context window" (its short-term memory). This leads to "hallucinations," where the AI forgets existing dependencies or generates code that breaks imports in other files. AgileCoder aims to bridge this gap by bringing the flexibility of Agile sprints and the precision of graph-based context retrieval to AI agents.

Methods

The authors introduce two primary innovations:

  1. Agile-Inspired Workflow: Instead of a single pass, work is organized into Sprints. Each sprint consists of four phases:
  2. Planning: The Product Manager (PM) and Scrum Master (SM) select tasks from a backlog.
  3. Development: A Developer (Dev) writes code, which is then scrutinized by a Senior Developer (SD) using a specialized three-step static review process (checking basics, backlog compliance, and bug identification).
  4. Testing: A Tester generates test suites and executes them in a sandbox, providing feedback for iterative fixes.
  5. Review: The PM assesses if requirements are met; if not, the remaining tasks move to the next sprint.
  6. Dynamic Code Graph Generator (DCGG): To solve the context window problem, AgileCoder maintains a Code Dependency Graph (CDG). This graph maps out how every file in the repository relates to others (e.g., which files import which classes). When an agent needs to modify a specific file, the DCGG retrieves only the relevant "ancestor" nodes from the graph. This ensures the agent has the exact context needed to maintain system integrity without being overwhelmed by irrelevant data.

Datasets

The researchers evaluated AgileCoder on three benchmarks:

  • HumanEval & MBPP: Standard industry benchmarks consisting of hundreds of isolated Python programming tasks.
  • ProjectDev (New): A benchmark introduced by the authors containing 14 complex, multi-file software requirements. These include mini-games (Snake, 2048, Flappy Bird), data processors (Excel to Streamlit), and CRUD management systems. Unlike standard benchmarks, these require the system to manage complex logic across multiple interconnected files.

Key Insights and Ideas

  • Iterative Inheritance: One of the "aha moments" is that AgileCoder allows for the "inheritance" of outputs across sprints. If a feature is buggy or incomplete in Sprint 1, the system doesn't just fail; it carries that context into Sprint 2 for refinement, mimicking how human teams actually work.
  • Graph-Based Precision: The use of the DCGG proves that "more context" isn't always better. By selectively providing agents with dependency information, the system avoids the "lost in the middle" phenomenon common in long-context LLMs, leading to much higher executability rates.
  • The Power of the "Senior" Role: The paper demonstrates that breaking down code review into three distinct, sequential prompts (basics -> compliance -> bugs) significantly reduces the likelihood of the LLM overlooking subtle errors compared to a single-pass review.

Key Results

AgileCoder significantly outperformed its predecessors, particularly on complex tasks:

  • SOTA Performance: On HumanEval and MBPP, AgileCoder (using GPT-3.5 Turbo) achieved 70.53% and 80.92% pass@1 scores, respectively—outperforming MetaGPT by roughly 6-7%.
  • ProjectDev Superiority: On the complex ProjectDev benchmark, AgileCoder achieved an executability rate of 57.79%. For comparison, ChatDev hit 32.79%, and MetaGPT struggled significantly at 7.73%.
  • Zero Errors: Remarkably, on the ProjectDev tasks, AgileCoder produced zero runtime errors in its final deliverables, whereas MetaGPT averaged 32 errors per project.
  • Efficiency: The system completed complex projects in an average of just 1.64 sprints, showing it is both effective and relatively fast.

Limitations and Future Work

The authors acknowledge several areas for growth:

  • Scalability: While the dependency graph helps, maintaining and updating a CDG for massive, enterprise-scale repositories (thousands of files) could become computationally expensive.
  • Human Factors: Real-world Agile involves complex human dynamics and non-technical communication that are not yet fully captured by the agent interactions.
  • Expanded Practices: Future versions could integrate more advanced Agile practices like Pair Programming or automated CI/CD (Continuous Integration/Continuous Deployment) pipelines to further enhance reliability.
  • LLM Dependency: The system's "intelligence" is still capped by the reasoning capabilities of the underlying model (e.g., GPT-4 vs. GPT-3.5).

Summary updated

Abstract

Software agents have emerged as promising tools for addressing complex software engineering tasks. Existing works, on the other hand, frequently oversimplify software development workflows, despite the fact that such workflows are typically more complex in the real world. Thus, we propose AgileCoder, a multi agent system that integrates Agile Methodology (AM) into the framework. This system assigns specific AM roles - such as Product Manager, Developer, and Tester to different agents, who then collaboratively develop software based on user inputs. AgileCoder enhances development efficiency by organizing work into sprints, focusing on incrementally developing software through sprints. Additionally, we introduce Dynamic Code Graph Generator, a module that creates a Code Dependency Graph dynamically as updates are made to the codebase. This allows agents to better comprehend the codebase, leading to more precise code generation and modifications throughout the software development process. AgileCoder surpasses existing benchmarks, like ChatDev and MetaGPT, establishing a new standard and showcasing the capabilities of multi agent systems in advanced software engineering environments.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
HumanEvalAgileCoder with GPT-3.5 Turbopass@170.53%+7.73 vs baselinebackbone=GPT-3.5 Turbo
Source quote
L157: AgileCoder~ │ 70.53 │ 80.92
MBPPAgileCoder with GPT-3.5 Turbopass@180.92%+6.19 vs baselinebackbone=GPT-3.5 Turbo
Source quote
L157: AgileCoder~ │ 70.53 │ 80.92
ProjectDevAgileCoderaverage number of sprints (#Sprints)1.64 sprintstasks=14 · repetitions=3 per task
Source quote
L193: Results on ProjectDev (Table \ref{tab:project-dev}) further demonstrate AgileCoder's superiority in software development tasks. AgileCoder~ shows substantial improvements in executability over ChatDev and MetaGPT, without producing any non-executable programs. These advantages can be attributed to AgileCoder's incorporation of the planning phase, generated test cases, and efficient code retrieval, which ChatDev and MetaGPT lack. Although AgileCoder~ requires more tokens and running time due to the inherent complexity of the Agile Scrum methodology, it efficiently completes user tasks in an average of 1.64 sprints. Our experiments consistently demonstrate AgileCoder's superiority across various benchmarks.
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
HumanEvalMetaGPT with GPT-3.5 Turbo baselinepass@162.80%backbone=GPT-3.5 Turbo
Source quote
L155: MetaGPT │ 62.80 │ 74.73
MBPPMetaGPT with GPT-3.5 Turbo baselinepass@174.73%backbone=GPT-3.5 Turbo
Source quote
L155: MetaGPT │ 62.80 │ 74.73
BibTeX
@inproceedings{nguyen2025agilecoder,
  author = {Minh Huynh Nguyen and Thang Phan Chau and Phong X. Nguyen and Nghi D. Q. Bui},
  title = {{AgileCoder: Dynamic Collaborative Agents for Software Development based on Agile Methodology}},
  booktitle = {Forge@ICSE},
  year = {2025},
  doi = {10.1109/forge66646.2025.00026},
}

Loading related content...

Figure