File size: 494 Bytes
064bfd6
 
 
 
 
9086e0a
 
064bfd6
 
9086e0a
 
064bfd6
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * Centralized runtime check for agent teams/teammate features.
 * This is the single gate that should be checked everywhere teammates
 * are referenced (prompts, code, tools isEnabled, UI, etc.).
 *
 * Free-code: always enabled by default.
 * Set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=0 to explicitly disable.
 */
export function isAgentSwarmsEnabled(): boolean {
  // Explicit opt-out
  if (process.env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS === '0') {
    return false
  }

  return true
}