mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 21:05:51 +00:00
18 lines
529 B
TypeScript
18 lines
529 B
TypeScript
import { isEnvTruthy } from './envUtils.js'
|
|
|
|
/**
|
|
* 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.).
|
|
*
|
|
* Fork build: enabled by default. Can be disabled via
|
|
* CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=0 if needed.
|
|
*/
|
|
export function isAgentSwarmsEnabled(): boolean {
|
|
if (isEnvTruthy(process.env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS_DISABLED)) {
|
|
return false
|
|
}
|
|
|
|
return true
|
|
}
|