⌨️SessionStart Hook
Also known as SessionStart
The event when a session starts. It can load notes for Claude.
Think of it like
It is like a note on the fridge. You read it as the day starts.
Example
Jack's SessionStart hook prints the last five commits. Claude starts each session knowing what changed.
Why it matters
Definition
Example code
bash
#!/bin/bash
# show Claude the last five commits at the start
git log --oneline -5Common mistake
Key takeaways
- 1Start or resume. Five sources.
- 2Output is context. Plain text works.
- 3Keep it fast. Each start.