---
published: true
id: session-start
title: SessionStart
description: Knowledge captured in João Lopes' learning graph.
tags:
- ai-engineering
- claude-code
- hooks
locale: en
resource: https://joaolopes.dev.br/knowledge/concepts/en/session-start/
created: '2026-03-21'
---

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

## 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.

## Source
- [Claude Code Docs](https://code.claude.com/docs/en/overview)

## Related
- [Session](/concepts/en/session.md)
- [Skills](/concepts/en/skills.md)
- [Hooks](/concepts/en/hooks.md)
