Search the documentation
3 pages for claude_code_child_session.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Environment variables
Claude Code CLI · in the page
env-vars
…rather than inside a stdio MCP server that Claude Code started, use `CLAUDE_CODE_CHILD_SESSION` instead…
Error reference
Claude Code CLI · in the page
errors
…| | `Transcript saving is off — inherited CLAUDE_CODE_CHILD_SESSION marker`…
Recommend your plugin from your CLI
Claude Code CLI · in the page
plugin-hints
…and for [hook](/docs/en/hooks) commands. From v2.1.172 it also sets [`CLAUDE_CODE_CHILD_SESSION`](/docs/en/env-vars) to `1` in those same subprocesses. When your CLI sees one of these variables, it wr…