Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

9 pages for subagentstop.

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 …shes | Validate the result, save session state | | `SubagentStart` / `SubagentStop` | When a subagent spawns or completes | Track and aggregate parallel task results | | `PreCompact` | Before context… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …s | Yes | Subagent initialization | Track parallel task spawning | | `SubagentStop` | Yes | Yes | Subagent completion | Aggregate results from parallel tasks | | `PreCompact` | Yes | Yes | Conversatio… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …rompt is submitted "Stop", # Called when stopping execution "SubagentStop", # Called when a subagent stops "PreCompact", # Called before message compaction "Notification", # Called… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …| "SessionEnd" | "Stop" | "StopFailure" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact" | "PreModelSwitch" | "PostModelSwitch" | "PermissionRequest" | "Permissio… Claude Code changelog Claude Code CLI · in the page changelog …wing what they should block * Improved how `prompt` hooks on Stop and SubagentStop written as instructions (such as "Carry on if the build is broken") are judged, so Claude is less likely to stop earl… Hooks reference Claude Code CLI · in the page hooks …xt is displayed | | `SubagentStart` | When a subagent is spawned | | `SubagentStop` | When a subagent finishes | | `TaskCreated` | When a task is being created via `TaskCreate` | | `TaskCompleted` | W… Automate actions with hooks Claude Code CLI · in the page hooks-guide …xt is displayed | | `SubagentStart` | When a subagent is spawned | | `SubagentStop` | When a subagent finishes | | `TaskCreated` | When a task is being created via `TaskCreate` | | `TaskCompleted` | W… Create custom subagents Claude Code CLI · in the page sub-agents …e same way they do in the main conversation, and `SubagentStart` and `SubagentStop` fire when a subagent starts or finishes Hooks from [settings files, managed policy settings, and plugins](/docs/en/… Week 23 · June 1–5, 2026 Claude Code CLI · in the page whats-new/2026-w23 …orks, and the keyword is highlighted in violet in the prompt[Stop and SubagentStop hooks](/docs/en/hooks.md) can return `hookSpecificOutput.additionalContext` to give Claude feedback and keep the turn…
Feedback