Empowering Agile-Based Generative Software Development through Human-AI Teamwork

Zhiyong Feng, Sai Zhang, Zhenchang Xing, Ronghui Guo, Fangzhou Xu, Lei Chen, Zhaoyuan Zhang, Xiaowang Zhang, Zhiyong Feng 0002, Zhiqiang Zhuang

Abstract

In software development, raw requirements are frequently incomplete, impeding full functionality. While large language models (LLMs) have enabled new generative methods, many rely on a top-down waterfall model that fails to capture implicit user needs and suffers from cumulative errors. We propose AgileGen, an agile-based generative software development framework centered on human-AI teamwork. AgileGen utilizes Gherkin as a semantic bridge to ensure consistency between requirements and code, and introduces an iterative decision-making process where users validate scenarios they understand best. Our evaluation shows that AgileGen outperforms existing state-of-the-art methods by 16.4% in functional completeness and achieves significantly higher user satisfaction.

The Challenge: Incomplete Requirements and Cumulative Error

Most current AI software agents follow a rigid "waterfall" approach where a user provides a prompt and the agent attempts to generate the entire codebase in one go. This paradigm faces two critical hurdles: requirement incompleteness and cumulative error. Users often struggle to articulate technical acceptance criteria, leading to "hallucinated" features that do not match intent. Furthermore, small errors in initial requirement analysis amplify throughout the generation process, resulting in code that is syntactically correct but functionally useless.

Requirement specification notation prevalence and human aspects influence.

As shown in empirical research, the vast majority of requirement specifications are informal, making them difficult for traditional LLM agents to parse accurately. Moreover, human aspects like communication skills and domain knowledge are extremely important in requirement engineering, yet non-technical users are often asked technical questions (e.g., database schemas) by existing agents that they cannot answer effectively.

AgileGen: Bridging the Gap with Human-AI Collaboration

AgileGen shifts the paradigm from a passive agent to a collaborative teammate. It facilitates a human-AI teamwork model centered on three key innovations:

  • Gherkin as a Semantic Bridge: AgileGen uses Gherkin (Behavior-Driven Development) to define "User Stories." Its structured Given/When/Then format is formal enough for code generation but readable for humans.
  • The Interaction Bridge: To lower the barrier for non-technical users, the system translates formal Gherkin into natural language scenarios. Users participate in "Scenario Decision-making"—confirming or modifying behaviors—rather than answering technical implementation questions.
  • Memory Pool Mechanism: By maintaining a database of successful human-validated scenarios, AgileGen can recommend relevant patterns for new projects, accelerating the design phase.
Overview of AgileGen's motivation and design compared to existing agent paradigms.

Key Results and Performance

AgileGen was evaluated using the 50projects50days benchmark and the Software Requirements Description Dataset (SRDD).

  • Functional Superiority: Using GPT-3.5, AgileGen achieved a 62.5% Pass@1 rate, outperforming the state-of-the-art ChatDev by 16.4%. With GPT-4, this rose to 71.5%.
  • Efficiency: AgileGen generated complete projects in approximately one minute, proving significantly faster and more cost-effective than multi-agent systems like AutoGPT.
  • User Experience: Human evaluations using the User Experience Questionnaire (UEQ) highlighted high scores in clarity (Perspicuity) and attractiveness, suggesting users felt more empowered and in control compared to "black-box" generation models.

Conclusion and Future Directions

AgileGen demonstrates that iterative, agile-based collaboration is superior to waterfall models for AI-driven development. By focusing users on validation rather than technical description, it bridges the gap between ambiguous intent and precise code. Future work will focus on integrating external automated testing tools for self-correction and expanding the framework's scope to mobile and complex backend architectures.

Summary updated

BibTeX
@article{feng2024empowering,
  author = {Zhiyong Feng and Sai Zhang and Zhenchang Xing and Ronghui Guo and Fangzhou Xu and Lei Chen and Zhaoyuan Zhang and Xiaowang Zhang and Zhiyong Feng and Zhiqiang Zhuang},
  title = {{Empowering Agile-Based Generative Software Development through Human-AI Teamwork}},
  journal = {ACM Trans. Softw. Eng. Methodol},
  year = {2024},
}
Figure