II.
HookSurface overview
Reference · livehook-surface:claude.task-created
TaskCreated (Claude Code) overview
Fires when a task is being created via the TaskCreate tool. Exit 2 or decision: "block" rolls back the creation. Used to enforce task-shape policy (e.g. require a description, deny tasks above N words, etc.).
Attributes
eventName
TaskCreated (Claude Code)
displayName
TaskCreated (Claude Code)
kind
native
originVendor
Anthropic
direction
pre
blocking
true
family
in-process
payloadSchema
type
object
required
- hook_event_name
- task_description
properties
hook_event_name
type
string
const
TaskCreated
task_description
type
string
description
Fires when a task is being created via the TaskCreate tool. Exit 2 or
decision: "block" rolls back the creation. Used to enforce task-shape
policy (e.g. require a description, deny tasks above N words, etc.).
Outgoing edges
None.
Incoming edges
exposes1
- agent-runtime-impl:claude-code.runtime@1.x·AgentRuntimeImplClaude Code Runtime (1.x)
maps_hook1
- hook-mapping:claude-task-created·HookMapping