CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation
summary
The gist
CodeTeam is an LLM-based multi-agent framework designed for repository-level code generation, moving beyond simple file-level completion to address complex coding tasks across entire codebases.
In short
CodeTeam is an LLM framework for generating code across entire repositories using multiple agents. It separates coding into planning (design sketches), decision-making (contract normalization), and implementation (dependency-aware coding with Git coordination). The system proves that this structured, multi-agent approach significantly improves the quality of generated repository code compared to single models.
Key concepts
- SketchEval benchmark
- This is a standardized test used to measure how good the generated software design sketches (SDSs) are. It uses SketchBLEU metrics to score the similarity between human-written designs and AI-generated ones, helping researchers quantify planning quality.
- Chief Technical Officer (cto) agent
- This agent acts as a reviewer during the planning stage. Its job is to evaluate competing design sketches and select the best one, then formalizing it into a machine-readable contract that defines file responsibilities and dependencies for the developers.
- Dependency-aware scheduler
- This is a system that manages when different code files are written. Instead of writing everything at once, this scheduler ensures that a file is only coded after all its required prerequisite files have been successfully implemented, respecting the actual code structure.
- Dynamic developer allocation
- This concept involves assigning specific developers to specific parts of the repository based on its modularity. This proactive assignment helps prevent inconsistencies by ensuring team structure matches how the repository is naturally organized.
Terminology used across episodes
This episode discusses
- CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation · Paper Radio
- M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation
- Evaluating Large Language Models Trained on Code
- FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents
- The Faiss library
- InCoder: A Generative Model for Code Infilling and Synthesis
- Measuring Coding Challenge Competence With APPS
- Beyond Functional Correctness: Design Issues in AI IDE-Generated Large-Scale Projects
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Model
- Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs
- CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
- ZeRO: Memory Optimizations Toward Training Trillion Parameter Models
- CodeBLEU: a Method for Automatic Evaluation of Code Synthesis
- Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineering
- Qwen2.5 Technical Report
- Auto-GPT for Online Decision Making: Benchmarks and Additional Opinions
- Towards Realistic Project-Level Code Generation via Multi-Agent Collaboration and Semantic Architecture Modeling
The paper
CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation · Read on arXiv
Wuhan University School of Computer Science Department of Computer Science Nanjing University of Science and Technology Central China Normal University RMIT University University of Oulu Institute
Natural language to repository generation (NL2Repo) requires a system to construct an entire software repository from a natural-language requirements document. Compared with function-level code generation, this task demands longer planning horizons, stable interfaces across files, and iterative debugging of cross-file inconsistencies. To address these challenges, we propose CodeTeam, an LLM-based multi-agent framework that separates planning, decision making, and implementation into distinct, coordinated stages. In the planning stage, multiple Architect agents draft competing software design sketches (SDSs), optionally grounded by retrieved design references. A cto (Chief Technical Officer) agent then evaluates, selects, and normalizes the most promising SDS into a machine-checkable contract that specifies file ownership, public interfaces, and dependency constraints. In the implementation stage, Developer agents generate code under a dependency-aware scheduler with bounded context and lightweight Git-based coordination, while a qa agent runs tests and drives iterative repairs. On the synthesis-based SketchEval benchmark, we compare CodeTeam's prompt-engineering (PE) variant with CodeS and five representative baselines across 19 repositories under a retrieval-free protocol, where CodeTeam improves the mean structural score by 3.84 absolute points over CodeS (53.88 versus 50.04). CodeTeam and the experimental results are available at https://github.com/WhitenWhiten/CodeTeam
Transcript
Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.
Tom: We're looking at the paper: "CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation".
Title and authors: Tom: Now we’re looking at the title and the authors for "CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation". It lists Yifei Wang, Ruiyin Li, Peng Liang, Qiong Feng, Zengyang Li, Mojtaba Shahin, and Arif Ali Khan.
Jane: That’s a whole team of researchers from different schools at Wuhan University and Nanjing University of Science and Technology. It tells you that this isn't just one person's idea; it’s a collaborative effort to tackle this big problem.
Lu: The paper says that the authors are addressing the challenge in natural language to repository generation, which is a task that demands longer planning horizons and stable interfaces across files, which is why they needed this multi-agent structure.
Meng: So, what does "repository-level code generation" really mean in practice for us? Is it just writing one big file, or are we talking about the entire structure of a project? I need to know the scope when I'm trying to figure out how to deploy something at scale.
Lalam: It demands constructing an entire software repository from a natural language requirements document, which means they have to worry about all the files and how they connect together, not just one piece of code. That’s why they needed this system.
Tom: It sounds like the core idea is that generating a complete software repository requires managing all those moving parts simultaneously in a way that current single agents aren't good at yet. They are proposing to separate the planning, decision making, and implementation into distinct stages so they can manage that complexity.
Jane: So the authors are tackling the challenge by introducing this coordinated framework, which separates these three main phases so the system can handle those long-term planning horizons and stable interfaces across files. It’s a structural approach to coding that seems necessary for this kind of task.
Lu: The paper lays out how they propose using multiple Architect agents to draft competing software design sketches, and then a Chief Technical Officer agent selects the most promising one to turn into a contract. That competition part is supposed to help them find good starting points before the heavy lifting begins.
Meng: Competition sounds like it could be slow though. How do you manage that without just having too many agents running everything all the time during that initial design phase? What’s their approach to keeping that planning stage efficient?
Lalam: They are focusing on making sure the planning stage results in something machine-checkable, a contract specifying file ownership and dependencies, which cuts down on wasted implementation time later. That normalization step is key to efficiency.
Tom: So they are combining this competition with optional Retrieval Augmented Generation, or RAG grounding, which lets architects look at other designs for inspiration before drafting their own sketches. That’s adding a layer of external knowledge to the initial planning process.
The paper's summary: Tom: Moving on to the actual summary of "CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation". They explain how this framework works by separating planning, decision making, and implementation into distinct stages so they can handle the long horizons and interface stability needed for a whole repository.
Jane: It sounds like the core idea is that they’re trying to solve the problem of losing global architectural consistency that we see when agents work on different files separately. They’re trying to enforce structure before the actual coding begins, which seems like a necessary step for large systems.
Lu: The authors show that this framework performs better than just using one agent for the whole thing, especially when you look at their evaluation on NL2Repo-Bench where sketch-level improvements actually translate into executable code correctness. They prove that good planning leads to working results.
Meng: That link between a good design sketch and actual working code is what we always want to see, but they also show that removing the retrieval part from the planning stage caused a drop in performance, which tells us how much help those external references provide when those initial ideas are being formed.
Lalam: The paper also highlights how dynamic developer allocation, choosing who does what based on project modularity makes a real difference compared to just using Git coordination alone. It helps stop those cross-file inconsistencies before they even happen in the implementation stage.
Tom: So we're hearing about this whole coordinated approach: SDS competition, optional RAG grounding, CTO-guided contract normalization, and then dependency-aware scheduling for developers. It’s a lot of moving parts working together to handle the whole repo task at once.
Jane: That sounds like they are trying to fix the problem of losing global architectural consistency that we see when agents work on different files separately. They’re trying to enforce structure before they start coding, which seems like a necessary step for large systems.
The paper's improvements: Tom: Now we’re talking about the suggested improvements in "CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation". They talk about things like adaptive workflow selection and automated contract normalization, which are ways they’re trying to make the framework smarter.
Jane: That sounds like they are trying to optimize how they spend their resources depending on the difficulty of what we’re being asked to build. It’s about being smarter about which training path to take for a given project, based on whether the task is easy, medium, or hard.
Lu: They also emphasize automated contract normalization by having the Chief Technical Officer agent select a sketch and turn it into that machine-checkable contract, setting all the rules for file ownership and interfaces upfront before anyone starts writing code. That formalizes the design before implementation starts.
Meng: I’m worried about that normalization step being too rigid though. If the initial sketch is slightly off, forcing it into a strict contract might just lead to wasted effort trying to satisfy impossible rules during coding. What’s their defense against that rigidity?
Lalam: They suggest that the whole process is designed for iteration, and if a failure happens during Quality Assurance, they feed those failures back into the developer agents for repair, which acts as a soft correction mechanism instead of just failing and starting over.
Tom: So we're talking about adaptive workflow selection based on task complexity where the system can dynamically switch between a prompt engineering approach and a supervised fine-tuning approach based on whether the task is expected to be easy or hard. It’s about being smarter about which training path to take for a given project.
Jane: That sounds like optimizing how they spend their resources depending on the difficulty of what we’re being asked to build, by adjusting the approach for different complexities. It makes sense that you wouldn't want to use a heavy method for something that doesn't need it.
Conclusion: Tom: So to wrap up, "CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation" is this multi-agent framework that coordinates planning through design competition and contract normalization before developers implement code with dependency scheduling guided by a QA agent. It’s about taking repo generation from a single long task to a series of structured steps.
Lu: I think what’s most significant is how they show that the planning stage, even with optional RAG grounding, significantly improves the quality of the final output compared to simpler methods like just using a single model. The initial idea generation process itself is key to the whole success here.
Meng: From an engineering standpoint, it shows that having specialized agents handle different phases—like a dedicated CTO for contracts—can actually prevent massive errors during implementation that we usually see in larger systems when things start getting bigger.
Tom: So CodeTeam is this framework for repo-level code generation, combining competition and structured coordination to handle complexity. Thanks for joining us to talk about this paper.
More episodes
- The day in conversation for 2026-12-05
- Daily Summary for 2026-12-05
- 2607.26500-Multi-Decoder OneRec: Controllable Generative Retrieval for Multi-Objective Industrial Recommendation
- 2607.27976-Load balancing in parallel infinite-server queues with action delay via phase representation
- 2607.28574-Finite Pinwheel Covering
- 2608.07026-PyFlow: An Inter-procedural Static Analysis Framework for Python
- 2608.09305-Dilatations of categories, via their lean formalization
- 2608.16406-SATisfying the High School Identities but not Wilkie's Identity
- 2609.02062-SPAR: Enhancing Industrial-Scale Generative POI Recommendation via Real-World Spatial Perception
- 2609.03661-Point&Spawn: Mid-Air Reference-Free Object Instantiation Using Gaze and Hand Gestures in Extended Reality