Environment variables

CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS

Includes session_state_changed messages with the session state in the output stream.

Syntax

CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS

Type to search the reference, templates and lessons.