Automate actions with hooks changedhooks-guide
Nearest release: v2.1.288, published 11 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 3 Oct 2026 05:33 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Oct 2026 05:37 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line
479
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits61to this page, all time
The whole hunk
from line 479, old and new numbered
/
from line 479
479479| :- | :- |
480480| `SessionStart` | When a session begins or resumes |
481481| `Setup` | When you start Claude Code with `--init-only`, or with `--init` or `--maintenance` in `-p` mode. For one-time preparation in CI or scripts |
482| `UserPromptSubmit` | When you submit a prompt, before Claude processes it |
482| `UserPromptSubmit` | When a prompt is submitted, before Claude processes it. Also fires on [turns Claude Code starts on its own](/docs/en/hooks#userpromptsubmit) |
483483| `UserPromptExpansion` | When a user-typed command expands into a prompt, before it reaches Claude. Can block the expansion |
484484| `PreToolUse` | Before a tool call executes. Can block it |
485485| `PermissionRequest` | When a tool call needs a permission decision |
No line in this hunk matches that.