SessionEnd
A Claude Code hook event, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
What it is
When a session terminates
Anthropic's own wording. Read off Hooks reference, captured 2026-08-28.
Presence across releases
The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Changelog entries naming it
-
v2.1.236Hooks and Ctrl-C go quiet once shutdown has started
Once you quit, hooks stop firing except SessionEnd and Ctrl-C no longer aborts the request.
named in this entry
-
v2.1.236Shutdown seals transcript writes and gives SessionEnd hooks more time
SessionEnd hooks get five seconds instead of 3.5, and the transcript is sealed at exit.
named in this entry
-
v2.1.234SessionEnd hooks lose the
bypass_permissions_disabledreasonSessionEnd hooks no longer see a bypass_permissions_disabled reason, since nothing can end your session that way.
named in this entry
Documentation pages
- Hooks reference reference table Claude Code CLI
- Intercept and control agent behavior with hooks reference table Claude Code CLI
- Events mentions it Claude Developer Platform
- List Events mentions it Claude Developer Platform
- Stream Events mentions it Claude Developer Platform
- Threads mentions it Claude Developer Platform
- Events mentions it Claude Developer Platform
- List Session Thread Events mentions it Claude Developer Platform
- Stream Session Thread Events mentions it Claude Developer Platform
- events-and-streaming mentions it Claude Developer Platform
- migration mentions it Claude Developer Platform
- Use Claude Code features in the SDK mentions it Claude Code CLI
- Agent SDK reference - TypeScript mentions it Claude Code CLI
- CLI reference mentions it Claude Code CLI
A reference table page is one whose own table defines this name, and it is where the description above came from. A page that mentions it carries the name somewhere in its text and may say nothing about it at all. Every page carrying it.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the hook event does. All hook events.