{"name":"--include-hook-events","slug":"include-hook-events","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Include hook lifecycle events in the output stream. `SessionStart` and `Setup` hook events are always included and don't need this flag. Some hook events, such as `Notification`, `SessionEnd`, `PreCompact`, and `PostCompact`, never produce a `hook_started` event, even with this flag. For those events, Claude Code still emits `hook_progress` while a command hook that runs for more than a second produces output, and emits `hook_response` only when a [hook that runs in the background](\/docs\/en\/hooks#run-hooks-in-the-background) finishes. Requires `--output-format stream-json`","description_source":"docs","described_by":{"doc":"claude-code\/cli-reference","title":"CLI reference"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.89","anchor":"changes","heading":"","line":null,"released_at":"2026-03-31 23:32:40","reason":"found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"cli-reference","title":"CLI reference","documented":true}],"docs_total":1,"gates":[],"related":[{"name":"--include-partial-messages","slug":"include-partial-messages","description":"Include partial streaming events in output. Requires `--print` and `--output-format stream-json`"},{"name":"--includes","slug":"includes","description":"Agent worktrees now ignore repo-supplied filter programs, and refuse to build when git config looks risky."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/include-hook-events","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}