Self-collaboration Code Generation via ChatGPT
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Although Large Language Models (LLMs) have demonstrated remarkable code-generation ability, they still struggle with complex tasks. In real-world software development, humans usually tackle complex tasks through collaborative teamwork, a strategy that significantly controls development complexity and enhances software quality. Inspired by this, we present a self-collaboration framework for code generation employing LLMs, exemplified by ChatGPT. Specifically, through role instructions, 1) Multiple LLM agents act as distinct `experts', each responsible for a specific subtask within a complex task; 2) Specify the way to collaborate and interact, so that different roles form a virtual team to facilitate each other's work, ultimately the virtual team addresses code generation tasks collaboratively without the need for human intervention. To effectively organize and manage this virtual team, we incorporate software-development methodology into the framework. Thus, we assemble an elementary team consisting of three LLM roles (i.e., analyst, coder, and tester) responsible for software development's analysis, coding, and testing stages. We conduct comprehensive experiments on various code-generation benchmarks. Experimental results indicate that self-collaboration code generation relatively improves 29.9%-47.1% Pass@1 compared to the base LLM agent. Moreover, we showcase that self-collaboration could potentially enable LLMs to efficiently handle complex repository-level tasks that are not readily solved by the single LLM agent.
Key facts. Cited by 255 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. First posted on arXiv 15 Apr 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 33; 2024: 78; 2025: 94; 2026: 50.
255 papers.
Sort:
By area:
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
- 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 752
- 2023Cognitive Architectures for Language Agentscited by 422
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaborationcited by 281
- 2024Two Tales of Persona in LLMs: A Survey of Role-Playing and Personalizationcited by 203
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 194
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
38 more
- 2023User Behavior Simulation with Large Language Model based Agentscited by 136
- 2023Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Surveycited by 134
- 2024Exploring Large Language Model based Intelligent Agents: Definitions, Methods, and Prospectscited by 130
- 2024On the Resilience of LLM-Based Multi-Agent Collaboration with Faulty Agentscited by 92
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimizationcited by 84
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
- 2024From Individual to Society: A Survey on Social Simulation Driven by Large Language Model-based Agentscited by 76
- 2024Self-Contrast: Better Reflection Through Inconsistent Solving Perspectivescited by 71
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2023LLM-Based Agent Society Investigation: Collaboration and Confrontation in Avalon Gameplaycited by 62
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHubcited by 53
- 2023Multi-Agent Consensus Seeking via Large Language Modelscited by 50
- 2024Autonomous LLM-driven research from data to human-verifiable research paperscited by 50
- 2024(Perhaps) Beyond Human Translation: Harnessing Multi-Agent Collaboration for Translating Ultra-Long Literary Textscited by 49
- 2025Do as We Do, Not as You Think: the Conformity of Large Language Modelscited by 48
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2023SMILE: Single-turn to Multi-turn Inclusive Language Expansion via ChatGPT for Mental Health Supportcited by 46
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
- 2023Watermarking Conditional Text Generation for AI Detection: Unveiling Challenges and a Semantic-Aware Watermark Remedycited by 45
- 2023Look Before You Leap: An Exploratory Study of Uncertainty Measurement for Large Language Modelscited by 40
- 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scalecited by 39
- 2024Learning to Ask: When LLM Agents Meet Unclear Instructioncited by 38
- 2024Gender Bias in Large Language Models across Multiple Languagescited by 35
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debuggingcited by 35
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2024Exploration of LLM Multi-Agent Application Implementation Based on LangGraph+CrewAIcited by 35
- 2025GUARDIAN: Safeguarding LLM Multi-Agent Collaborations with Temporal Graph Modelingcited by 35
- 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agentscited by 34
- 2024Agent-Oriented Planning in Multi-Agent Systemscited by 34
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generationcited by 33
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Modelscited by 32
- 2025From Language to Action: A Review of Large Language Models as Autonomous Agents and Tool Userscited by 32
50 most cited of 255 All 255 (JSON)
- 2026OpenCollab: A Multi-Agent Coding Framework with Programmable Collaboration and Controllable Runtime29 Sep 2026
- 2026Super Library Agent: Joint Generation and Maintenance of Multiple Applications Beyond the Single Codebase29 Aug 2026
- 2026When Agents Coordinate: Measuring Coordination in Multi-Agent AI Coding17 Aug 2026
- 2026ForestBench: A Unified Graph Framework for Evaluating Multi-Agent Collaboration9 Aug 2026
- 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generation5 Aug 2026
- 2026EduPluginBench: Executable Assurance for AI-Generated Educational Plugins1 Aug 2026
- 2026AssumptionMiner: Extracting, Tracing, and Revising Implicit Assumptions in LLM Code Generation24 Jul 2026
- 2026Beyond Detection: Agentic Attack Synthesis and Simulation for Smart Contracts17 Jul 2026
- 2026Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code Quality16 Jul 2026
- 2026PairCoder++: Pair Programming as a Universal Paradigm for Verified Code-Driven Multimodal and Structured-Artifact Generation2 Jul 2026
- 2026Smarter Saboteurs, Better Fixers: Scaling & Security in Linear Multi-Agent Workflows10 Jun 2026
- 2026Automated Mediator for Human Negotiation: Pre-Mediation via a Structured LLM Pipeline9 Jun 2026
38 more
- 2026What makes a harness a harness: necessary and sufficient conditions for an agent harness8 Jun 2026
- 2026FASE: Fast Adaptive Semantic Entropy for Code Quality8 Jun 2026
- 2026Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generation4 Jun 2026
- 2026From Prompts to Context: An Ontology-Driven Framework for Human-Generative AI Collaboration28 May 2026
- 2026ATOM: Instantiating Budget-Controllable Multi-Agent Collaboration via Nucleus-Electron Hierarchy25 May 2026
- 2026Multi-agent Collaboration with State Management19 May 2026
- 2026A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedback18 May 2026
- 2026From I/O to Code with Discovery Agent14 May 2026
- 2026APWA: A Distributed Architecture for Parallelizable Agentic Workflows14 May 2026
- 2026CPEMH: An Agentic Framework for Prompt-Driven Behavior Evaluation and Assurance in Foundation-Model Systems for Mental Health Screening11 May 2026
- 2026A Dataset of Agentic AI Coding Tool Configurations8 May 2026
- 2026EngiAgent: Fully Connected Coordination of LLM Agents for Solving Open-ended Engineering Problems with Feasible Solutions4 May 2026
- 2026Social Bias in LLM-Generated Code: Benchmark and Mitigation1 May 2026
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generation15 Apr 2026
- 2026How Many Tries Does It Take? Iterative Self-Repair in LLM Code Generation Across Model Scales and Benchmarks12 Apr 2026
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories8 Apr 2026
- 2026ACES: Who Tests the Tests? Leave-One-Out AUC Consistency for Code Generation5 Apr 2026
- 2026SEMAG: Self-Evolutionary Multi-Agent Code Generation16 Mar 2026
- 2026SemRep: Generative Code Representation Learning with Code Transformations13 Mar 2026
- 2026DOne: Decoupling Structure and Rendering for High-Fidelity Design-to-Code Generation12 Mar 2026
- 2026ProMAS: Proactive Error Forecasting for Multi-Agent Systems Using Markov Transition Dynamics12 Mar 2026
- 2026SecureRAG-RTL: A Retrieval-Augmented, Multi-Agent, Zero-Shot LLM-Driven Framework for Hardware Vulnerability Detection5 Mar 2026
- 2026AI-for-Science Low-code Platform with Bayesian Adversarial Multi-Agent Framework3 Mar 2026
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review25 Feb 2026
- 2026Compiling Large Multi-Modal Requirement Documents into Runnable Software Systems: From an Agentic Test-Driven Perspective14 Feb 2026
- 2026PaperRepro: Automated Computational Reproducibility Assessment for Social Science Papers10 Feb 2026
- 2026Automatic In-Domain Exemplar Construction and LLM-Based Refinement of Multi-LLM Expansions for Query Expansion9 Feb 2026
- 2026Software Self-Extension with SelfEvolve: an Agentic Architecture for Runtime Code Generation6 Feb 2026
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code6 Feb 2026
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systems2 Feb 2026
- 2026Adaptive Confidence Gating in Multi-Agent Collaboration for Efficient and Optimized Code Generation29 Jan 2026
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning28 Jan 2026
- 2026IntentCoding: Amplifying User Intent in Code Generation20 Jan 2026
- 2026Belief in Authority: Impact of Authority in Multi-Agent Evaluation Framework8 Jan 2026
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation8 Jan 2026
- 2026Advancing Language Models for Code-related Tasks8 Jan 2026
- 2026DiffBench Meets DiffAgent: End-to-End LLM-Driven Diffusion Acceleration Code Generation6 Jan 2026
- 2026EvoRoute: Experience-Driven Self-Routing LLM Agent Systems6 Jan 2026
50 newest of 255 All 255 (JSON)
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
- 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 752
- 2023Cognitive Architectures for Language Agentscited by 422
- 2023A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaborationcited by 281
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 194
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
- 2023User Behavior Simulation with Large Language Model based Agentscited by 136
- 2024Exploring Large Language Model based Intelligent Agents: Definitions, Methods, and Prospectscited by 130
- 2024On the Resilience of LLM-Based Multi-Agent Collaboration with Faulty Agentscited by 92
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
12 most cited of 118 All 118 (JSON)
- 2026Super Library Agent: Joint Generation and Maintenance of Multiple Applications Beyond the Single Codebase29 Aug 2026
- 2026When Agents Coordinate: Measuring Coordination in Multi-Agent AI Coding17 Aug 2026
- 2026ForestBench: A Unified Graph Framework for Evaluating Multi-Agent Collaboration9 Aug 2026
- 2026Beyond Detection: Agentic Attack Synthesis and Simulation for Smart Contracts17 Jul 2026
- 2026Smarter Saboteurs, Better Fixers: Scaling & Security in Linear Multi-Agent Workflows10 Jun 2026
- 2026What makes a harness a harness: necessary and sufficient conditions for an agent harness8 Jun 2026
- 2026Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generation4 Jun 2026
- 2026ATOM: Instantiating Budget-Controllable Multi-Agent Collaboration via Nucleus-Electron Hierarchy25 May 2026
- 2026Multi-agent Collaboration with State Management19 May 2026
- 2026From I/O to Code with Discovery Agent14 May 2026
- 2026APWA: A Distributed Architecture for Parallelizable Agentic Workflows14 May 2026
- 2026CPEMH: An Agentic Framework for Prompt-Driven Behavior Evaluation and Assurance in Foundation-Model Systems for Mental Health Screening11 May 2026
12 newest of 118 All 118 (JSON)
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2024Self-Contrast: Better Reflection Through Inconsistent Solving Perspectivescited by 71
- 2025Do as We Do, Not as You Think: the Conformity of Large Language Modelscited by 48
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Modelscited by 32
- 2025ReSo: A Reward-driven Self-organizing LLM-based Multi-Agent System for Reasoning Taskscited by 30
- 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
- 2024Scalable and Accurate Graph Reasoning with LLM-based Multi-Agentscited by 21
- 2023StrategyLLM: Large Language Models as Strategy Generators, Executors, Optimizers, and Evaluators for Problem Solvingcited by 13
- 2025MetaOpenFOAM 2.0: Large Language Model Driven Chain of Thought for Automating CFD Simulation and Post-Processingcited by 13
- 2024PersonaMath: Boosting Mathematical Reasoning via Persona-Driven Data Augmentationcited by 7
12 most cited of 19 All 19 (JSON)
- 2026Adaptive Confidence Gating in Multi-Agent Collaboration for Efficient and Optimized Code Generation29 Jan 2026
- 2025Beyond Fast and Slow: Cognitive-Inspired Elastic Reasoning for Large Language Models17 Dec 2025
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agents20 Oct 2025
- 2025ARM: Discovering Agentic Reasoning Modules for Generalizable Multi-Agent Systems7 Oct 2025
- 2025ReSo: A Reward-driven Self-organizing LLM-based Multi-Agent System for Reasoning Tasks4 Mar 2025
- 2025OptMetaOpenFOAM: Large Language Model Driven Chain of Thought for Sensitivity Analysis and Parameter Optimization based on CFD3 Mar 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2025MetaOpenFOAM 2.0: Large Language Model Driven Chain of Thought for Automating CFD Simulation and Post-Processing1 Feb 2025
- 2025Do as We Do, Not as You Think: the Conformity of Large Language Models23 Jan 2025
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models7 Nov 2024
- 2024Scalable and Accurate Graph Reasoning with LLM-based Multi-Agents7 Oct 2024
- 2024PersonaMath: Boosting Mathematical Reasoning via Persona-Driven Data Augmentation2 Oct 2024
12 newest of 19 All 19 (JSON)
- 2025AMUSE: Audio-Visual Benchmark and Alignment Framework for Agentic Multi-Speaker Understandingcited by 4
- 20253DFroMLLM: 3D Prototype Generation only from Pretrained Multimodal LLMscited by 1
- 2025Cowpox: Towards the Immunity of VLM-based Multi-Agent Systemscited by 1
- 2026DOne: Decoupling Structure and Rendering for High-Fidelity Design-to-Code Generationcited by 0
- 2026DOne: Decoupling Structure and Rendering for High-Fidelity Design-to-Code Generation12 Mar 2026
- 2025AMUSE: Audio-Visual Benchmark and Alignment Framework for Agentic Multi-Speaker Understanding18 Dec 2025
- 2025Cowpox: Towards the Immunity of VLM-based Multi-Agent Systems12 Aug 2025
- 20253DFroMLLM: 3D Prototype Generation only from Pretrained Multimodal LLMs12 Aug 2025
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
- 2025Divide by Question, Conquer by Agent: SPLIT-RAG with Question-Driven Graph Partitioningcited by 2
- 2026SecureRAG-RTL: A Retrieval-Augmented, Multi-Agent, Zero-Shot LLM-Driven Framework for Hardware Vulnerability Detectioncited by 0
- 2026SecureRAG-RTL: A Retrieval-Augmented, Multi-Agent, Zero-Shot LLM-Driven Framework for Hardware Vulnerability Detection5 Mar 2026
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning28 Jan 2026
- 2025Divide by Question, Conquer by Agent: SPLIT-RAG with Question-Driven Graph Partitioning20 May 2025
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024Two Tales of Persona in LLMs: A Survey of Role-Playing and Personalizationcited by 203
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2023Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Surveycited by 134
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2024Autonomous LLM-driven research from data to human-verifiable research paperscited by 50
- 2023SMILE: Single-turn to Multi-turn Inclusive Language Expansion via ChatGPT for Mental Health Supportcited by 46
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
- 2023Look Before You Leap: An Exploratory Study of Uncertainty Measurement for Large Language Modelscited by 40
12 most cited of 105 All 105 (JSON)
- 2026OpenCollab: A Multi-Agent Coding Framework with Programmable Collaboration and Controllable Runtime29 Sep 2026
- 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generation5 Aug 2026
- 2026EduPluginBench: Executable Assurance for AI-Generated Educational Plugins1 Aug 2026
- 2026AssumptionMiner: Extracting, Tracing, and Revising Implicit Assumptions in LLM Code Generation24 Jul 2026
- 2026Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code Quality16 Jul 2026
- 2026PairCoder++: Pair Programming as a Universal Paradigm for Verified Code-Driven Multimodal and Structured-Artifact Generation2 Jul 2026
- 2026Automated Mediator for Human Negotiation: Pre-Mediation via a Structured LLM Pipeline9 Jun 2026
- 2026FASE: Fast Adaptive Semantic Entropy for Code Quality8 Jun 2026
- 2026From Prompts to Context: An Ontology-Driven Framework for Human-Generative AI Collaboration28 May 2026
- 2026A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedback18 May 2026
- 2026Social Bias in LLM-Generated Code: Benchmark and Mitigation1 May 2026
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generation15 Apr 2026
12 newest of 105 All 105 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025A Survey on Code Generation with LLM-based Agents
- 2026Vibe Coding: An Experiment with Test-Driven Development
- 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
- 2023Self-planning Code Generation with Large Language Models
- 2025Evaluating Software Process Models for Multi-Agent Class-Level Code Generation
- 2023Think Outside the Code: Brainstorming Boosts Large Language Models in Code Generation
- 2023ChatDev: Communicative Agents for Software Development
- 2025BigCodeArena: Unveiling More Reliable Human Preferences in Code Generation via Execution