Recursive Teams: Agents That Spawn Agents
In connector.json, every worker is a full agent — not a subagent. Any agent can spawn its own team, which can spawn more teams. The tree has no depth limit.Subagent vs Agent
How Recursive Spawning Works
The Spec
Main Session Observability
The main session (you) can see and control the entire tree.Scratchpad Hierarchy
Each team level has its own scratchpad. Parent can read child scratchpads.Why This Is Different
Claude Code Teams
Leader spawns teammates. Teammates cannot spawn more teammates. Flat hierarchy. One level deep.Codex Plugin
One subprocess call. No spawning at all.connector.json
Any agent can be a leader. Any leader can have a team. Trees, not lists. Depth is unlimited.The Compound Effect
Safety
Recursive spawning is powerful. Safeguards are essential.- max_depth: how deep the tree can go
- max_total_agents: total across all levels
- max_cost_usd: spending cap for the entire tree
- timeout_per_agent_ms: no single agent runs forever
capabilities and limits are planned fields not yet in the core spec. They represent the governance layer for recursive execution.