Skip to main content

Module hook

Module hook 

Source

Modules§

config
executor
json_config
Hooks JSON configuration loading — mirrors the MCP config pattern.

Structs§

HookConfig
A single hook definition from the user’s configuration.
HookContext
Context passed to a hook command via stdin as JSON.
UserPromptSubmitPayload
CC-compatible payload sent to a UserPromptSubmit hook over stdin (serialized as JSON). Field names match Claude Code’s spec verbatim so existing CC plugin scripts work unchanged.

Enums§

HookEvent
Events in the agent lifecycle that can trigger hooks.
PreHookResult
Result returned by a pre-tool-use hook to control tool execution.
UserPromptHookResult
Result of running all UserPromptSubmit hooks for a single user message.