AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Recently, researchers have proposed many multi-agent frameworks for function-level code generation, which aim to improve software development productivity by automatically generating function-level source code based on task descriptions. A typical multi-agent framework consists of Large Language Model (LLM)-based agents that are responsible for task planning, code generation, testing, debugging, etc. Studies have shown that existing multi-agent code generation frameworks perform well on ChatGPT. However, their generalizability across other foundation LLMs remains unexplored systematically. In this paper, we report an empirical study on the generalizability of four state-of-the-art multi-agent code generation frameworks across six open-source LLMs with varying parameter sizes, architectures, and performance levels. Our study reveals the unstable generalizability of existing frameworks on diverse foundation LLMs. Based on the findings obtained from the empirical study, we propose AdaCoder, a novel adaptive planning, multi-agent framework for function-level code generation. AdaCoder has two phases. Phase-1 is an initial code generation step without planning, which uses an LLM-based coding agent and a script-based testing agent to unleash LLM's native power, identify cases beyond LLM's power, and determine the errors hindering execution. Phase-2 adds a rule-based debugging agent and an LLM-based planning agent for iterative code generation with planning. Our evaluation shows that AdaCoder achieves higher generalizability on diverse LLMs. Compared to the best baseline MapCoder, AdaCoder is on average 27.69% higher in Pass@1, 16 times faster in inference, and 12 times lower in token consumption.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 44 of its 70 references that are in the map. First posted on arXiv 5 Apr 2025.
Builds on
44 of 70 references.
Closest ancestors · 3
Same direction, newest first
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May
- 2023Self-collaboration Code Generation via ChatGPT15 Apr
Other references · 41
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
29 more
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2023Textbooks Are All You Needcited by 569
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 565
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
- 2020IntelliCode Compose: Code Generation Using Transformercited by 227
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 197
- 2023SantaCoder: don't reach for the stars!cited by 170
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 168
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
- 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 111
- 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
- 2024AgentFL: Scaling LLM-based Fault Localization to Project-Level Contextcited by 47
- 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
- 2024Automatic Programming: Large Language Models and Beyondcited by 36
- 2024ConStat: Performance-Based Contamination Detection in Large Language Modelscited by 33
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptionscited by 26
- 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repaircited by 18
- 2024Assessing AI-Based Code Assistants in Method Generation Taskscited by 5
- 2017Systematic Mapping Study of Template-based Code Generationcited by 4
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025RPG: A Repository Planning Graph for Unified and Scalable Codebase Generationcited by 19
- 2026The Specification Gap: Coordination Failure Under Partial Knowledge in Code Agentscited by 2
- 2025Foundational Design Principles and Patterns for Building Robust and Adaptive GenAI-Native Systemscited by 1
- 2025Enhancing Automated Paper Reproduction via Prompt-Free Collaborative Agentscited by 1
- 2026FASE: Fast Adaptive Semantic Entropy for Code Qualitycited by 1
- 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generationcited by 0
- 2026PersonalPlan: Planning Multi-Agent Systems for Personalized Programming Learningcited by 0
- 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Modelscited by 0
- 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models15 Aug 2026
- 2026PersonalPlan: Planning Multi-Agent Systems for Personalized Programming Learning17 Jun 2026
- 2026FASE: Fast Adaptive Semantic Entropy for Code Quality8 Jun 2026
- 2026The Specification Gap: Coordination Failure Under Partial Knowledge in Code Agents25 Mar 2026
- 2025Enhancing Automated Paper Reproduction via Prompt-Free Collaborative Agents2 Dec 2025
- 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generation22 Oct 2025
- 2025RPG: A Repository Planning Graph for Unified and Scalable Codebase Generation19 Sep 2025
- 2025Foundational Design Principles and Patterns for Building Robust and Adaptive GenAI-Native Systems21 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2025A Survey on Code Generation with LLM-based Agents
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generation
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisation
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks
- 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap