claude-code - 💡(How to fix) Fix [FEATURE] Subagents have no Agent/Task tool — recursive/nested subagent dispatch impossible

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Summary

Subagents dispatched via the Agent (Task) tool do not themselves receive the Agent tool, so they cannot spawn their own subagents. Recursive/nested orchestration (depth > 1) is impossible — all fan-out must originate from the single top-level session.

Expected

A subagent can invoke the Agent tool to dispatch a child subagent (ideally with a configurable depth cap to prevent fork-bombs).

Actual

A dispatched general-purpose agent reports the Agent/Task tool is absent from its toolset; a ToolSearch for it returns only TaskCreate (a todo manager). It cannot spawn a child.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Summary

Subagents dispatched via the Agent (Task) tool do not themselves receive the Agent tool, so they cannot spawn their own subagents. Recursive/nested orchestration (depth > 1) is impossible — all fan-out must originate from the single top-level session.

Expected

A subagent can invoke the Agent tool to dispatch a child subagent (ideally with a configurable depth cap to prevent fork-bombs).

Actual

A dispatched general-purpose agent reports the Agent/Task tool is absent from its toolset; a ToolSearch for it returns only TaskCreate (a todo manager). It cannot spawn a child.

Why it matters

Blocks recursive divide-and-conquer patterns where each work unit is itself an orchestratable sub-pipeline. Forces flat one-level fan-out and keeps all orchestration/context in the root session.

Proposed Solution

Expose the Agent tool to subagents behind a depth limit, OR document the limitation and provide a supported bounded-recursion primitive.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

  1. Dispatch a general-purpose agent.
  2. Instruct it to call the Agent tool to spawn one subagent and relay the result.
  3. It returns: NESTED_SPAWN: TOOL_UNAVAILABLE.

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING