II.
HookSurface overview
Reference · livehook-surface:claude.user-prompt-submit
UserPromptSubmit (Claude) overview
Claude Code's UserPromptSubmit hook. Fires when the user submits a prompt; can rewrite or block the prompt.
Attributes
eventName
UserPromptSubmit (Claude)
displayName
UserPromptSubmit (Claude)
kind
native
originVendor
Anthropic
direction
pre
blocking
true
family
shell-hook
description
Claude Code's UserPromptSubmit hook. Fires when the user submits
a prompt; can rewrite or block the prompt.
Outgoing edges
canonicalized_to1
- hook-surface:user-prompt-submit·HookSurfaceUserPromptSubmit (canonical)
emits_hook1
- agentVersion:claude:ge-0-0-0·AgentVersionClaude Code
Incoming edges
exposes1
- agent-runtime-impl:claude-code.runtime@1.x·AgentRuntimeImplClaude Code Runtime (1.x)
maps_hook1
- hook-mapping:claude-user-prompt-submit-native·HookMapping