Modules§
- config
- executor
- json_
config - Hooks JSON configuration loading — mirrors the MCP config pattern.
Structs§
- Hook
Config - A single hook definition from the user’s configuration.
- Hook
Context - Context passed to a hook command via stdin as JSON.
- User
Prompt Submit Payload - CC-compatible payload sent to a
UserPromptSubmithook over stdin (serialized as JSON). Field names match Claude Code’s spec verbatim so existing CC plugin scripts work unchanged.
Enums§
- Hook
Event - Events in the agent lifecycle that can trigger hooks.
- PreHook
Result - Result returned by a pre-tool-use hook to control tool execution.
- User
Prompt Hook Result - Result of running all
UserPromptSubmithooks for a single user message.