feat: enable 16 additional feature flags in open build
Activate features whose source is fully available in the mirror and that have no Anthropic-internal infrastructure dependencies: UI/UX: MESSAGE_ACTIONS, HISTORY_PICKER, QUICK_SEARCH, HOOK_PROMPTS Reasoning: ULTRATHINK, TOKEN_BUDGET, SHOT_STATS Agents: FORK_SUBAGENT, VERIFICATION_AGENT, MCP_SKILLS Memory: EXTRACT_MEMORIES, AWAY_SUMMARY Optimization: CACHED_MICROCOMPACT, PROMPT_CACHE_BREAK_DETECTION Safety: TRANSCRIPT_CLASSIFIER Debug: DUMP_SYSTEM_PROMPT Also reorganize featureFlags into documented sections (disabled/upstream/new) with inline comments explaining each flag's purpose.
This commit is contained in:
@@ -19,30 +19,46 @@ const version = pkg.version
|
|||||||
// Most Anthropic-internal features stay off; open-build features can be
|
// Most Anthropic-internal features stay off; open-build features can be
|
||||||
// selectively enabled here when their full source exists in the mirror.
|
// selectively enabled here when their full source exists in the mirror.
|
||||||
const featureFlags: Record<string, boolean> = {
|
const featureFlags: Record<string, boolean> = {
|
||||||
VOICE_MODE: false,
|
// ── Disabled: require Anthropic infrastructure or missing source ─────
|
||||||
PROACTIVE: false,
|
VOICE_MODE: false, // Push-to-talk STT via claude.ai OAuth endpoint
|
||||||
KAIROS: false,
|
PROACTIVE: false, // Autonomous agent mode (missing proactive/ module)
|
||||||
BRIDGE_MODE: false,
|
KAIROS: false, // Persistent assistant/session mode (cloud backend)
|
||||||
DAEMON: false,
|
BRIDGE_MODE: false, // Remote desktop bridge via CCR infrastructure
|
||||||
AGENT_TRIGGERS: false,
|
DAEMON: false, // Background daemon process (stubbed in open build)
|
||||||
MONITOR_TOOL: false,
|
AGENT_TRIGGERS: false, // Scheduled remote agent triggers
|
||||||
ABLATION_BASELINE: false,
|
MONITOR_TOOL: false, // MCP server monitoring/streaming tool
|
||||||
DUMP_SYSTEM_PROMPT: false,
|
ABLATION_BASELINE: false, // A/B testing harness for eval experiments
|
||||||
CACHED_MICROCOMPACT: false,
|
CONTEXT_COLLAPSE: false, // Context collapsing optimization (stubbed)
|
||||||
COORDINATOR_MODE: true,
|
COMMIT_ATTRIBUTION: false, // Co-Authored-By metadata in git commits
|
||||||
BUILTIN_EXPLORE_PLAN_AGENTS: true,
|
TEAMMEM: false, // Team memory management
|
||||||
CONTEXT_COLLAPSE: false,
|
UDS_INBOX: false, // Unix Domain Socket inter-session messaging
|
||||||
COMMIT_ATTRIBUTION: false,
|
BG_SESSIONS: false, // Background sessions via tmux (stubbed)
|
||||||
TEAMMEM: false,
|
WEB_BROWSER_TOOL: false, // Built-in browser automation (source not mirrored)
|
||||||
UDS_INBOX: false,
|
CHICAGO_MCP: false, // Computer-use MCP (native Swift modules stubbed)
|
||||||
BG_SESSIONS: false,
|
COWORKER_TYPE_TELEMETRY: false, // Telemetry for agent/coworker type classification
|
||||||
AWAY_SUMMARY: false,
|
|
||||||
TRANSCRIPT_CLASSIFIER: false,
|
// ── Enabled: upstream defaults ──────────────────────────────────────
|
||||||
WEB_BROWSER_TOOL: false,
|
COORDINATOR_MODE: true, // Multi-agent coordinator with worker delegation
|
||||||
MESSAGE_ACTIONS: false,
|
BUILTIN_EXPLORE_PLAN_AGENTS: true, // Built-in Explore/Plan specialized subagents
|
||||||
BUDDY: true,
|
BUDDY: true, // Buddy mode for paired programming
|
||||||
CHICAGO_MCP: false,
|
|
||||||
COWORKER_TYPE_TELEMETRY: false,
|
// ── Enabled: new activations ────────────────────────────────────────
|
||||||
|
DUMP_SYSTEM_PROMPT: true, // --dump-system-prompt CLI flag for debugging
|
||||||
|
CACHED_MICROCOMPACT: true, // Cache-aware tool result truncation optimization
|
||||||
|
AWAY_SUMMARY: true, // "While you were away" recap after 5min blur
|
||||||
|
TRANSCRIPT_CLASSIFIER: true, // Auto-approval classifier for safe tool uses
|
||||||
|
MESSAGE_ACTIONS: true, // Message action buttons in the UI
|
||||||
|
ULTRATHINK: true, // Deep thinking mode — type "ultrathink" to boost reasoning
|
||||||
|
TOKEN_BUDGET: true, // Token budget tracking with usage warnings
|
||||||
|
HISTORY_PICKER: true, // Enhanced interactive prompt history picker
|
||||||
|
QUICK_SEARCH: true, // Ctrl+G quick search across prompts
|
||||||
|
SHOT_STATS: true, // Shot distribution stats in session summary
|
||||||
|
EXTRACT_MEMORIES: true, // Auto-extract durable memories from conversations
|
||||||
|
FORK_SUBAGENT: true, // Implicit context-forking when omitting subagent_type
|
||||||
|
VERIFICATION_AGENT: true, // Built-in read-only agent for test/verification
|
||||||
|
MCP_SKILLS: true, // Discover skills dynamically from MCP server resources
|
||||||
|
PROMPT_CACHE_BREAK_DETECTION: true, // Detect & log unexpected prompt cache invalidations
|
||||||
|
HOOK_PROMPTS: true, // Allow tools to request interactive user prompts
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Pre-process: replace feature() calls with boolean literals ──────
|
// ── Pre-process: replace feature() calls with boolean literals ──────
|
||||||
|
|||||||
Reference in New Issue
Block a user