Abstract
While Large Language Models (LLMs) excel at small-scale coding tasks, they often struggle with complex, multi-file software projects. This paper introduces AI-aided Software Development (AISD), a framework that redefines the human-AI partnership. By shifting the human role from manual coding to high-level requirement engineering and iterative system validation, AISD achieves a 75.2% pass rate on complex tasks, significantly outperforming fully autonomous agents while maintaining high token efficiency.
Introduction
The rapid evolution of LLMs has transformed software development, yet building "non-trivial" software remains a challenge. Current autonomous multi-agent frameworks, such as ChatDev and MetaGPT, attempt to automate the entire software development life cycle (SDLC). However, these systems often suffer from requirement hallucinations due to vague initial prompts and cognitive overload when processing dense design documentation.
AISD addresses these hurdles by adopting a "less is more" philosophy. It prioritizes human-in-the-loop interaction for high-level decision-making, allowing the AI to focus on the low-level implementation details it handles best.
The AISD Framework
The AISD methodology is structured into four iterative phases designed to maintain contextual integrity and ensure alignment with user requirements.
- Use Case Generation: Instead of complex Product Requirement Documents (PRDs), the system generates simple use cases. Users review and revise these to establish a clear functional baseline.
- System Designing: The LLM creates a high-level file structure. This design is intentionally simplified to fit within the LLM's context window, preventing the "information overload" seen in other frameworks.
- Coding and Automatic Testing: AISD generates all source files within a single chat session to ensure interoperability. It then uses an automated loop of unit and system testing to self-correct bugs based on error feedback.
- System Validation (Manual Testing): The final prototype is tested by the user. If the output—such as a GUI or a specific feature—does not meet expectations, the user provides feedback, triggering a new iteration of the cycle.
Experimental Evaluation
To test AISD, the researchers developed the CAASD (Capability Assessment of Automatic Software Development) benchmark. CAASD consists of 72 diverse software tasks, including games, web tools, and data utilities. Performance is measured by the "Pass Rate," defined as the percentage of reference use cases successfully implemented.
Key Results
The evaluation demonstrates that AISD significantly outperforms state-of-the-art autonomous frameworks. AISD achieved a 75.2% pass rate, compared to 32.2% for ChatDev and 12.5% for MetaGPT.
Beyond accuracy, AISD is remarkably efficient. It consumed approximately 22,000 tokens per task, whereas MetaGPT required over 37,000. This efficiency stems from avoiding redundant or overly complex documentation that can distract the model. Notably, the human-in-the-loop component is vital; without manual revision, AISD's pass rate plummeted to 24.1%.
Discussion and Limitations
The success of AISD highlights the "Human-in-the-Loop Advantage." By catching "semantic gaps" early through manual validation, users can steer the AI toward the correct implementation. However, the framework still requires users to have some programming knowledge to effectively revise system designs. Furthermore, certain tasks involving complex domain-specific logic (e.g., advanced speech processing) remain challenging for current LLMs regardless of the framework used.
Conclusion
AISD represents a shift toward a more collaborative programming practice. By focusing human effort on requirements and testing while delegating implementation to AI, developers can build more reliable and complex software systems with greater efficiency.
Summary updated