Source Intelligence
Sweep 28 Aug 2026 ยท 16:06Z Build v2.1.251 479 read Stable v2.1.236 Latest v2.1.250 Next v2.1.251 Feeds RSS JSON llms.txt

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.

Search the documentation

20 pages for sessionend.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Events Claude Developer Platform · in the page api/beta/sessions/events …format format: date-time - `stop_reason: BetaManagedAgentsSessionEndTurn or BetaManagedAgentsSessionRequiresAction or BetaManagedAgentsSessionRetriesExhausted or BetaManagedAgentsSessionBu… List Events Claude Developer Platform · in the page api/beta/sessions/events/list …format format: date-time - `stop_reason: BetaManagedAgentsSessionEndTurn or BetaManagedAgentsSessionRequiresAction or BetaManagedAgentsSessionRetriesExhausted or BetaManagedAgentsSessionBu… Stream Events Claude Developer Platform · in the page api/beta/sessions/events/stream …format format: date-time - `stop_reason: BetaManagedAgentsSessionEndTurn or BetaManagedAgentsSessionRequiresAction or BetaManagedAgentsSessionRetriesExhausted or BetaManagedAgentsSessionBu… Threads Claude Developer Platform · in the page api/beta/sessions/threads …format format: date-time - `stop_reason: BetaManagedAgentsSessionEndTurn or BetaManagedAgentsSessionRequiresAction or BetaManagedAgentsSessionRetriesExhausted or BetaManagedAgentsSessionBu… Events Claude Developer Platform · in the page api/beta/sessions/threads/events …format format: date-time - `stop_reason: BetaManagedAgentsSessionEndTurn or BetaManagedAgentsSessionRequiresAction or BetaManagedAgentsSessionRetriesExhausted or BetaManagedAgentsSessionBu… List Session Thread Events Claude Developer Platform · in the page api/beta/sessions/threads/events/list …format format: date-time - `stop_reason: BetaManagedAgentsSessionEndTurn or BetaManagedAgentsSessionRequiresAction or BetaManagedAgentsSessionRetriesExhausted or BetaManagedAgentsSessionBu… Stream Session Thread Events Claude Developer Platform · in the page api/beta/sessions/threads/events/stream …format format: date-time - `stop_reason: BetaManagedAgentsSessionEndTurn or BetaManagedAgentsSessionRequiresAction or BetaManagedAgentsSessionRetriesExhausted or BetaManagedAgentsSessionBu… events-and-streaming Claude Developer Platform · in the page managed-agents/events-and-streaming …} } else if (idle.StopReason?.Value is BetaManagedAgentsSessionEndTurn) { break; } } ``` ```go Go stream := client.Beta.Sessions.Events.StreamEvents(ctx,… migration Claude Developer Platform · in the page managed-agents/migration …dleEvent idle && idle.StopReason?.Value is BetaManagedAgentsSessionEndTurn) { break; } } ``` ```go Go client := anthropic.NewClient() ctx := context.Backgrou… Use Claude Code features in the SDK Claude Code CLI · in the page agent-sdk/claude-code-features …orts additional hook events beyond Python, including `SessionStart`, `SessionEnd`, `TeammateIdle`, and `TaskCompleted`. See the [hooks guide](/docs/en/agent-sdk/hooks) for the full event compatibility… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …| | `SessionEnd` | No | Yes | Session termination… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …nd don't need this option. Some hook events, such as `Notification`, `SessionEnd`, `PreCompact`, and `PostCompact`, never produce an `SDKHookStartedMessage`, even with this option. For those events, C… CLI reference Claude Code CLI · in the page cli-reference …and don't need this flag. Some hook events, such as `Notification`, `SessionEnd`, `PreCompact`, and `PostCompact`, never produce a `hook_started` event, even with this flag. For those events, Claude… Debug your configuration Claude Code CLI · in the page debug-your-config …up logic never runs at session end | No `SessionEnd` hook configured… Run Claude Code programmatically Claude Code CLI · in the page headless …ee of any Bash command that is still running. Claude Code then runs [`SessionEnd` hooks](/docs/en/hooks#sessionend) and exits. While exiting, Claude Code starts no new tool call, sends no new model re… Hooks reference Claude Code CLI · in the page hooks …ts fall into three cadences: * once per session: `SessionStart` and `SessionEnd` * once per turn: `UserPromptSubmit`, `Stop`, and `StopFailure` * on every tool call inside the agentic loop: `PreToolU… Automate actions with hooks Claude Code CLI · in the page hooks-guide …| | `SessionEnd` | When a session terminates… Plugins reference Claude Code CLI · in the page plugins-reference …| | `SessionEnd` | When a session terminates… Self-hosted environments reference Claude Code CLI · in the page self-hosted-environments-reference …on ends, before force-killing it. Raise the value if the child's own `SessionEnd` hooks need more time.… Manage sessions Claude Code CLI · in the page sessions …ne commands](/docs/en/statusline#available-data) receive as input. A `SessionEnd` hook can archive the transcript when a session ends. * **Embed Claude in a TypeScript or Python app**: use the [Agent…