Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v1.0.85 Home All releases olderv1.0.84 v1.0.86newer
Claude Code v1.0.85

SessionEnd Hook Event

What: New hook event that fires when Claude Code shuts down, enabling cleanup actions How to use:

# Configure in your hooks file to run cleanup on exit:
# Hook will receive: {hook_event_name: "SessionEnd", reason: "logout" | "other"}

Details:

  • Triggers before Claude Code exits
  • Provides shutdown reason (logout vs other termination)
  • Allows external programs to perform cleanup
  • 2-second timeout ensures quick shutdown

See this entry in the whole of v1.0.85 →