CLAUDE_CODE_FORK_SUBAGENT Env Var

Description

Environment variable gate introduced in v2.1.117: CLAUDE_CODE_FORK_SUBAGENT=1 enables forked subagents on external builds. Fork-subagent (which duplicates the parent's entire conversational context into child agents for parallel exploration of different solution trajectories) was previously production-internal only; the env var opens it to third-party integrations.

Key claims

Relations

Sources

src-20260423-542f02260352