Skip to content

Command reference

--include-hook-events

Includes hook lifecycle events in the output stream.

FlagsWork and taskscurrent

What the documentation does not say

SessionStart and Setup events come through without it. Some events never produce a hook_started event at all, Notification, SessionEnd, PreCompact, and PostCompact among them, so a watcher waiting for one of those waits forever. Requires --output-format stream-json.