Search the documentation
5 pages for --forward-subagent-text.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…arding in stream-json: subagents spawned at depth-2+ now appear when `--forward-subagent-text` is set, keyed by their spawning Agent `tool_use` id * Fixed `claude -p` text output dropping the answer…
CLI reference
Claude Code CLI · in the page
cli-reference
…ion` | | `--forward-subagent-text` | Emit [subagent](/docs/en/sub-agents) text and thinking blocks in the output strea…
Environment variables
Claude Code CLI · in the page
env-vars
…de -p --output-format stream-json` output, the same behavior as the [`--forward-subagent-text`](/docs/en/cli-reference#cli-flags) flag. Use the variable when a harness invokes `claude` and can't pass…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…Code emits only subagent `tool_use` and `tool_result` blocks. Pass [`--forward-subagent-text`](/docs/en/cli-reference#cli-flags) or set [`CLAUDE_CODE_FORWARD_SUBAGENT_TEXT`](/docs/en/env-vars) to als…
Week 29 · July 13–17, 2026
Claude Code CLI · in the page
whats-new/2026-w29
…quences such as <code>jj</code> to Escape in vim mode</div> <div>`--forward-subagent-text` and <code>CLAUDE\_CODE\_FORWARD\_SUBAGENT\_TEXT</code> include subagent text and thinking blocks in <a hr…