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

5 pages for taskcreated.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …le` | No | Yes | Teammate becomes idle | Reassign work or notify | | `TaskCreated` | No | Yes | A task is created via the `TaskCreate` tool | Enforce task naming conventions | | [`TaskCompleted`](/doc… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …onRequest" | "PermissionDenied" | "Setup" | "TeammateIdle" | "TaskCreated" | "TaskCompleted" | "Elicitation" | "ElicitationResult" | "ConfigChange" | "DirectoryAdded" | "WorktreeCr… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …Exit with code 2 to send feedback and keep the teammate working. * [`TaskCreated`](/docs/en/hooks#taskcreated): runs when a task is being created. Exit with code 2 to prevent creation and send feedba… Hooks reference Claude Code CLI · in the page hooks …, PostToolUse, PostToolUseFailure, PostToolBatch, SubagentStart/Stop, TaskCreated, TaskCompleted), and Stop or StopFailure, followed by TeammateIdle, PreCompact, PostCompact, and SessionEnd, with Elic… Automate actions with hooks Claude Code CLI · in the page hooks-guide …ubagent is spawned | | `SubagentStop` | When a subagent finishes | | `TaskCreated` | When a task is being created via `TaskCreate` | | `TaskCompleted` | When a task is being marked as completed | | `S…
Feedback