Download src/utils/agentSwarmsEnabled.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/utils/agentSwarmsEnabled.ts
- Command line
-
hf download hf://chenbhao/codev@afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/utils/agentSwarmsEnabled.ts
-
curl -L -o agentSwarmsEnabled.ts https://huggingface.co/chenbhao/codev/resolve/afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/utils/agentSwarmsEnabled.ts
494 Bytes
| /** | |
| * 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 | |
| } | |