AI
Multi-Agent Framework Coordinates AI Code Generation Across Entire Repositories
A new LLM-based system divides repository construction into specialized planning and implementation roles, achieving notable improvements over existing code generation methods.
Researchers have introduced CodeTeam, a multi-agent framework that uses language models to tackle the complex challenge of building entire software repositories from natural-language descriptions. Unlike simpler approaches that generate code function-by-function, this system handles the broader architectural and coordination demands of full-scale projects.
The Core Problem#
Generating code at the repository level introduces obstacles absent in smaller-scale tasks. The system must maintain a coherent long-term plan, ensure consistent interfaces across multiple files, and resolve conflicts that arise from interdependent code. CodeTeam addresses these by assigning distinct responsibilities to specialized agents.
How CodeTeam Works#
The framework operates in two main phases:
Planning and Design
- Multiple Architect agents independently propose competing software design sketches (SDSs), drawing on retrieved reference designs when available
- A Chief Technical Officer (CTO) agent reviews proposals, selects the strongest design, and formalizes it into a machine-readable contract
- This contract specifies file ownership, public interfaces, and dependency relationships
Implementation and Quality Control
- Developer agents write code according to the established contract, with a dependency-aware scheduler that respects file relationships and limits context to prevent errors
- Agents coordinate through a lightweight Git-based system
- A QA agent runs tests and guides iterative fixes for cross-file issues
Performance Gains#
On the SketchEval benchmark—a synthesis-focused test suite covering 19 repositories—CodeTeam's prompt-engineering variant outperformed comparable systems. It achieved a mean structural score of 53.88, compared to 50.04 for CodeS, a 3.84-point improvement. The framework was tested without relying on retrieval-based design references.
The authors have made both the system and experimental results available to the research community.

