Documentation
¶
Overview ¶
Package hook implements the "claude hook" subcommand tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
Setup setupCmd `cmd:"setup" help:"Run explicit Claude Code setup or maintenance work."`
SessionStart sessionStartCmd `cmd:"session-start" help:"Inject context when a session begins or resumes."`
SessionEnd sessionEndCmd `cmd:"session-end" help:"Record session termination."`
InstructionsLoaded instructionsLoadedCmd `cmd:"instructions-loaded" help:"Record when a CLAUDE.md or rules file is loaded."`
UserPromptSubmit userPromptSubmitCmd `cmd:"user-prompt-submit" help:"Validate or annotate user prompts before processing."`
UserPromptExpansion userPromptExpansionCmd `cmd:"user-prompt-expansion" help:"Validate or annotate slash-command prompt expansions."`
MessageDisplay messageDisplayCmd `cmd:"message-display" help:"Rewrite assistant message text before display."`
PreToolUse preToolUseCmd `cmd:"pre-tool-use" help:"Allow, deny, or modify tool calls before execution."`
PostToolUse postToolUseCmd `cmd:"post-tool-use" help:"Format files after successful write or edit tool calls."`
PostToolUseFailure postToolUseFailureCmd `cmd:"post-tool-use-failure" help:"Record context after a tool call fails."`
PostToolBatch postToolBatchCmd `cmd:"post-tool-batch" help:"Inject context after a batch of parallel tool calls resolves."`
PermissionRequest permissionRequestCmd `cmd:"permission-request" help:"Auto-approve or deny permission prompts."`
PermissionDenied permissionDeniedCmd `cmd:"permission-denied" help:"Record or retry auto-mode permission denials."`
Notification notificationCmd `cmd:"notification" help:"Record agent notifications."`
SubagentStart subagentStartCmd `cmd:"subagent-start" help:"Inject context when a subagent is spawned."`
SubagentStop subagentStopCmd `cmd:"subagent-stop" help:"Allow or block subagent termination."`
Stop stopCmd `cmd:"stop" help:"Allow or block agent turn completion."`
StopFailure stopFailureCmd `cmd:"stop-failure" help:"Record API errors that ended a turn."`
TaskCreated taskCreatedCmd `cmd:"task-created" help:"Validate or block task creation."`
TaskCompleted taskCompletedCmd `cmd:"task-completed" help:"Validate or block task completion."`
TeammateIdle teammateIdleCmd `cmd:"teammate-idle" help:"Decide whether an idle teammate should continue."`
ConfigChange configChangeCmd `cmd:"config-change" help:"Allow or block configuration changes."`
CwdChanged cwdChangedCmd `cmd:"cwd-changed" help:"React to working directory changes."`
FileChanged fileChangedCmd `cmd:"file-changed" help:"React to watched file changes on disk."`
WorktreeCreate worktreeCreateCmd `cmd:"worktree-create" help:"Provide a custom worktree path."`
WorktreeRemove worktreeRemoveCmd `cmd:"worktree-remove" help:"Record worktree removal."`
PreCompact preCompactCmd `cmd:"pre-compact" help:"Record before context compaction begins."`
PostCompact postCompactCmd `cmd:"post-compact" help:"Record after context compaction completes."`
Elicitation elicitationCmd `cmd:"elicitation" help:"Accept, decline, or cancel MCP user input requests."`
ElicitationResult elicitationResultCmd `cmd:"elicitation-result" help:"Validate or modify MCP elicitation responses."`
}
Cmd is the Kong command group for "scut claude hook".
Click to show internal directories.
Click to hide internal directories.