Skip to content
pi-c Artifact [fe69cb582c]
Login

Artifact [fe69cb582c]

Artifact fe69cb582c79d217efd0077ebe9a28a5e4c290534afc057049a5189846488d55:


# Hook events

The Claude Code hook events pic fires. How hooks are configured and what their output does is in
[hooks](../manual/hooks.md).

| Event | When | Can block |
|---|---|---|
| `SessionStart` | a conversation opens; output becomes context | no |
| `UserPromptSubmit` | before a message is sent; output becomes context | yes |
| `PreToolUse` | before a tool call; `permissionDecision` or exit 2 denies it | yes |
| `PostToolUse` | after a tool call; output becomes context | yes |
| `PreCompact` | before a compaction; output becomes context | no |
| `Stop` | when a reply ends with no tool calls | yes |
| `SessionEnd` | when a conversation closes | no |