MCPcopy
hub / github.com/codeaashu/claude-code / isForkSubagentEnabled

Function isForkSubagentEnabled

src/tools/AgentTool/forkSubagent.ts:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 * orchestration role and has its own delegation model.
31 */
32export function isForkSubagentEnabled(): boolean {
33 if (feature('FORK_SUBAGENT')) {
34 if (isCoordinatorMode()) return false
35 if (getIsNonInteractiveSession()) return false
36 return true
37 }
38 return false
39}
40
41/** Synthetic agent type name used for analytics when the fork path fires. */
42export const FORK_SUBAGENT_TYPE = 'fork'

Callers 6

resumeAgentBackgroundFunction · 0.85
getPromptFunction · 0.85
AgentTool.tsxFile · 0.85
callFunction · 0.85
getAgentToolSectionFunction · 0.85

Calls 3

featureFunction · 0.85
isCoordinatorModeFunction · 0.85

Tested by

no test coverage detected