Environment variables

CLAUDE_CODE_CHILD_SESSION

Identifies subprocesses started by Claude Code to distinguish nested sessions from top-level ones.

Syntax

CLAUDE_CODE_CHILD_SESSION

Type to search the reference, templates and lessons.