Self-planning Code Generation with Large Language Models
Not on the map. Why?
Cited by 32 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Although large language models (LLMs) have demonstrated impressive ability in code generation, they are still struggling to address the complicated intent provided by humans. It is widely acknowledged that humans typically employ planning to decompose complex problems and schedule solution steps prior to implementation. To this end, we introduce planning into code generation to help the model understand complex intent and reduce the difficulty of problem-solving. This paper proposes a self-planning code generation approach with large language models, which consists of two phases, namely planning phase and implementation phase. Specifically, in the planning phase, LLM outlines concise and formatted planning steps from the intent. Subsequently, in the implementation phase, the model generates code step by step, guided by the preceding planning steps. We conduct extensive experiments on various code-generation benchmarks across multiple programming languages. Experimental results show that self-planning code generation achieves a relative improvement of up to 25.4% in Pass@1 compared to direct code generation, and up to 11.9% compared to Chain-of-Thought code generation. Moreover, our self-planning approach also enhances the quality of the generated code with respect to correctness, readability, and robustness, as assessed by humans.
Key facts. Cited by 121 papers in the map (data through 7 Oct 2026). First posted on arXiv 12 Mar 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 17; 2024: 26; 2025: 48; 2026: 30.
121 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Generalized Planning in PDDL Domains with Pretrained Large Language Modelscited by 139
- 2025VisuLogic: A Benchmark for Evaluating Visual Reasoning in Multi-modal Large Language Modelscited by 102
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2023Towards Better Chain-of-Thought Prompting Strategies: A Surveycited by 62
- 2023Large Language Models for Supply Chain Optimizationcited by 61
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2024Reasoning in Token Economies: Budget-Aware Evaluation of LLM Reasoning Strategiescited by 44
- 2023Large Language Model-Aware In-Context Learning for Code Generationcited by 42
- 2025R&D-Agent-Quant: A Multi-Agent Framework for Data-Centric Factors and Model Joint Optimizationcited by 39
- 2024Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLMcited by 38
38 more
- 2024Benchmarking Language Model Creativity: A Case Study on Code Generationcited by 38
- 2025A Survey of Direct Preference Optimizationcited by 35
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generationcited by 33
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 32
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
- 2024Surveying the Effects of Quality, Diversity, and Complexity in Synthetic Data From Large Language Modelscited by 31
- 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generatorscited by 27
- 2025FaithCoT-Bench: Benchmarking Instance-Level Faithfulness of Chain-of-Thought Reasoningcited by 25
- 2024Rome was Not Built in a Single Step: Hierarchical Prompting for LLM-based Chip Designcited by 24
- 2025CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignmentcited by 22
- 2023PACE: Improving Prompt with Actor-Critic Editing for Large Language Modelcited by 20
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Taskscited by 20
- 2024Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code Generationcited by 19
- 2023Tree-of-Mixed-Thought: Combining Fast and Slow Thinking for Multi-hop Visual Reasoningcited by 17
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMscited by 17
- 2024Selective Prompt Anchoring for Code Generationcited by 16
- 2025Could Thinking Multilingually Empower LLM Reasoning?cited by 16
- 2026Vision2Web: A Hierarchical Benchmark for Visual Website Development with Agent Verificationcited by 16
- 2023ChatCoder: Chat-based Refine Requirement Improves LLMs' Code Generationcited by 13
- 2024AMUSD: Asynchronous Multi-Device Speculative Decoding for LLM Accelerationcited by 13
- 2024The Impact of Prompt Programming on Function-Level Code Generationcited by 13
- 2025Saber: An Efficient Sampling with Adaptive Acceleration and Backtracking Enhanced Remasking for Diffusion Language Modelcited by 13
- 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidancecited by 12
- 2023Natural Language Decomposition and Interpretation of Complex Utterancescited by 10
- 2024RepoMasterEval: Evaluating Code Completion via Real-World Repositoriescited by 10
- 2024Guide-LLM: An Embodied LLM Agent and Text-Based Topological Map for Robotic Guidance of People with Visual Impairmentscited by 10
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMscited by 10
- 2025Rethinking the Evaluation of Secure Code Generationcited by 10
- 2025Execution Guided Line-by-Line Code Generationcited by 10
- 2025Risk Assessment Framework for Code LLMs via Leveraging Internal Statescited by 8
- 2024An Empirical Study on Capability of Large Language Models in Understanding Code Semanticscited by 7
- 2024Planning-Driven Programming: A Large Language Model Programming Workflowcited by 7
- 2025Beyond the Prompt: An Empirical Study of Cursor Rulescited by 7
- 2023Bridging Code Semantic and LLMs: Semantic Chain-of-Thought Prompting for Code Generationcited by 6
- 2024Collaborative Evolving Strategy for Automatic Data-Centric Developmentcited by 6
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generationcited by 6
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Codecited by 6
50 most cited of 121 All 121 (JSON)
- 2026A Study of the Reliability of Agentic AI-Generated Programs16 Sep 2026
- 2026Architecture as Capability Equalizer for Coding Agents22 Aug 2026
- 2026P3: Joint Program-and-Proof Planning for Verified Code Generation10 Aug 2026
- 2026Idea Search: Guiding Tree Search with Ideas to Explore Diverse Scientific Methods9 Aug 2026
- 2026DiDPO: Diff-in-Diff Policy Optimization for Coding Agent Training7 Aug 2026
- 2026Do Uncertainty Signals Help? A Systematic Study of Uncertainty-Aware Decoding with Rollback Mechanisms31 Jul 2026
- 2026AssumptionMiner: Extracting, Tracing, and Revising Implicit Assumptions in LLM Code Generation24 Jul 2026
- 2026MineValiCoder: Reliable Code Generation with Test Case Quality Mining and Bipartite Graph-Based Mutual Validation24 Jul 2026
- 2026Beyond Detection: Agentic Attack Synthesis and Simulation for Smart Contracts17 Jul 2026
- 2026Knowledge-Conditioned, Single-Pass LLM Synthesis of Executable Unity Game Scenes: A Compiler Error Census across 26 Goal Playable Concepts11 Jul 2026
- 2026A Closed-Loop Multi-Agent Framework for Robust Multi-Robot Manipulation8 Jul 2026
- 2026An Evaluation of Role-Based Multi-Agent Code Generation on Repository-Scale Problems5 Jul 2026
38 more
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
- 2026Multi-agent Collaboration with State Management19 May 2026
- 2026Syntax Without Semantics: Teaching Large Language Models to Code in an Unseen Language15 May 2026
- 2026From I/O to Code with Discovery Agent14 May 2026
- 2026Sketch-and-Verify: Structured Inference-Time Scaling via Program Sketching9 May 2026
- 2026RefEvo: Agentic Design with Co-Evolutionary Verification for Agile Reference Model Generation27 Apr 2026
- 2026AI-Assisted Unit Test Writing and Test-Driven Code Refactoring: A Case Study3 Apr 2026
- 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensus31 Mar 2026
- 2026Vision2Web: A Hierarchical Benchmark for Visual Website Development with Agent Verification27 Mar 2026
- 2026Can AI Models Direct Each Other? Organizational Structure as a Probe into Training Limitations27 Mar 2026
- 2026AI-for-Science Low-code Platform with Bayesian Adversarial Multi-Agent Framework3 Mar 2026
- 2026Software Self-Extension with SelfEvolve: an Agentic Architecture for Runtime Code Generation6 Feb 2026
- 2026CodeCircuit: Toward Inferring LLM-Generated Code Correctness via Attribution Graphs6 Feb 2026
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code6 Feb 2026
- 2026EvoMAS: Evolutionary Generation of Multi-Agent Systems6 Feb 2026
- 2026ContextEvolve: Multi-Agent Context Compression for Systems Code Optimization1 Feb 2026
- 2026Toward Non-Expert Customized Congestion Control: Large Language Model-Assisted CCA Code Generation with eBPF Deployment30 Jan 2026
- 2026Advancing Language Models for Code-related Tasks8 Jan 2026
- 2025Anka: A Domain-Specific Language for Reliable LLM Code Generation29 Dec 2025
- 2025Beyond the Prompt: An Empirical Study of Cursor Rules21 Dec 2025
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent17 Dec 2025
- 2025Knowledge-Graph-Driven Data Synthesis for Low-Resource Software Development: A HarmonyOS Case Study29 Nov 2025
- 2025TALM: Dynamic Tree-Structured Multi-Agent Framework with Long-Term Memory for Scalable Code Generation27 Oct 2025
- 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generation22 Oct 2025
- 2025CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignment21 Oct 2025
- 2025Saber: An Efficient Sampling with Adaptive Acceleration and Backtracking Enhanced Remasking for Diffusion Language Model20 Oct 2025
- 2025Code-driven Number Sequence Calculation: Enhancing the inductive Reasoning Abilities of Large Language Models16 Oct 2025
- 2025AppForge: From Assistant to Independent Developer -- Are GPTs Ready for Software Development?9 Oct 2025
- 2025FaithCoT-Bench: Benchmarking Instance-Level Faithfulness of Chain-of-Thought Reasoning5 Oct 2025
- 2025PAT-Agent: Autoformalization for Model Checking28 Sep 2025
- 2025Reinforcement Learning-Guided Chain-of-Draft for Token-Efficient Code Generation26 Sep 2025
- 2025Understanding Benchmark Language Under Weakened Formal Semantics22 Sep 2025
- 2025Scrub It Out! Erasing Sensitive Memorization in Code Language Models via Machine Unlearning17 Sep 2025
- 2025GenTune: Toward Traceable Prompts to Improve Controllability of Image Refinement in Environment Design21 Aug 2025
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Tasks18 Aug 2025
- 2025Exploring the Challenges and Opportunities of AI-assisted Codebase Generation11 Aug 2025
- 2025Meta-RAG on Large Codebases Using Code Summarization4 Aug 2025
- 2025SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketches2 Aug 2025
50 newest of 121 All 121 (JSON)
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2025R&D-Agent-Quant: A Multi-Agent Framework for Data-Centric Factors and Model Joint Optimizationcited by 39
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generationcited by 33
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Taskscited by 20
- 2026Vision2Web: A Hierarchical Benchmark for Visual Website Development with Agent Verificationcited by 16
- 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidancecited by 12
- 2024Guide-LLM: An Embodied LLM Agent and Text-Based Topological Map for Robotic Guidance of People with Visual Impairmentscited by 10
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generationcited by 6
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Codecited by 6
- 2025MARCO: Multi-Agent Code Optimization with Real-Time Knowledge Integration for High-Performance Computingcited by 5
12 most cited of 30 All 30 (JSON)
- 2026A Study of the Reliability of Agentic AI-Generated Programs16 Sep 2026
- 2026Architecture as Capability Equalizer for Coding Agents22 Aug 2026
- 2026DiDPO: Diff-in-Diff Policy Optimization for Coding Agent Training7 Aug 2026
- 2026Beyond Detection: Agentic Attack Synthesis and Simulation for Smart Contracts17 Jul 2026
- 2026An Evaluation of Role-Based Multi-Agent Code Generation on Repository-Scale Problems5 Jul 2026
- 2026Multi-agent Collaboration with State Management19 May 2026
- 2026From I/O to Code with Discovery Agent14 May 2026
- 2026RefEvo: Agentic Design with Co-Evolutionary Verification for Agile Reference Model Generation27 Apr 2026
- 2026Vision2Web: A Hierarchical Benchmark for Visual Website Development with Agent Verification27 Mar 2026
- 2026AI-for-Science Low-code Platform with Bayesian Adversarial Multi-Agent Framework3 Mar 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
12 newest of 30 All 30 (JSON)
- 2025VisuLogic: A Benchmark for Evaluating Visual Reasoning in Multi-modal Large Language Modelscited by 102
- 2023Towards Better Chain-of-Thought Prompting Strategies: A Surveycited by 62
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2024Reasoning in Token Economies: Budget-Aware Evaluation of LLM Reasoning Strategiescited by 44
- 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
- 2025FaithCoT-Bench: Benchmarking Instance-Level Faithfulness of Chain-of-Thought Reasoningcited by 25
- 2023Tree-of-Mixed-Thought: Combining Fast and Slow Thinking for Multi-hop Visual Reasoningcited by 17
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMscited by 17
- 2025Could Thinking Multilingually Empower LLM Reasoning?cited by 16
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMscited by 10
- 2023Bridging Code Semantic and LLMs: Semantic Chain-of-Thought Prompting for Code Generationcited by 6
- 2025On the Role of Feedback in Test-Time Scaling of Agentic AI Workflowscited by 3
12 most cited of 19 All 19 (JSON)
- 2026Idea Search: Guiding Tree Search with Ideas to Explore Diverse Scientific Methods9 Aug 2026
- 2026A Closed-Loop Multi-Agent Framework for Robust Multi-Robot Manipulation8 Jul 2026
- 2026Sketch-and-Verify: Structured Inference-Time Scaling via Program Sketching9 May 2026
- 2025Code-driven Number Sequence Calculation: Enhancing the inductive Reasoning Abilities of Large Language Models16 Oct 2025
- 2025FaithCoT-Bench: Benchmarking Instance-Level Faithfulness of Chain-of-Thought Reasoning5 Oct 2025
- 2025From Reasoning to Generalization: Knowledge-Augmented LLMs for ARC Benchmark23 May 2025
- 2025VisuLogic: A Benchmark for Evaluating Visual Reasoning in Multi-modal Large Language Models21 Apr 2025
- 2025Could Thinking Multilingually Empower LLM Reasoning?16 Apr 2025
- 2025On the Role of Feedback in Test-Time Scaling of Agentic AI Workflows2 Apr 2025
- 2025Investigating the Effectiveness of a Socratic Chain-of-Thoughts Reasoning Method for Task Planning in Robotics, A Case Study11 Mar 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMs22 Oct 2024
12 newest of 19 All 19 (JSON)
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Generalized Planning in PDDL Domains with Pretrained Large Language Modelscited by 139
- 2023Large Language Models for Supply Chain Optimizationcited by 61
- 2023Large Language Model-Aware In-Context Learning for Code Generationcited by 42
- 2024Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLMcited by 38
- 2024Benchmarking Language Model Creativity: A Case Study on Code Generationcited by 38
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 32
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generatorscited by 27
- 2024Rome was Not Built in a Single Step: Hierarchical Prompting for LLM-based Chip Designcited by 24
- 2025CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignmentcited by 22
- 2023PACE: Improving Prompt with Actor-Critic Editing for Large Language Modelcited by 20
- 2024Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code Generationcited by 19
12 most cited of 60 All 60 (JSON)
- 2026P3: Joint Program-and-Proof Planning for Verified Code Generation10 Aug 2026
- 2026Do Uncertainty Signals Help? A Systematic Study of Uncertainty-Aware Decoding with Rollback Mechanisms31 Jul 2026
- 2026AssumptionMiner: Extracting, Tracing, and Revising Implicit Assumptions in LLM Code Generation24 Jul 2026
- 2026MineValiCoder: Reliable Code Generation with Test Case Quality Mining and Bipartite Graph-Based Mutual Validation24 Jul 2026
- 2026Knowledge-Conditioned, Single-Pass LLM Synthesis of Executable Unity Game Scenes: A Compiler Error Census across 26 Goal Playable Concepts11 Jul 2026
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
- 2026Syntax Without Semantics: Teaching Large Language Models to Code in an Unseen Language15 May 2026
- 2026AI-Assisted Unit Test Writing and Test-Driven Code Refactoring: A Case Study3 Apr 2026
- 2026Can AI Models Direct Each Other? Organizational Structure as a Probe into Training Limitations27 Mar 2026
- 2026CodeCircuit: Toward Inferring LLM-Generated Code Correctness via Attribution Graphs6 Feb 2026
- 2026Toward Non-Expert Customized Congestion Control: Large Language Model-Assisted CCA Code Generation with eBPF Deployment30 Jan 2026
- 2026Advancing Language Models for Code-related Tasks8 Jan 2026
12 newest of 60 All 60 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
- 2024HumanEval Pro and MBPP Pro: Evaluating Large Language Models on Self-invoking Code Generation
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2024Assessing Code Generation with Intermediate Languages
- 2023Think Outside the Code: Brainstorming Boosts Large Language Models in Code Generation
- 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
- 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debugging
- 2025An Empirical Study of Reasoning Steps in Thinking Code LLMs