Skip to content

Feature gates reference

This page owns the feature-gate taxonomy visible in cli.js: GrowthBook evaluation, tengu_* gates/signals, environment kill switches, managed-policy gates, and CLI/settings gates that switch operational behavior.

Use Telemetry and tracing for telemetry/export behavior and Environment variables reference for canonical env-var names.

Source anchors

Semantic aliasSourceApproximate locationString or symbolMeaning
GrowthBookClientcli.jsline ~129, byte 0xe138cGrowthBookEmbedded feature/experiment client.
FeatureFlagLookupWrappercli.jsline ~253, byte 0x20c503Z$("..."Feature-flag lookup wrapper pattern.
DisableGrowthBookEnvcli.jsline ~432, byte 0x2fe03eDISABLE_GROWTHBOOKEnvironment kill switch for GrowthBook.
DisableCronEnvcli.jsline ~1091, byte 0x4806fdCLAUDE_CODE_DISABLE_CRONCron/scheduled-task kill switch.
KairosCronGatecli.jsline ~1091, byte 0x480583isKairosCronEnabledScheduled-task feature gate wrapper.
CronSchedulerRuntimecli.jsline ~9564, byte 0xcd3ba4createCronSchedulerScheduled-task runtime.
DisableRemoteControlPolicycli.jsline ~185, byte 0x11a7a3disableRemoteControlManaged policy gate for Remote Control.
DisableSkillShellPolicycli.jsline ~185, byte 0x11a8f2disableSkillShellExecutionManaged policy gate for skill/slash shell execution.

Gate taxonomy

flowchart TD
Decision[Runtime decision] --> GB[GrowthBook / tengu feature flags]
Decision --> Env[Environment kill switches]
Decision --> Policy[Managed settings / policy]
Decision --> Cli[CLI flags]
Decision --> Settings[User/project/local settings]
GB --> Behavior[Feature behavior]
Env --> Behavior
Policy --> Behavior
Cli --> Behavior
Settings --> Behavior
Behavior --> Evidence[debug / telemetry evidence]
Gate typeExamplesWhat it controls
GrowthBook/feature flagGrowthBook, Z$("..."), many tengu_* keysExperiments, staged rollout, runtime feature defaults.
Environment kill switchDISABLE_GROWTHBOOK, CLAUDE_CODE_DISABLE_CRON, telemetry/update/context UI env varsCoarse process-level enable/disable decisions.
Managed policy/settingsdisableRemoteControl, disableAllHooks, disableAgentView, disableSkillShellExecution, cleanupPeriodDaysOrganization/admin and persisted configuration controls.
CLI flag--debug, --debug-file, --add-trace-attribute, --no-session-persistence, --agentsPer-invocation behavior.
Provider/env selectorCLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX, CLAUDE_CODE_USE_FOUNDRY, CLAUDE_CODE_USE_ANTHROPIC_AWS, CLAUDE_CODE_USE_MANTLEProvider/auth/reporting paths.

High-signal feature-gate families

The table groups source-visible keys by nearby behavior. It does not claim every opaque tengu_* name is fully decoded.

FamilySource-visible gatesInterpreted scope
Remote / bridge / CCRtengu_ccr_bridge, tengu_remote_backend, tengu_bridge_repl_v2_cse_shim_enabled, tengu_bridge_attestation_enforce, tengu_bridge_attestation_enforce_config, tengu_ccr_v2_send_events_cli, tengu_bridge_requires_action_details, tengu_bridge_system_init, CLAUDE_CODE_REMOTE, disableRemoteControlRemote Control, bridge transport, attestation, event forwarding.
Scheduled tasks / Kairos crontengu_kairos_cron, tengu_kairos_cron_durable, tengu_kairos_loop_dynamic, tengu_kairos_loop_persistent, tengu_kairos_loop_prompt, tengu_kairos_push_notifications, tengu_kairos_input_needed_push, CLAUDE_CODE_DISABLE_CRONCron/scheduled prompt feature family and autonomous-loop behavior.
Agents / background agentstengu_auto_background_agents, tengu_agent_list_attach, tengu_mcp_subagent_prompt, tengu_slim_subagent_claudemd, CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS, CLAUDE_CODE_DISABLE_AGENT_VIEWAgent UI, background agents, subagent prompt/context behavior.
Auto-mode / permission automationtengu_auto_mode_config, tengu_disable_bypass_permissions_mode, tengu_auto_notice_once, policy defaultMode=autoAuto-mode defaults, consent, permission automation.
Tool/runtime securitytengu_streaming_tool_execution2, tengu_harbor_permissions, tengu_destructive_command_warning, tengu_bash_allowlist_strip_all, CLAUDE_CODE_DISABLE_ADVISOR_TOOL, CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOLTool execution mode, warnings, advisory/permission behavior.
MCP/plugins/skillstengu_mcp_directory_visibility, tengu_mcp_directory_bff, tengu_mcp_singleton_unwrap, tengu_skills_dashboard_enabled, tengu_plugin_official_mkt_git_fallback, CLAUDE_CODE_PLUGIN_PREFER_HTTPS, CLAUDE_CODE_PLUGIN_USE_ZIP_CACHE, CLAUDE_CODE_SYNC_PLUGIN_INSTALLMCP discovery, plugin install/update, skills UI.
Context/model behaviorCLAUDE_CODE_DISABLE_1M_CONTEXT, DISABLE_COMPACT, DISABLE_INTERLEAVED_THINKING, USE_API_CONTEXT_MANAGEMENT, CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS, tengu_prompt_cache_1h_config, tengu_prompt_cache_diagnosticsContext window, compaction, thinking, prompt cache, beta flags.
Web/search/fetch adjacenttengu_tool_search_unsupported_models, /api/web/domain_info?domain=Web/domain metadata and model support guardrails.
UI/terminal behaviorCLAUDE_CODE_DISABLE_ALTERNATE_SCREEN, CLAUDE_CODE_NO_FLICKER, CLAUDE_CODE_DISABLE_MOUSE, CLAUDE_CODE_FORCE_SYNC_OUTPUT, CLAUDE_CODE_ACCESSIBILITY, CLAUDE_CODE_DISABLE_TERMINAL_TITLETerminal rendering and accessibility behavior.
UpdatesDISABLE_UPDATES, DISABLE_AUTOUPDATER, FORCE_AUTOUPDATE_PLUGINS, auto-update settingsNative/plugin updater behavior.
Telemetry/diagnosticsCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, DISABLE_TELEMETRY, DO_NOT_TRACK, DISABLE_ERROR_REPORTING, DISABLE_GROWTHBOOK, OTEL_LOG_TOOL_DETAILS, OTEL_LOG_TOOL_CONTENT, OTEL_LOG_USER_PROMPTSObservability, analytics, error reporting, feature-evaluation fetching.

Relationship to sessions and agents

flowchart TD
Gates[Feature/env/policy gates] --> Session[Session envelope]
Gates --> Agents[Agent/task scheduler]
Gates --> Tools[Tool/security runtime]
Gates --> Telemetry[Telemetry and tracing]
Session --> Evidence[debug/telemetry evidence]
Agents --> Evidence
Tools --> Evidence
Runtime areaGate interaction
Sessions/remoteRemote Control can be disabled by managed policy; bridge state and transcript mirrors emit observable frames.
Tools/permissionsPermission automation and streaming execution are feature-gated; denials can surface as stream frames and telemetry.
Agents/tasksBackground agents, subagent prompt shape, scheduled tasks, and auto-mode are behind feature/env/policy gates.
Scheduled tasksCLAUDE_CODE_DISABLE_CRON disables cron; scheduled-task telemetry tracks missed/fire/expired behavior.
Hosted review/updateHosted review preflight and native updater emit operational telemetry but do not own model turns.

Safe interpretation rules

  1. Treat tengu_* as evidence of a gate or telemetry event, not a fully decoded feature name unless adjacent strings confirm behavior.
  2. Prefer env/policy strings for hard claims, because they are usually descriptive and user/admin-facing.
  3. Distinguish a gate from an exported event: feature gates decide behavior; telemetry/tracing reports behavior.
  4. Use Telemetry and tracing for sink/export details.

Created and maintained by Yingting Huang.