{
"id": "hook-surface:claude.task-created",
"_kind": "HookSurface",
"_file": "channels-hooks/hook-surfaces/native/claude-code-extended-hooks.yaml",
"_cluster": "channels-hooks",
"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\ndecision: \"block\" rolls back the creation. Used to enforce task-shape\npolicy (e.g. require a description, deny tasks above N words, etc.).\n"
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "agent-runtime-impl:claude-code.runtime@1.x",
"to": "hook-surface:claude.task-created",
"kind": "exposes",
"attributes": {}
}
]
}