ReCAP: Recursive Context-Aware Reasoning and Planning for Large Language Model Agents
On the map: LLM reasoning → Test-time compute and efficient thinking
also in 1 more
Abstract (arXiv)
Long-horizon tasks requiring multi-step reasoning and dynamic re-planning remain challenging for large language models (LLMs). Sequential prompting methods are prone to context drift, loss of goal information, and recurrent failure cycles, while hierarchical prompting methods often weaken cross-level continuity or incur substantial runtime overhead. We introduce ReCAP (Recursive Context-Aware Reasoning and Planning), a hierarchical framework with shared context for reasoning and planning in LLMs. ReCAP combines three key mechanisms: (i) plan-ahead decomposition, in which the model generates a full subtask list, executes the first item, and refines the remainder; (ii) structured re-injection of parent plans, maintaining consistent multi-level context during recursive return; and (iii) memory-efficient execution, bounding the active prompt so costs scale linearly with task depth. Together these mechanisms align high-level goals with low-level actions, reduce redundant prompting, and preserve coherent context updates across recursion. Experiments demonstrate that ReCAP substantially improves subgoal alignment and success rates on various long-horizon reasoning benchmarks, achieving a 32% gain on synchronous Robotouille and a 29% improvement on asynchronous Robotouille under the strict pass@1 protocol.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 1 of its 25 references that are in the map. First posted on arXiv 27 Oct 2025.
Builds on
1 of 25 references.
References · 1
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
Built on by
Citing papers per year: 2025: 1; 2026: 12.
13 papers.
Sort:
By area:
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestrationcited by 11
- 2026Recursive Models for Long-Horizon Reasoningcited by 9
- 2026Table-as-Search: Formulate Long-Horizon Agentic Information Seeking as Table Completioncited by 5
- 2026TACT: Mitigating Overthinking and Overacting in Coding Agents via Activation Steeringcited by 4
- 2025PAACE: A Plan-Aware Automated Agent Context Engineering Frameworkcited by 2
- 2026SokoBench: Evaluating Long-Horizon Planning and Reasoning in Large Language Modelscited by 2
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasurescited by 1
- 2026Multi2: Hierarchical Multi-Agent Decision-Making with LLM-Based Agents in Interactive Environmentscited by 1
- 2026Post-Training on Office Work Improves Software Engineering: A Behavioral Account of Cross-Domain Transfercited by 1
- 2026Online Monitoring and Corrective Steering of Programming Agentscited by 1
- 2026Web Agents Should Use Typed Actions Instead of Click-Based Browsingcited by 0
- 2026HaReCAP: Habitual-action Grounding for Recursive Large Language Model Agentscited by 0
1 more
- 2026Plan-and-Patch: Diffusion Language Models for Agentic Planning7 Oct 2026
- 2026HaReCAP: Habitual-action Grounding for Recursive Large Language Model Agents17 Aug 2026
- 2026Online Monitoring and Corrective Steering of Programming Agents7 Aug 2026
- 2026Post-Training on Office Work Improves Software Engineering: A Behavioral Account of Cross-Domain Transfer3 Aug 2026
- 2026Multi2: Hierarchical Multi-Agent Decision-Making with LLM-Based Agents in Interactive Environments2 Jun 2026
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures25 May 2026
- 2026TACT: Mitigating Overthinking and Overacting in Coding Agents via Activation Steering7 May 2026
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration24 Mar 2026
- 2026Recursive Models for Long-Horizon Reasoning2 Mar 2026
- 2026Web Agents Should Use Typed Actions Instead of Click-Based Browsing19 Feb 2026
- 2026Table-as-Search: Formulate Long-Horizon Agentic Information Seeking as Table Completion6 Feb 2026
- 2026SokoBench: Evaluating Long-Horizon Planning and Reasoning in Large Language Models28 Jan 2026
1 more
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestrationcited by 11
- 2026Table-as-Search: Formulate Long-Horizon Agentic Information Seeking as Table Completioncited by 5
- 2025PAACE: A Plan-Aware Automated Agent Context Engineering Frameworkcited by 2
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasurescited by 1
- 2026Multi2: Hierarchical Multi-Agent Decision-Making with LLM-Based Agents in Interactive Environmentscited by 1
- 2026Online Monitoring and Corrective Steering of Programming Agentscited by 1
- 2026Web Agents Should Use Typed Actions Instead of Click-Based Browsingcited by 0
- 2026HaReCAP: Habitual-action Grounding for Recursive Large Language Model Agentscited by 0
- 2026HaReCAP: Habitual-action Grounding for Recursive Large Language Model Agents17 Aug 2026
- 2026Online Monitoring and Corrective Steering of Programming Agents7 Aug 2026
- 2026Multi2: Hierarchical Multi-Agent Decision-Making with LLM-Based Agents in Interactive Environments2 Jun 2026
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures25 May 2026
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration24 Mar 2026
- 2026Web Agents Should Use Typed Actions Instead of Click-Based Browsing19 Feb 2026
- 2026Table-as-Search: Formulate Long-Horizon Agentic Information Seeking as Table Completion6 Feb 2026
- 2025PAACE: A Plan-Aware Automated Agent Context Engineering Framework18 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2026Chained Recursive Language Models for Multi-Iteration Reasoning
- 2025Recursive Language Models
- 2026ReContext: Recursive Evidence Replay as LLM Harness for Long-Context Reasoning
- 2025RECAP: REwriting Conversations for Intent Understanding in Agentic Planning
- 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agents
- 2026PPA-Plan: Proactive Pitfall Avoidance for Reliable Planning in Long-Context LLM Reasoning
- 2025R-Capsule: Compressing High-Level Plans for Efficient Large Language Model Reasoning
- 2023Recursion of Thought: A Divide-and-Conquer Approach to Multi-Context Reasoning with Language Models