4 pages for claude_code_forward_subagent_text.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
CLI reference
Claude Code CLI · in the page
cli-reference
…spawns, and of nested forked skills, require v2.1.275 or later. The [`CLAUDE_CODE_FORWARD_SUBAGENT_TEXT`](/docs/en/env-vars) environment variable enables the same behavior. Requires Claude Code v2.1.2…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `CLAUDE_CODE_FORWARD_SUBAGENT_TEXT` | Set to `1` to emit [subagent](/docs/en/sub-agents) text and thinking bloc…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…th [`--forward-subagent-text`](/docs/en/cli-reference#cli-flags) or [`CLAUDE_CODE_FORWARD_SUBAGENT_TEXT`](/docs/en/env-vars)**: the run's text and thinking blocks too, so you can reconstruct each run'…
Week 29 · July 13–17, 2026
Claude Code CLI · in the page
whats-new/2026-w29
…nces such as `jj` to Escape in vim mode`--forward-subagent-text` and `CLAUDE_CODE_FORWARD_SUBAGENT_TEXT` include subagent text and thinking blocks in [stream-json output](/docs/en/headless.md)Session-…