Interactive and Expressive Code-Augmented Planning with Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) demonstrate strong abilities in common-sense reasoning and interactive decision-making, but often struggle with complex, long-horizon planning tasks. Recent techniques have sought to structure LLM outputs using control flow and other code-adjacent techniques to improve planning performance. These techniques include using variables (to track important information) and functions (to divide complex tasks into smaller re-usable sub-tasks). However, purely code-based approaches can be error-prone and insufficient for handling ambiguous or unstructured data. To address these challenges, we propose REPL-Plan, an LLM planning approach that is fully code-expressive (it can utilize all the benefits of code) while also being dynamic (it can flexibly adapt from errors and use the LLM for fuzzy situations). In REPL-Plan, an LLM solves tasks by interacting with a Read-Eval-Print Loop (REPL), which iteratively executes and evaluates code, similar to language shells or interactive code notebooks, allowing the model to flexibly correct errors and handle tasks dynamically. We demonstrate that REPL-Plan achieves strong results across various planning domains compared to previous methods.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 21 Nov 2024.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 3; 2026: 4.
7 papers.
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025ReCode: Unify Plan and Action for Universal Granularity Controlcited by 15
- 2026PEARL: Self-Evolving Assistant for Time Management with Reinforcement Learningcited by 4
- 2026CodeDelegator: Mitigating Context Pollution via Role Separation in Code-as-Action Agentscited by 4
- 2026Learning Abstractions for Hierarchical Planning in Program-Synthesis Agentscited by 3
- 2025Code Driven Planning with Domain-Adaptive Criticcited by 0
- 2026Agent Behavior as Code: Efficient and Robust LLM Agents with Programmatic Specificationscited by 0
- 2026Agent Behavior as Code: Efficient and Robust LLM Agents with Programmatic Specifications4 Oct 2026
- 2026Learning Abstractions for Hierarchical Planning in Program-Synthesis Agents31 Jan 2026
- 2026CodeDelegator: Mitigating Context Pollution via Role Separation in Code-as-Action Agents21 Jan 2026
- 2026PEARL: Self-Evolving Assistant for Time Management with Reinforcement Learning17 Jan 2026
- 2025ReCode: Unify Plan and Action for Universal Granularity Control27 Oct 2025
- 2025Code Driven Planning with Domain-Adaptive Critic23 Sep 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025