Skip to content

concepts

SessionStart

Knowledge captured in João Lopes' learning graph.

A Claude Code hook event type that fires a script each time a new session opens.

↑ Contents

Definition

SessionStart is a hook that triggers when Claude Code enters a repository (init) or periodically during a session (maintenance). It is used to inject skills, rules, or context into the agent before the user types anything. The hook receives JSON data via stdin containing session information and working directory context.

↑ Contents

Source

↑ Contents

Source: OKF Markdown