Skip to content

The Complete List: All Build Flags & Runtime Gates

This is the comprehensive reference for every gating mechanism we identified in the Claude Code source code. These fall into four categories: build-time feature flags, GrowthBook runtime flags, environment variables, and API beta headers.

These flags are evaluated at build time via feature() calls that reference definitions from bun:bundle. If a flag is not enabled in the build configuration, the associated code is tree-shaken out of the final bundle entirely — it does not exist at runtime.

Flag NameCategoryDescriptionLikely Ant-Only?
AGENT_MEMORY_SNAPSHOTMemoryAgent memory persistence snapshotsYes
AGENT_TRIGGERSSchedulingScheduled agent executionYes
AGENT_TRIGGERS_REMOTESchedulingRemote agent schedulingYes
ANTI_DISTILLATION_CCSecurityAnti-distillation content classifierYes
AUTO_THEMEUIAutomatic theme detectionNo
AWAY_SUMMARYUXAway mode summarizationYes
BG_SESSIONSSessionsBackground session supportYes
BRIDGE_MODEInfrastructureRemote bridge protocolYes
BUDDY / BUDDIESUXAI coaching companionYes
BUILDING_CLAUDE_APPSSkillsClaude API skillNo
BUILTIN_EXPLORE_PLAN_AGENTSAgentsBuilt-in agent templatesYes
CCR_MIRRORInfrastructureCloud compute resource mirroringYes
CHAT_MODESUIChat mode selection UIYes
CONNECTOR_TEXTProcessingConnector text summarizationYes
CONTEXT_COLLAPSEPerformanceContext window optimizationYes
COORDINATOR_MODEAgentsMulti-worker orchestrationYes
DAEMONInfrastructureBackground daemon modeYes
DIRECT_CONNECTInfrastructureDirect WebSocket connectionsYes
ENHANCED_TELEMETRY_BETAAnalyticsExtended analyticsYes
FORK_SUBAGENTAgentsCache-optimized subagent forkingYes
HISTORY_PICKER / HISTORY_SNIPSessionsSession history featuresYes
KAIROSBackground TasksAsync/background task systemYes
KAIROS_BRIEFBackground TasksBrief formattingYes
KAIROS_CHANNELSBackground TasksMCP channel notificationsYes
KAIROS_DREAMMemoryAuto-memory consolidationYes
KAIROS_GITHUB_WEBHOOKSIntegrationsGitHub webhook integrationYes
KAIROS_PUSH_NOTIFICATIONNotificationsPush notificationsYes
MCP_RICH_OUTPUTMCPRich MCP tool outputYes
MCP_SKILLSMCPMCP tool skills integrationYes
MESSAGE_ACTIONSUIMessage action buttonsYes
NATIVE_CLIENT_ATTESTATIONSecurityClient attestation verificationYes
NATIVE_CLIPBOARD_IMAGEUINative clipboard image supportNo
PROACTIVEAgentsAutonomous executionYes
PROMPT_CACHE_BREAK_DETECTIONPerformanceDetect prompt cache breaksYes
REACTIVE_COMPACTPerformanceReactive context compactionYes
REVIEW_ARTIFACTReviewArtifact reviewNo
RUN_SKILL_GENERATORSkillsSkill generationNo
SELF_HOSTED_RUNNERInfrastructureSelf-hosted runnerYes
SSH_REMOTEInfrastructureSSH remote executionYes
TRANSCRIPT_CLASSIFIERPermissionsAuto-mode permission classifierYes
ULTRAPLANPlanningUltra-detailed planningYes
ULTRATHINKThinkingExtended thinkingYes
UPLOAD_USER_SETTINGS / DOWNLOAD_USER_SETTINGSSettingsCloud settings syncYes
VERIFICATION_AGENTAgentsCode verification agentYes
VOICE_MODEInputVoice input/outputYes
WEB_BROWSER_TOOLToolsBrowser automationYes

GrowthBook flags (prefixed with tengu_) are evaluated at runtime by querying Anthropic’s feature-flagging service. Even if the code path exists in your build, these flags can enable or disable features server-side based on your user account, organization, or A/B test cohort.

Flag NamePurpose
tengu_amber_flintAgent swarms killswitch
tengu_amber_quartz_disabledVoice mode killswitch
tengu_amber_stoatExplore/Plan agents (default true)
tengu_ant_model_overrideModel override for Anthropic employees
tengu_auto_mode_configAuto-mode configuration (enabled / opt-in / disabled)
tengu_ccr_bridge_multi_sessionMulti-session bridge
tengu_hive_evidenceVerification agent
tengu_harborMCP channels/notifications
tengu_kairos_cronScheduled agent execution
tengu_kairos_cron_durableDurable scheduled task state
tengu_malort_pedwayComputer Use MCP configuration
tengu_max_version_configVersion killswitch
tengu_onyx_ploverAuto-dream configuration
tengu_otk_slot_v1One-time key slots
tengu_remote_backendRemote TUI backend
tengu_scratchScratchpad durable storage
tengu_sedge_lanternAway summaries
tengu_session_memorySession-to-session memory
tengu_sessions_elevated_auth_enforcementTrusted device requirement
tengu_slim_subagent_claudemdSkip CLAUDE.md for read-only agents
tengu_surreal_daliRemote trigger tool
tengu_tool_pearStrict tool use
tengu_transcript_classifierAuto-mode classifier
tengu_willow_modeContext optimization (off / light / full)

These environment variables can be set in your shell before launching Claude Code. Some are build-time gates, others are runtime toggles.

VariablePurpose
USER_TYPE=antBuild-time Anthropic employee gate
CLAUDE_CODE_COORDINATOR_MODE=1Enable coordinator mode
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1Enable agent teams
CLAUDE_CODE_PROACTIVE=1Enable proactive mode
CLAUDE_CODE_UNDERCOVER=1Force undercover mode
CLAUDE_CODE_TEAMMATE_COMMAND=/pathCustom teammate binary
CLAUDE_CODE_SIMPLE=1Simple mode for coordinator
CLAUDE_CODE_PLAN_MODE_REQUIRED=1Require plan mode
CLAUDE_INTERNAL_FC_OVERRIDES='{}' Feature flag overrides (JSON)
CLAUDE_CODE_GB_BASE_URL=...GrowthBook override
CLAUDE_CODE_TERMINAL_RECORDING=1Terminal recording
MONOREPO_ROOT_DIRAnthropic monorepo detection
ALLOW_ANT_COMPUTER_USE_MCPOverride computer use gate

These HTTP headers are sent to the Anthropic API to unlock server-side beta features. They are only included when running the internal (Ant) build.

Header ConstantPurpose
CLI_INTERNAL_BETA_HEADERInternal CLI beta access — unlocks Ant-only API capabilities
SUMMARIZE_CONNECTOR_TEXT_BETA_HEADERAnti-distillation connector text processing
AFK_MODE_BETA_HEADERAway-from-keyboard mode — signals the user is not actively watching

These headers are particularly important because even if you enable the client-side code paths, the API server will reject requests that include these headers unless your account is authorized. This is a server-side gate that cannot be bypassed by modifying the client.