Manuscript Offprint

arXiv:2610.11268

TaReD: Tool-Aware Recursive Decomposition for Long-Horizon Tasks

Wei-Xiang Mao, Zhi-Kai Chen, De-Chuan Zhan, Han-Jia Ye

ABSTRACT

Agents combine reasoning with tools to interact with external systems and complete real-world tasks. Early agents typically interleave reasoning and actions along a single execution chain. On complex tasks, this chain becomes unreliable because growing histories obscure intermediate dependencies and allow early planning errors to propagate. Recursively decomposing a complex task into smaller subtasks offers a natural solution, yet effective decomposition must account for the system's capabilities so that each subtask can be executed by the available tools. In realistic systems, however, tool libraries can be too large to expose in full. Injecting every tool description consumes substantial context while making relevant tools harder to retrieve and useful task boundaries harder to identify. We propose tool-aware recursive decomposition, which organizes tools by functional relationships into a hierarchy of capabilities. During execution, the agent discovers tools on demand and uses the hierarchy to recursively decompose a complex task into a subtask tree whose levels are aligned with the capabilities required at each stage. Experiments on complex real-world tasks show that the proposed method improves end-to-end task success rate by up to 40 percentage points over the compared baselines. The implementation of TaReD is available on GitHub: https://github.com/WeiXiang-Mao/TaReD.

1 INTRODUCTION

Agents combine language-based reasoning with executable tools to retrieve information (Karpas et al., 2022; Nakano et al., 2021) and change state in external environments (Yao et al., 2023; Zhou et al., 2024). Tool interfaces extend an agent's capabilities beyond its language context (Wang et al., 2025), but also introduce additional planning requirements: the agent must identify which tool is relevant (Schick et al., 2023; Shen et al., 2023), construct valid arguments (Patil et al., 2023; Tang et al., 2023; Chen et al., 2026a), order calls whose results and state changes may influence one another (Qin et al., 2023; Chen et al., 2026b), and maintain those dependencies across a long sequence of operations.

Early agents typically interleave reasoning and actions along a single execution chain (Yao et al., 2023; Paranjape et al., 2023). In this chain-based style, the agent repeatedly reasons about the current state, selects and invokes a tool, observes its result, and then continues from the updated state (Huang et al., 2023). As tasks become more complex, the chain must carry more intermediate states and dependencies, making it harder to maintain and recover; an early planning or execution error can propagate through later steps and reduce end-to-end success (Liu et al., 2024).

Task decomposition addresses the limitations by breaking a complex task into an ordered sequence of subtasks (Zhou et al., 2023) with explicit dependencies (Khot et al., 2022). Early decomposition methods generally derive these subtask boundaries from task semantics, such as goals, entities, and procedural structure (Wang et al., 2023). However, semantic decomposition alone does not ensure that each subtask corresponds to an operation the current system can execute: it may introduce a subtask with no directly executable capability (Huang et al., 2022) or omit a necessary stage.

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Figure

Figure 1: Motivation for tool-aware recursive decomposition. (a) Injecting descriptions and contracts of the full library consumes substantial context and distracts selection of task-relevant tools. (b) A fixed predicted subset can omit necessary tools and offers little structural guidance for dividing a task into capability-aligned subtasks. (c) TaReD navigates a capability hierarchy to retrieve relevant information on demand, guide recursive decomposition toward executable stages, and inspect detailed contracts only when needed.

A high-quality task decomposition should align with the execution environment’s capabilities (Ichter et al., 2023; Singh et al., 2023), so that every subtask can be carried out by corresponding operations available in that environment (Song et al., 2023). Achieving this requires information about system capabilities (Karpas et al., 2022). The challenge is to expose enough capability information (Li et al., 2023) to make subtasks executable without overwhelming the planner. As tool libraries continue to grow in realistic tasks, this challenge becomes increasingly pronounced: injecting the descriptions and contracts of all tools consumes substantial context (Hao et al., 2023), while the volume of tool information can distract the planner from selecting tools relevant to the task. Predicting a small, task-relevant tool subset (Qin et al., 2023) and exposing only that subset to the planner partially alleviates this burden. However, this approach may omit necessary tools (Shi et al., 2025) and still presents tool information as a flat list, providing little structural guidance for task decomposition.

We propose TaReD (Tool-Aware Recursive Decomposition), which organizes tools by functional relationships into a hierarchy of capabilities. When performing a task, TaReD navigates the hierarchy on demand, uses the discovered capability region to recursively split a task into functional stages, and binds an exact tool contract only when a stage is ready to execute. TaReD only retrieves the tool information needed for each task, avoiding both full-library context injection and the omission of necessary tools caused by a fixed subset. The hierarchy’s functional relations also provide structural guidance for dividing the task into capability-aligned stages (Figure 1).

To assess the effectiveness of our method, we evaluate TaReD on complex interactive tasks in App-World (Trivedi et al., 2024), comparing it with representative recursive (Prasad et al., 2024), linear (Yao et al., 2023), and plan-then-execute (Wang et al., 2023) strategies. All implementations use matched models, budgets, verifiers, and service conditions. Experimental results show that TaReD improves end-to-end task success rate by up to 40 percentage points over the compared baselines. Our contributions are summarized as follows:

• We propose TaReD (Tool-Aware Recursive Decomposition), which organizes a large tool library into a hierarchy and tightly couples tool discovery with task decomposition.

• We implement an architecture and execution protocol for tool-aware recursive decomposition that fully realizes the proposed algorithm and achieves strong performance in task execution.

• We evaluate TaReD on complex, long-horizon tasks and show a clear improvement in end-to-end performance over the compared baselines.

2 RELATED WORK

Task decomposition and hierarchical planning. Chain-of-thought agents (Wei et al., 2022) execute a task as a single sequence of interleaved reasoning and actions (Yao et al., 2023). But as task complexity grows, long action chains strain state tracking and allow early errors to propagate. Task-decomposition methods address this limitation (Prasad et al., 2024) by breaking complex tasks into interdependent subproblems (Zhou et al., 2023; Xu et al., 2023) and solving them in an order (Wang et al., 2023) that respects their dependencies (Khot et al., 2022; Kim et al., 2024). Early semantic-driven studies decomposed tasks based on their goals, entities (Press et al., 2022), or procedural structure. However, semantic decomposition alone does not account for which operations the environment can actually execute. A subtask may therefore fail to specify an executable sequence, motivating the use of tool information to ground decomposition.

Tool use and large tool libraries. Early tool-using research (Karpas et al., 2022) studied how agents decide when to invoke tools (Schick et al., 2023) and how to incorporate their results into ongoing reasoning (Yao et al., 2023). In these settings, the available tools and their descriptions were typically provided in the agent's context (Lu et al., 2023). However, as the scale of tools increases, it is impractical to include the full tool information in the context (Hao et al., 2023). To avoid overwhelming the planner with lengthy tool information, some methods first predict or retrieve a task-relevant subset and plan over that subset (Qin et al., 2023). Although selection based on prediction or retrieval reduces irrelevant choices, it can omit a necessary tool even when the full library contains a solution (Shi et al., 2025; Zheng et al., 2024). Moreover, the selected tools are typically presented as a flat list, which provides little guidance about capability relations or how to organize subtasks around capability boundaries.

Contributions of this work. Our work organizes tools by functional relationships into a hierarchy of capabilities and queries this hierarchy on demand during execution. This avoids placing the full tool library in the context while retaining on-demand access to every tool in the library, reducing the risk of omitting a necessary tool. The hierarchy also exposes relations among capabilities and provides structural guidance for decomposing tasks into subtasks aligned with the operations available in the environment.

References (41)