cs.AIAug 17, 2026

HaReCAP: Habitual-action Grounding for Recursive Large Language Model Agents

Authors: Shen Liu, Zhenguo Xu, Shaopu Wang, Yike Gao, Chunlei Wang

Organizations: North China Institute of Computer System Engineering, Beijing, China · University of Science and Technology of China, Hefei, China · China Information Security Research Institute Co., Ltd., Beijing, China

Abstract

Long-horizon embodied tasks require LLM agents to iteratively decompose high-level goals, revise plans in response to environmental feedback, and ground leaf-level subgoals into valid executable actions. Recursive context-management methods such as ReCAP improve planning stability through multi-level task decomposition and parent-node refinement, but still repeatedly invoke the LLM at leaf nodes to ground atomic subtasks into exact valid actions. We refer to this final grounding step as last-mile grounding redundancy, which accumulates into substantial LLM-call and token overhead during long-horizon execution. To mitigate this issue, we propose HaReCAP (Habitual-action Grounded ReCAP), a low-intrusion leaf grounding extension for ReCAP. HaReCAP extracts frequent leaf decisions from successful trajectories and compiles them offline into auditable and abstainable one-step leaf-reflex rules. At runtime, it skips the leaf LLM call only when a rule can uniquely determine a legal action in the current valid-action set; otherwise, it falls back to the original ReCAP. This design avoids repeatedly carrying the full recursive context into the LLM for routine leaf action grounding, while preserving the original recursive control flow. We evaluate HaReCAP on Robotouille and ALFWorld with Qwen3.5-27B as the main model. On tasks solved by both ReCAP and HaReCAP, HaReCAP reduces token consumption by 14.67%, 17.93%, and 20.08% on Robotouille synchronous, Robotouille asynchronous, and ALFWorld, respectively. The results show that HaReCAP can serve as a low-intrusion extension to ReCAP-style recursive context-management frameworks, reducing last-mile grounding redundancy across environments and models on commonly successful trajectories.

Figures & tables

Explore similar work

CardsList
  1. LeafSkill: Efficient Leaf-Level Action Grounding for Recursive LLM Agents

    Oct 23, 2026Shen Liu, Ze Zhou, Zhenguo Xu +3LLM Agent Skill RetrievalLLM Grounding

  2. Recursive Agent Harnesses

    Jun 11, 2026Elias Lumer, Sahil Sen, Kevin Paul +1Tool-Augmented Language Model AgentsLLM Agent Orchestration

  3. Remembering What Matters for Long-Horizon Robotic World Models

    Oct 10, 2026Hao Wu, Tianyu Shao, Shengju Qian +10Video World ModelsVideo Prediction