atlas

Research map / Large language models / Agents, code and math

ReCAP: Recursive Context-Aware Reasoning and Planning for Large Language Model Agents

NeurIPS 2025 · Large language models › Agents, code and math · approach: Long-horizon LLM agents · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ReCAP, a training-free recursive hierarchical prompting framework with plan-ahead subtask lists, parent-plan re-injection into a shared context, and a bounded sliding window, evaluated under pass@1 on Robotouille, ALFWorld, FEVER, and SWE-bench Verified.

Problem

Long-horizon tasks requiring multi-step reasoning and dynamic re-planning remain hard for LLM agents: sequential prompting suffers context drift and loss of goal information, while hierarchical prompting fragments context across levels or adds runtime overhead.

Approach

Generate a full ordered subtask list, execute only the head item, and on each return from recursion re-inject the parent's thought and remaining subtasks into a single shared LLM context, with a sliding window bounding the active prompt so cost scales with tree depth.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ReCAP instead of ReActGPT-4o agent · Robotouille synchronouspass@1 task success rate (%): 38.0 -> 70.0Helped
Use ReCAP instead of ReActGPT-4o agent · Robotouille asynchronouspass@1 task success rate (%): 24.0 -> 53.0Helped
Use ReCAP instead of ReActGPT-4o agent · ALFWorld unseen splitpass@1 task success rate (%): 84.0 -> 91.0Helped
Use ReCAP instead of ReActGPT-4o agent · FEVERpass@1 task success rate (%): 63.5 -> 63.5No clear effect
Use ReCAP instead of mini-SWE-agent (ReAct)GPT-4.1 agent · SWE-bench Verifiedpass@1 task success rate (%): 39.58 -> 44.8Helped
Use ReCAP instead of ReActRobotouille tasks 2, 4, and 6 · Robotouille synchronoussuccess rate (%): 63.0 -> 90.0Helped
Use ReCAP instead of ReActQwen2.5-32B agent · Robotouille tasks 2, 4, and 6success rate (%): 10.0 -> 33.0Helped
Use ReCAP instead of ReActQwen2.5-72B agent · Robotouille tasks 2, 4, and 6success rate (%): 23.0 -> 53.0Helped
Use ReCAP instead of ReActLLaMA-4 (400B) agent · Robotouille tasks 2, 4, and 6success rate (%): 37.0 -> 60.0Helped
Use ReCAP instead of ReActDeepSeek-V3 (671B) agent · Robotouille tasks 2, 4, and 6success rate (%): 57.0 -> 87.0Helped
pass all think history instead of only the most recent (ablation)ReCAP · Robotouille synchronous task 6 (lettuce-tomato-cheeseburger)success rate (%): 80 -> 70No clear effect
remove intermediate think reasoning; output decomposition/action only (ablation)ReCAP · Robotouille synchronous task 6 (lettuce-tomato-cheeseburger)success rate (%): 80 -> 60No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Robotouille ALFWorld FEVER SWE-bench Verified

Benchmarks: Robotouille ALFWorld FEVER SWE-bench Verified

Metrics: pass@1 success rate

Baselines: Standard CoT ReAct Act ADaPT mini-SWE-agent

Builds on: ReAct Chain-of-Thought Reflexion ADaPT Tree of Thoughts

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy