Skip to content

Claude Code's Secret Features

We analyzed a leaked version of the Claude Code source and read every line. What we found is a codebase with an elaborate multi-layer feature gating system that hides 24+ fully-implemented features from public builds.

This is not speculation. Every claim on this site is backed by direct source code references.

MetricCount
process.env.USER_TYPE === 'ant' checks291+ across 143+ files
Build-time feature() flags via bun:bundle89 compile-time gates
Runtime tengu_* GrowthBook flags500+ server-side feature flags
Major hidden feature systems24+

When Anthropic builds Claude Code for public release, the Bun bundler evaluates every feature() call and every USER_TYPE check. If the flag is false, dead-code elimination strips the entire code path. The features literally do not exist in the binary you download.

  1. Build time: process.env.USER_TYPE is set to 'ant' only for internal builds. The bundler inlines the value and eliminates unreachable branches.
  2. Compile time: feature('SOME_FLAG') from bun:bundle returns true or false at bundle time. False branches are removed entirely.
  3. Runtime: Even if code survives bundling, GrowthBook feature flags (tengu_*) gate functionality server-side, returning false for non-Anthropic accounts.

Here is a summary of the major hidden features we have identified so far:

FeatureGateDescription
Coordinator Modefeature('COORDINATOR_MODE')Multi-agent orchestration where a coordinator delegates to parallel workers
Fork Subagentfeature('FORK_SUBAGENT')Cache-optimized child agents that inherit parent conversation history
Agent Swarmstengu_amber_flintLeader-teammate model with tmux/iTerm pane spawning and shared memory
Kairosfeature('KAIROS')Scheduled background agent execution with cron-like triggers
Auto Dreamtengu_onyx_ploverAutomated memory consolidation and context summarization
Scratchpadtengu_scratchCross-worker durable storage directory for multi-agent workflows
Hearthfeature('HEARTH')Persistent background services and daemon management
MCP Authfeature('MCP_AUTH')OAuth-based authentication for MCP server connections
Notebook Supportfeature('NOTEBOOK')Native Jupyter notebook editing and execution
GitHub PR Integrationfeature('GITHUB_PR')Deep pull request review and management workflows
Interop Modefeature('INTEROP')Cross-tool integration protocol for editor extensions
Prompt Cachingant-gatedAdvanced prompt cache management and optimization
Custom Modelsant-gatedInternal model selection beyond public offerings
MDM Policiesant-gatedMobile Device Management policy enforcement
Telemetry Dashboardant-gatedInternal usage analytics and performance monitoring
Subscription Tiersant-gatedFeature differentiation across max/pro/plus/basic tiers
Permission Bridgeant-gatedCross-agent permission synchronization
Team Memory Syncant-gatedShared context propagation across agent teams
Monorepo DetectionMONOREPO_ROOT_DIRSpecial features when running inside Anthropic’s monorepo
Plugin Systemant-gatedExtended plugin architecture beyond public MCP
Background Tasksant-gatedLong-running task management with progress tracking
Session Handoffant-gatedTransfer active sessions between devices/instances
Smart Retryant-gatedIntelligent request retry with backoff strategies
Config Syncant-gatedCross-device configuration synchronization