CodePlan: Repository-level Coding using LLMs and Planning
Not on the map. Why?
Cited by 44 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Software engineering activities such as package migration, fixing errors reports from static analysis or testing, and adding type annotations or other specifications to a codebase, involve pervasively editing the entire repository of code. We formulate these activities as repository-level coding tasks. Recent tools like GitHub Copilot, which are powered by Large Language Models (LLMs), have succeeded in offering high-quality solutions to localized coding problems. Repository-level coding tasks are more involved and cannot be solved directly using LLMs, since code within a repository is inter-dependent and the entire repository may be too large to fit into the prompt. We frame repository-level coding as a planning problem and present a task-agnostic framework, called CodePlan to solve it. CodePlan synthesizes a multi-step chain of edits (plan), where each step results in a call to an LLM on a code location with context derived from the entire repository, previous code changes and task-specific instructions. CodePlan is based on a novel combination of an incremental dependency analysis, a change may-impact analysis and an adaptive planning algorithm. We evaluate the effectiveness of CodePlan on two repository-level tasks: package migration (C#) and temporal code edits (Python). Each task is evaluated on multiple code repositories, each of which requires inter-dependent changes to many files (between 2-97 files). Coding tasks of this level of complexity have not been automated using LLMs before. Our results show that CodePlan has better match with the ground truth compared to baselines. CodePlan is able to get 5/6 repositories to pass the validity checks (e.g., to build without errors and make correct code edits) whereas the baselines (without planning but with the same type of contextual information as CodePlan) cannot get any of the repositories to pass them.
Key facts. Cited by 139 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Sep 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 5; 2024: 44; 2025: 45; 2026: 45.
139 papers.
Sort:
By area:
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 199
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
- 2024LLMs Can't Plan, But Can Help Planning in LLM-Modulo Frameworkscited by 178
- 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Modelcited by 101
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
- 2024VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing Toolcited by 85
- 2025PlanGenLLMs: A Modern Survey of LLM Planning Capabilitiescited by 82
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generationcited by 80
38 more
- 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
- 2023Igniting Language Intelligence: The Hitchhiker's Guide From Chain-of-Thought Reasoning to Language Agentscited by 72
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
- 2024Alibaba LingmaAgent: Improving Automated Issue Resolution via Comprehensive Repository Explorationcited by 58
- 2025FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementationcited by 57
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
- 2024MASAI: Modular Architecture for Software-engineering AI Agentscited by 49
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2024AgileCoder: Dynamic Collaborative Agents for Software Development based on Agile Methodologycited by 45
- 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projectscited by 45
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
- 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolvingcited by 30
- 2026LongCLI-Bench: A Preliminary Benchmark and Study for Long-horizon Agentic Programming in Command-Line Interfacescited by 29
- 2025RefactorBench: Evaluating Stateful Reasoning in Language Agents Through Codecited by 28
- 2023How Far Have We Gone in Vulnerability Detection Using Large Language Modelscited by 27
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generatorscited by 27
- 2024Octopus: On-device language model for function calling of software APIscited by 26
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluationcited by 21
- 2024Beyond pip install: Evaluating LLM Agents for the Automated Installation of Python Projectscited by 21
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
- 2025NExtLong: Toward Effective Long-Context Training without Long Documentscited by 19
- 2025debug-gym: A Text-Based Environment for Interactive Debuggingcited by 19
- 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
- 2024Counting-Stars: A Multi-evidence, Position-aware, and Scalable Benchmark for Evaluating Long-Context Large Language Modelscited by 17
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunitiescited by 17
- 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysiscited by 16
- 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completioncited by 15
- 2024Quest: Query-centric Data Synthesis Approach for Long-context Scaling of Large Language Modelcited by 15
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
- 2025Migrating Code At Scale With LLMs At Googlecited by 14
- 2025ResearchCodeAgent: An LLM Multi-Agent System for Automated Codification of Research Methodologiescited by 14
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inferencecited by 13
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
50 most cited of 139 All 139 (JSON)
- 2026CommunityKV: Efficient Long-Context Decoding via Graph Partitioning30 Sep 2026
- 2026An Empirical Study of Harness Design for Coding Agents17 Sep 2026
- 2026Adversarial Testing of Automated Program Repair Agents for Security Vulnerabilities14 Sep 2026
- 2026PaperCompiler: Faithful Paper-to-Code Generation via Repository-Level Specification Compilation2 Sep 2026
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migration22 Aug 2026
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessment21 Aug 2026
- 2026Repo0: Design-Driven Zero-to-All Code Generation20 Aug 2026
- 2026T-LLM Compiler: Trusted LLM-based Code Optimization and Verification Framework15 Aug 2026
- 2026A Unified Issue Resolution Benchmark for Requirement Clarification, Planning, and Code Generation for Coding Agents10 Aug 2026
- 2026Coupling Planning with Episodic Memory in LLM Agents for Software Issue Resolution7 Aug 2026
- 2026EA-Graph: Artifact-Anchored Verification Memory for Coding Agents under Upstream Drift4 Aug 2026
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models28 Jul 2026
38 more
- 2026Plans Work in Mysterious Ways: Evaluating a Plan Mode for Spreadsheet Agents26 Jul 2026
- 2026TRACE: Turn-level Reward Assignment via Credit Estimation for Long-Horizon Agents15 Jul 2026
- 2026SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks30 Jun 2026
- 2026Code Isn't Memory: A Structural Codebase Index Inside a Coding Agent21 Jun 2026
- 2026Holmes: Multimodal Agentic Diagnosis for Mixed-Language Mobile Crashes at Industrial Scale20 Jun 2026
- 2026Repository-Level Solidity Code Generation with Large Language Models: From Prompting to Fine-Tuning18 Jun 2026
- 2026When Parallelism Pays Off: Cohesion-Aware Task Partitioning for Multi-Agent Coding31 May 2026
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistants29 May 2026
- 2026Enhancing the Code Reasoning Capabilities of LLMs via Consistency-based Reinforcement Learning18 May 2026
- 2026When Retrieval Hurts Code Completion: A Diagnostic Study of Stale Repository Context14 May 2026
- 2026Debugging the Debuggers: Failure-Anchored Structured Recovery for Software Engineering Agents9 May 2026
- 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrieval8 May 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Serving29 Apr 2026
- 2026Absorber LLM: Harnessing Causal Synchronization for Test-Time Training22 Apr 2026
- 2026Toward Executable Repository-Level Code Generation via Environment Alignment4 Apr 2026
- 2026TheBotCompany: Self-Organizing Multi-agent Systems for Continuous Software Development26 Mar 2026
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation26 Mar 2026
- 2026SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understanding17 Mar 2026
- 2026S-HPLB: Efficient LLM Attention Serving via Sparsity-Aware Head Parallelism Load Balance11 Mar 2026
- 2026SWE-Fuse: Empowering Software Agents via Issue-free Trajectory Learning and Entropy-aware RLVR Training9 Mar 2026
- 2026NuMuon: Nuclear-Norm-Constrained Muon for Compressible LLM Training4 Mar 2026
- 2026Agentic Code Reasoning2 Mar 2026
- 2026Theory of Code Space: Do Code Agents Understand Software Architecture?28 Feb 2026
- 2026LongCLI-Bench: A Preliminary Benchmark and Study for Long-horizon Agentic Programming in Command-Line Interfaces15 Feb 2026
- 2026Compiling Large Multi-Modal Requirement Documents into Runnable Software Systems: From an Agentic Test-Driven Perspective14 Feb 2026
- 2026AgentStepper: Interactive Debugging of Software Development Agents6 Feb 2026
- 2026What's the plan? Metrics for implicit planning in LLMs and their application to rhyme generation and question answering28 Jan 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities14 Jan 2026
- 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completion6 Jan 2026
- 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolving4 Jan 2026
- 2026In Line with Context: Repository-Level Code Generation via Context Inlining1 Jan 2026
- 2025NetDeTox: Adversarial and Efficient Evasion of Hardware-Security GNNs via RL-LLM Orchestration27 Nov 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025LiteCache: A Query Similarity-Driven, GPU-Centric KVCache Subsystem for Efficient LLM Inference18 Nov 2025
- 2025SemanticForge: Repository-Level Code Generation through Semantic Knowledge Graphs and Constraint Satisfaction10 Nov 2025
- 2025Gistify! Codebase-Level Understanding via Runtime Execution30 Oct 2025
50 newest of 139 All 139 (JSON)
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
- 2024VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing Toolcited by 85
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2024MASAI: Modular Architecture for Software-engineering AI Agentscited by 49
- 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projectscited by 45
- 2026LongCLI-Bench: A Preliminary Benchmark and Study for Long-horizon Agentic Programming in Command-Line Interfacescited by 29
- 2024Octopus: On-device language model for function calling of software APIscited by 26
- 2024Beyond pip install: Evaluating LLM Agents for the Automated Installation of Python Projectscited by 21
- 2025debug-gym: A Text-Based Environment for Interactive Debuggingcited by 19
- 2025ResearchCodeAgent: An LLM Multi-Agent System for Automated Codification of Research Methodologiescited by 14
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2026SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understandingcited by 9
12 most cited of 38 All 38 (JSON)
- 2026An Empirical Study of Harness Design for Coding Agents17 Sep 2026
- 2026Adversarial Testing of Automated Program Repair Agents for Security Vulnerabilities14 Sep 2026
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessment21 Aug 2026
- 2026Repo0: Design-Driven Zero-to-All Code Generation20 Aug 2026
- 2026A Unified Issue Resolution Benchmark for Requirement Clarification, Planning, and Code Generation for Coding Agents10 Aug 2026
- 2026Coupling Planning with Episodic Memory in LLM Agents for Software Issue Resolution7 Aug 2026
- 2026EA-Graph: Artifact-Anchored Verification Memory for Coding Agents under Upstream Drift4 Aug 2026
- 2026Plans Work in Mysterious Ways: Evaluating a Plan Mode for Spreadsheet Agents26 Jul 2026
- 2026SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks30 Jun 2026
- 2026Code Isn't Memory: A Structural Codebase Index Inside a Coding Agent21 Jun 2026
- 2026Holmes: Multimodal Agentic Diagnosis for Mixed-Language Mobile Crashes at Industrial Scale20 Jun 2026
- 2026When Parallelism Pays Off: Cohesion-Aware Task Partitioning for Multi-Agent Coding31 May 2026
12 newest of 38 All 38 (JSON)
- 2024LLMs Can't Plan, But Can Help Planning in LLM-Modulo Frameworkscited by 178
- 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Modelcited by 101
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generationcited by 80
- 2023Igniting Language Intelligence: The Hitchhiker's Guide From Chain-of-Thought Reasoning to Language Agentscited by 72
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025RefactorBench: Evaluating Stateful Reasoning in Language Agents Through Codecited by 28
- 2025CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidancecited by 11
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMscited by 10
- 2025Large Reasoning Models are not thinking straight: on the unreliability of thinking trajectoriescited by 8
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
- 2026Agentic Code Reasoningcited by 4
- 2024On The Importance of Reasoning for Context Retrieval in Repository-Level Code Editingcited by 2
12 most cited of 14 All 14 (JSON)
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models28 Jul 2026
- 2026Enhancing the Code Reasoning Capabilities of LLMs via Consistency-based Reinforcement Learning18 May 2026
- 2026Agentic Code Reasoning2 Mar 2026
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agents20 Oct 2025
- 2025Large Reasoning Models are not thinking straight: on the unreliability of thinking trajectories1 Jul 2025
- 2025RefactorBench: Evaluating Stateful Reasoning in Language Agents Through Code10 Mar 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2025CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidance4 Feb 2025
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMs22 Oct 2024
- 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Model18 Aug 2024
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generation1 Aug 2024
- 2024On The Importance of Reasoning for Context Retrieval in Repository-Level Code Editing6 Jun 2024
12 newest of 14 All 14 (JSON)
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 199
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inferencecited by 13
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Servingcited by 4
- 2025LiteCache: A Query Similarity-Driven, GPU-Centric KVCache Subsystem for Efficient LLM Inferencecited by 2
- 2026S-HPLB: Efficient LLM Attention Serving via Sparsity-Aware Head Parallelism Load Balancecited by 1
- 2026CommunityKV: Efficient Long-Context Decoding via Graph Partitioningcited by 0
- 2026CommunityKV: Efficient Long-Context Decoding via Graph Partitioning30 Sep 2026
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Serving29 Apr 2026
- 2026S-HPLB: Efficient LLM Attention Serving via Sparsity-Aware Head Parallelism Load Balance11 Mar 2026
- 2025LiteCache: A Query Similarity-Driven, GPU-Centric KVCache Subsystem for Efficient LLM Inference18 Nov 2025
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inference5 May 2025
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methods13 Dec 2024
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr 2024
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving11 Oct 2023
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunitiescited by 17
- 2024Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation Systemscited by 7
- 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completioncited by 3
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generationcited by 1
- 2026When Retrieval Hurts Code Completion: A Diagnostic Study of Stale Repository Contextcited by 1
- 2026Repository-Level Solidity Code Generation with Large Language Models: From Prompting to Fine-Tuningcited by 0
- 2026Repository-Level Solidity Code Generation with Large Language Models: From Prompting to Fine-Tuning18 Jun 2026
- 2026When Retrieval Hurts Code Completion: A Diagnostic Study of Stale Repository Context14 May 2026
- 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completion6 Jan 2026
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches6 Oct 2025
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond26 Mar 2025
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generation28 Jan 2025
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities23 Jan 2025
- 2024Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation Systems29 Nov 2024
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
- 2025PlanGenLLMs: A Modern Survey of LLM Planning Capabilitiescited by 82
- 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
- 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
- 2024Alibaba LingmaAgent: Improving Automated Issue Resolution via Comprehensive Repository Explorationcited by 58
- 2025FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementationcited by 57
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
12 most cited of 69 All 69 (JSON)
- 2026PaperCompiler: Faithful Paper-to-Code Generation via Repository-Level Specification Compilation2 Sep 2026
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migration22 Aug 2026
- 2026T-LLM Compiler: Trusted LLM-based Code Optimization and Verification Framework15 Aug 2026
- 2026TRACE: Turn-level Reward Assignment via Credit Estimation for Long-Horizon Agents15 Jul 2026
- 2026Debugging the Debuggers: Failure-Anchored Structured Recovery for Software Engineering Agents9 May 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026Absorber LLM: Harnessing Causal Synchronization for Test-Time Training22 Apr 2026
- 2026Toward Executable Repository-Level Code Generation via Environment Alignment4 Apr 2026
- 2026NuMuon: Nuclear-Norm-Constrained Muon for Compressible LLM Training4 Mar 2026
- 2026What's the plan? Metrics for implicit planning in LLMs and their application to rhyme generation and question answering28 Jan 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolving4 Jan 2026
12 newest of 69 All 69 (JSON)