Artifact 9eb60141b9d943c8a45841466f12e75b671adf46043d002cb580aa9011f1c041:
- File docs/reference/hook-events.md — part of check-in [2eaab55528] at 2026-11-22 10:46:48 on branch keel-lapse — keel-lapse: tiers check 5, docs, fault point rename (user: dmestas, size: 799) [annotate] [blame] [check-ins using] [more...]
Hook events
The Claude Code hook events pic fires. How hooks are configured and what their output does is in hooks.
| 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 |
PreRequest |
before a reply request; answered by pic's compaction component, which may compact first; no command hook runs | no |
Stop |
when a reply ends with no tool calls | yes |
SessionEnd |
when a conversation closes | no |