Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By gruckionv1.0.3MITIn 1 marketplace
Lets Claude subagents spawn their own subagents, nesting delegation several levels deep for multi-step workflows. It works around the native Task tool's block on nested subagents by launching each one as a separate claude -p process.
Trending plugins
7-day copy clicks
Connected while the plugin is enabled; Claude calls their tools.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.

Enable unlimited nested subagents in Claude Code. Subagents can spawn their own subagents.
/plugin in Claude Codegruckion/nested-subagentgit clone https://github.com/gruckion/nested-subagent.git
cd nested-subagent/mcp-server && npm install
claude /plugin install ./nested-subagent
claude --plugin-dir /path/to/nested-subagent
| Component | Name | Description |
|---|---|---|
| MCP Tool | Task | Spawns isolated Claude processes with full tool access |

Claude automatically uses the nested subagent tool when your task requires multi-level delegation:
Build a math utility that needs its own subagents for verify, plan, and code steps.
Process these issues where each issue handler spawns specialized workers.
Run a workflow that delegates to sub-sub-agents for parallel execution.
Claude Code's native Task tool blocks subagents from spawning other subagents:
// src/tools/AgentTool/prompt.ts - the recursion blocker
.filter(_ => _.name !== AgentTool.name)
This plugin works around that limitation using the official claude -p headless mode. Each spawned process runs as an isolated main agent with the same capabilities as your interactive session - including the ability to use the native Task tool.
Native Task: Main → Subagent → BLOCKED (Task tool filtered out)
This Plugin: Main → Nested → Isolated Main → Subagent → ✓
The plugin spawns claude -p with --output-format stream-json to get real-time progress, matching the native Task tool's behavior:
claude -p "your task" --output-format stream-json --verbose --model sonnet
This is the same approach as the Claude Agent SDK - spawning isolated Claude processes programmatically.
| Feature | Native Task | This Plugin | Status |
|---|---|---|---|
| Can spawn sub-sub-agents | ❌ Blocked | ✅ Yes | Why this exists |
| Context isolation | Shared | ✅ Fresh 200k window | ✅ Implemented |
| Real-time progress | Generator yields | MCP notifications | ✅ Implemented |
| Tool use counting | ✅ | ✅ | ✅ Implemented |
| Token tracking | ✅ | ✅ | ✅ Implemented |
| Cost tracking | ✅ | ✅ | ✅ Implemented |
| Abort / cancel | AbortController | SIGTERM / SIGKILL | ✅ Implemented |
| Configurable model | ❌ | ✅ sonnet / opus / haiku | ✅ Implemented |
| Configurable timeout | ❌ | ✅ | ✅ Implemented |
| System prompt control | ❌ | ✅ Full control | ✅ Implemented |
| Tool restrictions | ❌ | ✅ allowed / disallowed | ✅ Implemented |
| Budget limits | ❌ | ✅ maxBudgetUsd | ✅ Implemented |
| Resume support | ✅ --resume | ❌ | 🔲 Planned |
| Background execution | ✅ run_in_background | ❌ | 🔲 Planned |
| Normalized messages | ✅ Full tree | Text only | 🔲 Planned |
| Sidechain logging | ✅ .claude/logs | ❌ | 🔲 Planned |
| Task aggregation | N/A | ❌ | 🔲 Planned |
The mcp__plugin_nested_subagent__Task tool accepts:
| Parameter | Type | Description |
|---|---|---|
prompt | string | Required. The task for the agent |
description | string | Short summary for UI display (3-5 words) |
model | string | sonnet, opus, or haiku (default: sonnet) |
allowWrite | boolean | Enable write permissions |
timeout | number | Timeout in ms (default: 600000) |
systemPrompt | string | Custom system prompt |
allowedTools | string[] | Restrict to specific tools |
maxBudgetUsd | number | Cost limit for the task |
For deep technical details on how this works, see ARCHITECTURE.md.
MIT - see LICENSE for details.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub gruckion/nested-subagent --plugin fallback-agentPlugins from other owners that cover similar ground