🧩SystemMessage
Also known as SDK system message, init message, Claude Agent SDK SystemMessage
The message for session events. The first one says how the session was set up.
Think of it like
It is like the voice that says the show is about to start.
Example
Leo logs the first system message to see which tools and model his agent got.
Why it matters
The init message tells you what the session is working with before any work starts.
Definition
Common mistake
Key takeaways
- 1Session events. By subtype.
- 2init first. Setup facts.
- 3compact_boundary. After compaction.