CLAUDE_CODE_FORK_SUBAGENT Env Var
- Entity ID:
ent-20260423-r31a000000032 - Type:
concept - Scope:
private - Status:
active
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
- v2.1.117 gates external fork-subagent builds behind CLAUDE_CODE_FORK_SUBAGENT=1
Relations
- CLAUDE_CODE_FORK_SUBAGENT Env Var --[introduced_in]--> v2.1.117
- CLAUDE_CODE_FORK_SUBAGENT Env Var --[enables]--> Forked Agent Pattern