Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

27 pages for sessionstart.

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

How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …tinguishes them: * `"init"`: session metadata for the run. When a `SessionStart` or `Setup` hook runs during session startup, its [hook lifecycle messages](/docs/en/agent-sdk/typescript.md#sdkhooks… Use Claude Code features in the SDK Claude Code CLI · in the page agent-sdk/claude-code-features …eScript SDK supports additional hook events beyond Python, including `SessionStart`, `SessionEnd`, `TeammateIdle`, and `TaskCompleted`. See the [hooks guide](/docs/en/agent-sdk/hooks.md) for the full… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …ials. See [PermissionDenied](/docs/en/hooks.md#permissiondenied) | | `SessionStart` | No | Yes | Session initialization | Initialize logging and telemetry | | `SessionEnd` | No | Yes | Session termina… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …r Claude Code config directory. The session's working directory, its `SessionStart` hooks, its stdio MCP servers, and its CLAUDE.md and git context wait for the claim. A spare holds roughly 230 to 260… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …d nothing on screen says so. This includes a prompt you typed while [`SessionStart` hooks](/docs/en/hooks#sessionstart) were still running In both cases the text you typed is kept in [prompt history]… Claude Code changelog Claude Code CLI · in the page changelog …rt-up hooks" spinner status, with a screen reader announcement, while SessionStart or Setup hooks run * \[Claude Tag] Added public Slack channels Claude hasn't joined to the Claude Tag admin Add place… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …e limits proportionately. * **Time limits**: commands Claude runs and SessionStart hooks have default timeouts you can change, and a setup script is cached only when it finishes in roughly five minute… CLI reference Claude Code CLI · in the page cli-reference …| Run [Setup](/docs/en/hooks#setup) and `SessionStart` hooks, then exit without starting a conversation… Configure cloud environments Claude Code CLI · in the page cloud-environments …t has known [proxy compatibility issues](#install-dependencies-with-a-sessionstart-hook) for package fetching. To get the versions of most of the tools in this table, ask Claude to run `check-tools`… Explore the context window Claude Code CLI · in the page context-window …oks added earlier | Summarized with the rest of the conversation | | [SessionStart hooks](/docs/en/hooks-guide#re-inject-context-after-compaction) that match the `compact` source | Claude Code runs th… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …on, Claude Code exports the variable before any hook runs, including `SessionStart`. On macOS and Linux, Claude Code restricts the socket to your operating-system user. On native Windows, it instead… Extend Claude Code Claude Code CLI · in the page features-overview …ycle events](/docs/en/hooks.md#hook-events) such as `PostToolUse` or `SessionStart` | You typing `/<name>`, or Claude matching the description to your task | | **Determinism** | Fires on its event wit… Run Claude Code programmatically Claude Code CLI · in the page headless …/en/agent-sdk/typescript#sdkhookstartedmessage), while a configured [`SessionStart`](/docs/en/hooks#sessionstart) or [`Setup`](/docs/en/hooks#setup) hook runs. These stream as the hook produces them.… Hooks reference Claude Code CLI · in the page hooks …return a decision. Events fall into three cadences: * per session: `SessionStart` and `SessionEnd` * per turn: `UserPromptSubmit`, `Stop`, and `StopFailure` * on every tool call inside the agentic l… Automate actions with hooks Claude Code CLI · in the page hooks-guide …e conversation to free space. This can lose important details. Use a `SessionStart` hook with a `compact` matcher to re-inject critical context after every compaction. Claude Code adds plain text you… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …ree has no signal about which plugin that area's owners maintain. A [`SessionStart` hook](/docs/en/hooks#sessionstart) can close that gap, since Claude Code adds plain text the hook prints to stdout t… How Claude remembers your project Claude Code CLI · in the page memory …delete the symlink. Either way Claude reads the content once. * **A `SessionStart` hook that prints `AGENTS.md`**: remove it. Once Claude reads `AGENTS.md` directly, the hook adds a second copy to th… Add components to a plugin Claude Code CLI · in the page plugins/components …gin, so you may not need to install them yourself. When you do, this `SessionStart` hook installs `node_modules` into `${CLAUDE_PLUGIN_DATA}` on first run and again after an update changes `package.js… Draw in the interface with a mod Claude Code CLI · in the page plugins/mods/interface …lue to its default, and `session.start` doesn't fire again. [`classic.SessionStart`](/docs/en/plugins/mods/events#hook-the-settings-hook-events) does fire after each of them, with `e.source` set to `c… Test a mod Claude Code CLI · in the page plugins/mods/test …To test what your mod does next, skip `session.start`, fire `classic.SessionStart` with `source: 'clear'`, and check what your mod draws. This test checks the module from [Load a saved value again a… Troubleshoot a mod Claude Code CLI · in the page plugins/mods/troubleshoot …mods/interface.md#load-a-saved-value-again-after-clear) in a `classic.SessionStart` hook. ## Read the debug log The debug log has a line for every module Claude Code loads or refuses, every hook tha… Catch security issues as Claude writes code Claude Code CLI · in the page security-guidance …Claude's loop. It registers: | Hook event | Purpose | | :- | :- | | `SessionStart` | Bootstrap the plugin's Python environment | | `UserPromptSubmit` | Capture the working-tree baseline that the end-… Self-hosted environments reference Claude Code CLI · in the page self-hosted-environments-reference …| `claude_code_self_hosted_runner_session_start_hook_errors_total` | `SessionStart` hooks that reported an error outcome, one per failing hook execution | | `claude_code_self_hosted_runner_session_idl… Tools reference Claude Code CLI · in the page tools-reference …n/env-vars) to a shell script before launching Claude Code, or use a [SessionStart hook](/docs/en/hooks.md#persist-environment-variables) to populate it dynamically. ### Timeout and output limits Ea… Use Claude Code in VS Code Claude Code CLI · in the page vs-code …ompacting the conversation. If you send a prompt while the session's [SessionStart](/docs/en/hooks.md#sessionstart) hooks are still running, your screen reader also says "Running start-up hooks." * **… Get started with Claude Code in the cloud Claude Code CLI · in the page web-quickstart …lly. * Move the largest downloads out of the setup script and into a [SessionStart hook](/docs/en/cloud-environments.md#setup-scripts-vs-sessionstart-hooks) that launches them in the background, so th… Week 22 · May 25–29, 2026 Claude Code CLI · in the page whats-new/2026-w22 …d-skills` command re-scans skill directories without restarting, and `SessionStart` hooks can return `reloadSkills: true` to make skills they install available in the same sessionSkills and commands c…
Feedback