5.7 KiB
Feature Flags
This repository has two different "experimental" mechanisms:
-
bun run build:devBuilds a dev-stamped binary (cli-dev) and marks it as an experimental build. It does not automatically enable every compile-time feature flag in the source. -
feature('FLAG_NAME')Bun compile-time flags that include or strip code paths at build time.
Build Variants
bun run buildBuilds the regular external binary at./cli.bun run build:devBuilds./cli-devwith a-dev.YYYYMMDD.tHHMMSS.sha...version and the experimental GrowthBook client key.bun run build:dev:fullBuilds./cli-devwith the snapshot-safe experimental bundle listed below.
Snapshot-Safe Experimental Bundle
The following flags were smoke-tested against this leaked source snapshot and compile successfully together:
QUICK_SEARCHEnables prompt quick-search UI paths.HISTORY_PICKEREnables interactive prompt history picker UI.TOKEN_BUDGETEnables token budget tracking and related UI warnings.VOICE_MODEEnables voice-mode UI and command paths. Runtime still depends on optional native audio support.ULTRAPLANEnables ultraplan command and prompt-input triggers.CACHED_MICROCOMPACTEnables cached microcompact plumbing.PROMPT_CACHE_BREAK_DETECTIONEnables cache-break detection around compact/query flow.
These are the flags used by build:dev:full.
CHICAGO_MCP compiles from this snapshot, but the resulting binary is not
runtime-safe because it reaches unresolved @ant/* computer-use modules.
It is intentionally excluded from build:dev:full.
Flags Present In Source
The codebase references these compile-time flags:
ABLATION_BASELINEAGENT_MEMORY_SNAPSHOTAGENT_TRIGGERSAGENT_TRIGGERS_REMOTEALLOW_TEST_VERSIONSANTI_DISTILLATION_CCAUTO_THEMEAWAY_SUMMARYBASH_CLASSIFIERBG_SESSIONSBREAK_CACHE_COMMANDBRIDGE_MODEBUDDYBUILDING_CLAUDE_APPSBUILTIN_EXPLORE_PLAN_AGENTSBYOC_ENVIRONMENT_RUNNERCACHED_MICROCOMPACTCCR_AUTO_CONNECTCCR_MIRRORCCR_REMOTE_SETUPCHICAGO_MCPCOMMIT_ATTRIBUTIONCOMPACTION_REMINDERSCONNECTOR_TEXTCONTEXT_COLLAPSECOORDINATOR_MODECOWORKER_TYPE_TELEMETRYDAEMONDIRECT_CONNECTDOWNLOAD_USER_SETTINGSDUMP_SYSTEM_PROMPTENHANCED_TELEMETRY_BETAEXPERIMENTAL_SKILL_SEARCHEXTRACT_MEMORIESFILE_PERSISTENCEFORK_SUBAGENTHARD_FAILHISTORY_PICKERHISTORY_SNIPHOOK_PROMPTSIS_LIBC_GLIBCIS_LIBC_MUSLKAIROSKAIROS_BRIEFKAIROS_CHANNELSKAIROS_DREAMKAIROS_GITHUB_WEBHOOKSKAIROS_PUSH_NOTIFICATIONLODESTONEMCP_RICH_OUTPUTMCP_SKILLSMEMORY_SHAPE_TELEMETRYMESSAGE_ACTIONSMONITOR_TOOLNATIVE_CLIENT_ATTESTATIONNATIVE_CLIPBOARD_IMAGENEW_INITOVERFLOW_TEST_TOOLPERFETTO_TRACINGPOWERSHELL_AUTO_MODEPROACTIVEPROMPT_CACHE_BREAK_DETECTIONQUICK_SEARCHREACTIVE_COMPACTREVIEW_ARTIFACTRUN_SKILL_GENERATORSELF_HOSTED_RUNNERSHOT_STATSSKILL_IMPROVEMENTSLOW_OPERATION_LOGGINGSSH_REMOTETEAMMEMTEMPLATESTERMINAL_PANELTOKEN_BUDGETTORCHTRANSCRIPT_CLASSIFIERTREE_SITTER_BASHTREE_SITTER_BASH_SHADOWUDS_INBOXULTRAPLANULTRATHINKUNATTENDED_RETRYUPLOAD_USER_SETTINGSVERIFICATION_AGENTVOICE_MODEWEB_BROWSER_TOOLWORKFLOW_SCRIPTS
High-Traffic Feature Families
These are the most prominent feature families in the snapshot:
- Assistant / brief / channels
KAIROS,KAIROS_BRIEF,KAIROS_CHANNELS,KAIROS_GITHUB_WEBHOOKS,KAIROS_PUSH_NOTIFICATION,KAIROS_DREAM - Classifiers / auto mode
TRANSCRIPT_CLASSIFIER,BASH_CLASSIFIER,TREE_SITTER_BASH,TREE_SITTER_BASH_SHADOW - Remote / bridge / computer-use
BRIDGE_MODE,DAEMON,DIRECT_CONNECT,SSH_REMOTE,CHICAGO_MCP,WEB_BROWSER_TOOL - Planning / agents / automation
ULTRAPLAN,COORDINATOR_MODE,FORK_SUBAGENT,AGENT_TRIGGERS,AGENT_TRIGGERS_REMOTE,VERIFICATION_AGENT - Context / compact / memory
CONTEXT_COLLAPSE,REACTIVE_COMPACT,CACHED_MICROCOMPACT,PROMPT_CACHE_BREAK_DETECTION,TOKEN_BUDGET,HISTORY_SNIP,BG_SESSIONS,TEAMMEM,EXTRACT_MEMORIES - UI extras
QUICK_SEARCH,HISTORY_PICKER,VOICE_MODE,MESSAGE_ACTIONS,AUTO_THEME,SHOT_STATS
Known Broken In This Snapshot
These flags do appear in source, but turning them on currently fails to build because referenced modules are missing from the leaked snapshot:
KAIROSKAIROS_BRIEFPROACTIVEBRIDGE_MODEDAEMONDIRECT_CONNECTSSH_REMOTECOORDINATOR_MODECHICAGO_MCPBUDDYUDS_INBOXCONTEXT_COLLAPSEREACTIVE_COMPACTEXPERIMENTAL_SKILL_SEARCHMCP_SKILLSWORKFLOW_SCRIPTSMONITOR_TOOLREVIEW_ARTIFACTTEAMMEMTRANSCRIPT_CLASSIFIER
The failures are mostly missing files such as assistant-mode modules, remote/server modules, workflow/monitor tools, skill-search modules, classifier prompt files, and team-memory helpers.
Useful Entry Points
- Feature-aware build logic: scripts/build.ts
- Experimental GrowthBook key selection: src/constants/keys.ts
- Feature-gated command imports: src/commands.ts
- Feature-gated tool imports: src/tools.ts
- Feature-gated query behavior: src/query.ts
- Feature-gated CLI options and startup flow: src/main.tsx