{"version":"2.1.334","anchor":"sessionstart-hook-tracks-mod-written-initial-messages","canonical_anchor":"sessionstart-hook-tracks-mod-written-initial-messages","heading":"SessionStart hooks now record whether a mod wrote the first message","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/sessionstart-hook-tracks-mod-written-initial-messages","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### SessionStart hooks now record whether a mod wrote the first message\n\nWhen a `SessionStart` hook runs, Claude Code now notes whether a mod wrote the session's first user message\n\n**What**\n\nA hook is a script or command that runs at a set moment. A `SessionStart` hook runs when a session begins or resumes. When one runs, Claude Code now notes whether a mod wrote the first user message of the session. A mod is an add-on run by Claude Code's plugin system.\n\n**Why**\n\nThis is part of Claude Code's runtime for plugin mods. It records who wrote the opening message, so a session started by a mod can be told apart from one you started yourself.\n\n- Area: Hooks\n- Names: `SessionStart`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}