Nested Sub-Agents

•
70k
•
申請済み
管理

Orchestrates multi-level hierarchical sub-agent trees up to five levels deep for context-isolated, complex task delegation.

Nested Sub-Agents enables Claude Code to spawn deep, multi-tiered agent hierarchies using the native Task tool without overflowing top-level context windows. By allocating fresh context to each recursive child agent and returning structured 200-token summaries rather than raw transcripts, this skill solves context budget exhaustion during complex workflows like multi-stage research, recursive entity expansion, and verification pipelines. It features configurable depth budgets, tree-shaped cost attribution in AgentDB, and strict depth enforcement to prevent runaway execution.

主な機能

01Compact structured summary propagation to prevent context bloat
02Pre-execution tree decomposition planning using TodoWrite
03Configurable depth guardrails with NESTING_DEPTH_EXCEEDED error handling
04Context isolation across multi-level agent trees up to depth 5
0569,650 GitHub stars
06Hierarchical lineage tracking and tree-shaped cost attribution via AgentDB

ユースケース

01Orchestrating complex multi-phase software refactoring without polluting parent context
02Decomposing layered research workflows requiring recursive entity expansion
03Executing multi-stage testing and verification pipelines across specialized leaf agents