Search the documentation
9 pages for subagentstart.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…inishes | Validate the result, save session state | | `SubagentStart` / `SubagentStop` | When a subagent spawns or completes | Track and aggregate parallel task results | | `PreCompact…
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…| | `SubagentStart` | Yes | Yes | Subagent initialization…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…compaction "Notification", # Called for notification events "SubagentStart", # Called when a subagent starts "PermissionRequest", # Called when a permission decision is needed ] ``` <N…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…| "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact" | "PermissionRequest" | "PermissionDenied" | "Setup"…
Claude Code changelog
Claude Code CLI · in the page
changelog
…e command applies to the lead * Fixed `SessionStart`, `Setup`, and `SubagentStart` hooks silently hiding stderr when exiting with code 2 — the error is now shown in the transcript * Fixed `claude…
Hooks reference
Claude Code CLI · in the page
hooks
…e, PermissionRequest, PostToolUse, PostToolUseFailure, PostToolBatch, SubagentStart/Stop, TaskCreated, TaskCompleted), and Stop or StopFailure, followed by TeammateIdle, PreCompact, PostCompact, and S…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…| | `SubagentStart` | When a subagent is spawned…
Plugins reference
Claude Code CLI · in the page
plugins-reference
…| | `SubagentStart` | When a subagent is spawned…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…dentifier using lowercase letters and hyphens. [Hooks](/docs/en/hooks#subagentstart) receive this value as `agent_type`. The filename doesn't have to match. Names can't contain `:`, which is reserved…