CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debugging
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large Language Models (LLMs) have made significant strides in code generation and problem solving. Current approaches employ external tool-based iterative debuggers that use compiler or other tool-based runtime feedback to refine coarse programs generated by various methods. However, the effectiveness of these approaches heavily relies on the quality of the initial code generation, which remains an open challenge. In this paper, we introduce CodeSim, a novel multi-agent code generation framework that comprehensively addresses the stages of program synthesis-planning, coding, and debugging-through a human-like perception approach. As human verifies their understanding of any algorithms through visual simulation, CodeSim uniquely features a method of plan verification and internal debugging through the step-by-step simulation of input/output. Extensive experiments across seven challenging competitive problem-solving and program synthesis benchmarks demonstrate CodeSim's remarkable code generation capabilities. Our framework achieves new state-of-the-art (pass@1) results-(HumanEval 95.1%, MBPP 90.7%, APPS 22%, and CodeContests 29.1%). Furthermore, our method shows potential for even greater enhancement when cascaded with external debuggers. To facilitate further research and development in this area, we have open-sourced our framework in this link (https://kagnlp.github.io/codesim.github.io/).
Key facts. Cited by 32 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 42 of its 60 references that are in the map. First posted on arXiv 8 Feb 2025.
Builds on
42 of 60 references.
Closest ancestors · 6
Same direction, newest first
- 2024HyperAgent: Generalist Software Engineering Agents to Solve Coding Tasks at Scale9 Sep
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineering6 May
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges14 Jan
- 2023ChatDev: Communicative Agents for Software Development16 Jul
- 2023Self-collaboration Code Generation via ChatGPT15 Apr
Other references · 36
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 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
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
24 more
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 574
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2022CodeT: Code Generation with Generated Testscited by 384
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2019CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databasescited by 185
- 2023SantaCoder: don't reach for the stars!cited by 170
- 2021Retrieval Augmented Code Generation and Summarizationcited by 149
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
- 2020Task-Oriented Dialogue as Dataflow Synthesiscited by 122
- 2023Automatic Prompt Augmentation and Selection with Chain-of-Thought from Labeled Datacited by 119
- 2023Large Language Models as Analogical Reasonerscited by 107
- 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 103
- 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
- 2017Neural Map: Structured Memory for Deep Reinforcement Learningcited by 90
- 2024A Systematic Survey and Critical Review on Evaluating Large Language Models: Challenges, Limitations, and Recommendationscited by 85
- 2023CodeScore: Evaluating Code Generation by Learning Code Executioncited by 67
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
- 2023DelucionQA: Detecting Hallucinations in Domain-specific Question Answeringcited by 43
- 2018Building Language Models for Text with Named Entitiescited by 15
- 2021Evaluating the Values of Sources in Transfer Learningcited by 11
- 2022Retrieval Enhanced Data Augmentation for Question Answering on Privacy Policiescited by 10
- 2023MoTCoder: Elevating Large Language Models with Modular of Thought for Challenging Programming Taskscited by 9
Built on by
Citing papers per year: 2025: 11; 2026: 21.
32 papers.
Sort:
By area:
- 2025From LLM Reasoning to Autonomous AI Agents: A Comprehensive Reviewcited by 149
- 2026Graph-based Agent Memory: Taxonomy, Techniques, and Applicationscited by 25
- 2026AgentConductor: Topology Evolution for Multi-Agent Competition-Level Code Generationcited by 13
- 2025Execution Guided Line-by-Line Code Generationcited by 10
- 2025Web Fraud Attacks Against LLM-Driven Multi-Agent Systemscited by 10
- 2026PatchWorld: Gradient-Free Optimization of Executable World Models for Agent Environmentscited by 7
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedbackcited by 5
- 2026Investigating Autonomous Agent Contributions in the Wild: Activity Patterns and Code Change over Timecited by 5
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 4
- 2025BioVerge: A Comprehensive Benchmark and Study of Self-Evaluating Agents for Biomedical Hypothesis Generationcited by 4
- 2025MapCoder-Lite: Distilling Multi-Agent Coding into a Single Small LLMcited by 3
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Reviewcited by 3
20 more
- 2026Position: agentic AI orchestration should be Bayes-consistentcited by 3
- 2026CP-Agent: A Calibrated Risk-Controlled Agent for Feedback-Driven Competitive Programmingcited by 3
- 2026MECoBench: A Systematic Study of Multimodal Agent Collaboration in Embodied Environmentscited by 3
- 2026The Specification Gap: Coordination Failure Under Partial Knowledge in Code Agentscited by 2
- 2025Deployability-Centric Infrastructure-as-Code Generation: Fail, Learn, Refine, and Succeed through LLM-Empowered DevOps Simulationcited by 1
- 2025Helmsman: Autonomous Synthesis of Federated Learning Systems via Collaborative LLM Agentscited by 1
- 2025Enhancing Automated Paper Reproduction via Prompt-Free Collaborative Agentscited by 1
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systemscited by 1
- 2026ARIADNE: Agentic Reward-Informed Adaptive Decision Exploration via Blackboard-Driven MCTS for Competitive Program Generationcited by 1
- 2026Poison with Style: A Practical Poisoning Attack on Code Large Language Modelscited by 1
- 2025SwiftSolve: A Self-Iterative, Complexity-Aware Multi-Agent Framework for Competitive Programmingcited by 0
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generationcited by 0
- 2026SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Executioncited by 0
- 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent Systemcited by 0
- 2026Are Agents Ready to Teach? A Multi-Stage Benchmark for Real-World Teaching Workflowscited by 0
- 2026Agri-SAGE: Simulation-Grounded Multi-Agent LLM for Context-Aware Agricultural Advisory Generationcited by 0
- 2026Adversarial Review: Structured Disagreement for Grounded Agentic Code Reviewcited by 0
- 2026AgentRoom: Concurrent Multi-Agent Coding in a CRDT-Backed Shared Workspacecited by 0
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programmingcited by 0
- 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaborationcited by 0
- 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaboration26 Aug 2026
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programming24 Aug 2026
- 2026AgentRoom: Concurrent Multi-Agent Coding in a CRDT-Backed Shared Workspace24 Aug 2026
- 2026Adversarial Review: Structured Disagreement for Grounded Agentic Code Review16 Aug 2026
- 2026Agri-SAGE: Simulation-Grounded Multi-Agent LLM for Context-Aware Agricultural Advisory Generation1 Jul 2026
- 2026MECoBench: A Systematic Study of Multimodal Agent Collaboration in Embodied Environments30 Jun 2026
- 2026PatchWorld: Gradient-Free Optimization of Executable World Models for Agent Environments29 May 2026
- 2026Poison with Style: A Practical Poisoning Attack on Code Large Language Models26 May 2026
- 2026CP-Agent: A Calibrated Risk-Controlled Agent for Feedback-Driven Competitive Programming23 May 2026
- 2026Are Agents Ready to Teach? A Multi-Stage Benchmark for Real-World Teaching Workflows14 May 2026
- 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent System7 May 2026
- 2026ARIADNE: Agentic Reward-Informed Adaptive Decision Exploration via Blackboard-Driven MCTS for Competitive Program Generation4 May 2026
20 more
- 2026Position: agentic AI orchestration should be Bayes-consistent1 May 2026
- 2026SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Execution20 Apr 2026
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generation15 Apr 2026
- 2026Investigating Autonomous Agent Contributions in the Wild: Activity Patterns and Code Change over Time1 Apr 2026
- 2026The Specification Gap: Coordination Failure Under Partial Knowledge in Code Agents25 Mar 2026
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review25 Feb 2026
- 2026AgentConductor: Topology Evolution for Multi-Agent Competition-Level Code Generation19 Feb 2026
- 2026Graph-based Agent Memory: Taxonomy, Techniques, and Applications5 Feb 2026
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systems2 Feb 2026
- 2025Enhancing Automated Paper Reproduction via Prompt-Free Collaborative Agents2 Dec 2025
- 2025BioVerge: A Comprehensive Benchmark and Study of Self-Evaluating Agents for Biomedical Hypothesis Generation12 Nov 2025
- 2025SwiftSolve: A Self-Iterative, Complexity-Aware Multi-Agent Framework for Competitive Programming26 Oct 2025
- 2025Helmsman: Autonomous Synthesis of Federated Learning Systems via Collaborative LLM Agents16 Oct 2025
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generation12 Oct 2025
- 2025MapCoder-Lite: Distilling Multi-Agent Coding into a Single Small LLM22 Sep 2025
- 2025Web Fraud Attacks Against LLM-Driven Multi-Agent Systems1 Sep 2025
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedback25 Jul 2025
- 2025Execution Guided Line-by-Line Code Generation12 Jun 2025
- 2025Deployability-Centric Infrastructure-as-Code Generation: Fail, Learn, Refine, and Succeed through LLM-Empowered DevOps Simulation5 Jun 2025
- 2025From LLM Reasoning to Autonomous AI Agents: A Comprehensive Review28 Apr 2025
- 2026Graph-based Agent Memory: Taxonomy, Techniques, and Applicationscited by 25
- 2026AgentConductor: Topology Evolution for Multi-Agent Competition-Level Code Generationcited by 13
- 2025Web Fraud Attacks Against LLM-Driven Multi-Agent Systemscited by 10
- 2026Investigating Autonomous Agent Contributions in the Wild: Activity Patterns and Code Change over Timecited by 5
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 4
- 2025BioVerge: A Comprehensive Benchmark and Study of Self-Evaluating Agents for Biomedical Hypothesis Generationcited by 4
- 2025MapCoder-Lite: Distilling Multi-Agent Coding into a Single Small LLMcited by 3
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Reviewcited by 3
- 2026Position: agentic AI orchestration should be Bayes-consistentcited by 3
- 2026CP-Agent: A Calibrated Risk-Controlled Agent for Feedback-Driven Competitive Programmingcited by 3
- 2026The Specification Gap: Coordination Failure Under Partial Knowledge in Code Agentscited by 2
- 2025Helmsman: Autonomous Synthesis of Federated Learning Systems via Collaborative LLM Agentscited by 1
12 most cited of 19 All 19 (JSON)
- 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaboration26 Aug 2026
- 2026AgentRoom: Concurrent Multi-Agent Coding in a CRDT-Backed Shared Workspace24 Aug 2026
- 2026Adversarial Review: Structured Disagreement for Grounded Agentic Code Review16 Aug 2026
- 2026Agri-SAGE: Simulation-Grounded Multi-Agent LLM for Context-Aware Agricultural Advisory Generation1 Jul 2026
- 2026CP-Agent: A Calibrated Risk-Controlled Agent for Feedback-Driven Competitive Programming23 May 2026
- 2026ARIADNE: Agentic Reward-Informed Adaptive Decision Exploration via Blackboard-Driven MCTS for Competitive Program Generation4 May 2026
- 2026Position: agentic AI orchestration should be Bayes-consistent1 May 2026
- 2026Investigating Autonomous Agent Contributions in the Wild: Activity Patterns and Code Change over Time1 Apr 2026
- 2026The Specification Gap: Coordination Failure Under Partial Knowledge in Code Agents25 Mar 2026
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review25 Feb 2026
- 2026AgentConductor: Topology Evolution for Multi-Agent Competition-Level Code Generation19 Feb 2026
- 2026Graph-based Agent Memory: Taxonomy, Techniques, and Applications5 Feb 2026
12 newest of 19 All 19 (JSON)
- 2025Execution Guided Line-by-Line Code Generationcited by 10
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedbackcited by 5
- 2025Deployability-Centric Infrastructure-as-Code Generation: Fail, Learn, Refine, and Succeed through LLM-Empowered DevOps Simulationcited by 1
- 2025Enhancing Automated Paper Reproduction via Prompt-Free Collaborative Agentscited by 1
- 2026Poison with Style: A Practical Poisoning Attack on Code Large Language Modelscited by 1
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generationcited by 0
- 2026SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Executioncited by 0
- 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent Systemcited by 0
- 2026Are Agents Ready to Teach? A Multi-Stage Benchmark for Real-World Teaching Workflowscited by 0
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programmingcited by 0
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programming24 Aug 2026
- 2026Poison with Style: A Practical Poisoning Attack on Code Large Language Models26 May 2026
- 2026Are Agents Ready to Teach? A Multi-Stage Benchmark for Real-World Teaching Workflows14 May 2026
- 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent System7 May 2026
- 2026SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Execution20 Apr 2026
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generation15 Apr 2026
- 2025Enhancing Automated Paper Reproduction via Prompt-Free Collaborative Agents2 Dec 2025
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedback25 Jul 2025
- 2025Execution Guided Line-by-Line Code Generation12 Jun 2025
- 2025Deployability-Centric Infrastructure-as-Code Generation: Fail, Learn, Refine, and Succeed through LLM-Empowered DevOps Simulation5 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
- 2025A Survey on Code Generation with LLM-based Agents
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generation
- 2026How Generation Architecture Shapes Code Complexity in Multi-Agent LLM Systems: A Paired Study on HumanEval
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesis
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation
- 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architectures