Skip to content
news13 min read

The Leaked Claude Code Roadmap: Every Hidden Feature Coming in 2026

The source code contains 32 compile-time feature flags and 22+ runtime gates. Voice mode, Chrome extension, plugin marketplace — everything Anthropic plans to ship in 2026.

Author
Anthony M.
13 min readVerified April 1, 2026Tested hands-on
Claude Code Leaked Roadmap — 32 Feature Flags Revealed
Claude Code Leaked Roadmap — Every hidden feature flag decoded from the source code

Claude Code v2.1.88 shipped a 59.8 MB source map on March 31, 2026, exposing 512,000 lines of TypeScript, 32 compile-time feature flags, 22+ GrowthBook runtime gates, and codenames for unreleased models including Capybara (Opus 5/Mythos), Fennec, and Tengu. Voice mode, a plugin marketplace, Chrome extension, multi-agent orchestration, and a Tamagotchi companion system called BUDDY are all fully built but not shipped. This is a complete breakdown of everything Anthropic planned to release in 2026.

What Happened: The Biggest AI Source Code Leak Ever

On March 31, 2026, security researcher Chaofan Shou discovered that the npm package @anthropic-ai/claude-code version 2.1.88 contained a source map file (cli.js.map) weighing 59.8 MB. That single file reconstructed the entire TypeScript source code of Claude Code — Anthropic's flagship AI coding assistant.

The numbers speak for themselves:

MetricValue
TypeScript files recovered~1,900
Lines of code~512,000
Built-in tools43
Compile-time feature flags32
Runtime feature gates (GrowthBook)22+
Hidden slash commands26
Environment variables330+
Internal project codenameTengu

This was not a partial leak. It was the entire codebase — feature flags, codenames, pricing logic, anti-distillation defenses, and infrastructure for at least a dozen unshipped features. Five days earlier, on March 26, a separate CMS misconfiguration had already exposed ~3,000 internal files including draft blog posts about "Claude Mythos," a next-generation model above Opus.

All 32 Compile-Time Feature Flags

Claude Code uses Bun's feature() function for compile-time flags. When building for public release, these flags compile to false, and the bundler eliminates the gated code via dead-code elimination. In internal builds, they are active. Here is every single one we identified:

Claude Code — 32 Feature Flags Decoded
All 32 compile-time feature flags found in the Claude Code v2.1.88 source leak
#FlagWhat It DoesStatus
1KAIROSPersistent always-on AI assistant. Background daemon with push notifications, file sending, channel support. Named after the Greek concept of "opportune moment." Referenced 150+ times in the source.Not shipped
2PROACTIVEProactive behavior: sleep tool, autonomous actions without user input, 15-second blocking budget. Paired with KAIROS.Not shipped
3COORDINATOR_MODEMulti-agent orchestrator: a primary Claude spawns and manages parallel worker agents, then synthesizes results.Not shipped
4BRIDGE_MODERemote control via claude.ai — bridges local session to web interface.Partially released
5DAEMONBackground daemon workers for persistent sessions, tmux integration.Not shipped
6BG_SESSIONSBackground session management: list, logs, reattach, kill running sessions.Not shipped
7ULTRAPLAN30-minute cloud planning sessions via Opus 4.6 on Cloud Container Runtime (CCR). Human approval in browser before execution.Not shipped
8BUDDYFull Tamagotchi companion system. 18 species (duck, dragon, axolotl, capybara, mushroom, ghost...), rarity from common to 1% legendary, cosmetics (hats, shiny variants), 5 stats: DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK. Seeded from user ID hash.Not shipped (April 2026 teaser)
9TORCHInternal undocumented feature, likely related to workflow guidance.Not shipped
10WORKFLOW_SCRIPTSWorkflow automation, pipeline script execution.Not shipped
11VOICE_MODEPush-to-talk voice interface via /voice. Audio input and output.Not shipped
12TEMPLATESJob classifier and task templates for structured missions.Not shipped
13CHICAGO_MCPComputer Use via MCP — full GUI automation (mouse, clicks, screenshots). Codename "Chicago." Active for Max/Pro users.Partially released
14UDS_INBOXCross-session IPC via Unix Domain Sockets. Multiple Claude sessions on the same machine can exchange messages like a team chat between AI agents.Not shipped
15REACTIVE_COMPACTReactive context compaction for dynamic window management.Not shipped
16CONTEXT_COLLAPSEContext window inspection and restructuring. Enables CtxInspectTool.Not shipped
17HISTORY_SNIPAggressive conversation history trimming.Not shipped
18CACHED_MICROCOMPACTCached micro-compactions for memory optimization.Not shipped
19TOKEN_BUDGETPer-task/session token budget management.Not shipped
20EXTRACT_MEMORIESAutomatic memory extraction from conversations.Not shipped
21OVERFLOW_TESTInternal overflow limit testing tool.Internal/test
22TERMINAL_PANELTerminal panel capture for IDE integration.Not shipped
23WEB_BROWSERNative web browser automation tool.Not shipped
24FORK_SUBAGENTAbility to fork sub-agents from a main agent.Not shipped
25DUMP_SYS_PROMPTFull system prompt extraction. Reserved for Anthropic employees only (ant-only).Internal only
26ABLATION_BASEBootstrap simplification toggles for ablation studies.Internal/research
27BYOC_RUNNERBring Your Own Compute — self-hosted runner.Not shipped
28SELF_HOSTEDSelf-hosted mode for on-premise deployments.Not shipped
29MONITOR_TOOLMCP monitoring tool for agent surveillance.Not shipped
30CCR_AUTOAutomatic Cloud Container Runtime activation.Not shipped
31MEM_SHAPE_TELMemory shape telemetry for tracking context patterns.Not shipped
32SKILL_SEARCHExperimental skill discovery and search.Not shipped

Additional Flags Found in Extended Analysis

Beyond the core 32, several more flags were identified in deeper code analysis:

  • NATIVE_CLIENT_ATTESTATION — Native client cryptographic attestation (placeholder hash cch=00000)
  • ANTI_DISTILLATION_CC — Injects decoy tools into API requests to poison competitor training data
  • TRANSCRIPT_CLASSIFIER — Automatic session transcript classification
  • KAIROS_BRIEF — Brief mode for the persistent KAIROS assistant
  • KAIROS_GITHUB_WEBHOOKS — GitHub integration via SubscribePRTool for autonomous PR reactions
  • LODESTONE — Undocumented feature
  • CLAUDE_CODE_VERIFY_PLAN — Plan execution verification tool

22+ Runtime Gates via GrowthBook

While compile-time flags are baked into the build, GrowthBook manages runtime feature gating. These flags are prefixed with tengu_ (the project codename) and many use randomized word pairs like tengu_frond_boric to obscure their purpose. Values are aggressively cached via getFeatureValue_CACHED_MAY_BE_STALE() to avoid blocking the main loop.

Critical detail: Anthropic can activate or deactivate these flags remotely without any user update, through hourly polling to a remote settings endpoint.

#Gate NameWhat It Controls
1tengu_anti_distill_fake_tool_injectionInjects fake/decoy tools into the system prompt for first-party CLI sessions. Poisons competitor training data.
2tengu_attribution_headerKill-switch for the x-anthropic-billing-header attribution header.
3tengu_malort_pedwayFull Computer Use — GUI automation (mouse, clicks, screenshots). Obscured name.
4tengu_penguins_offKill-switch for Penguin Mode (Fast Mode). Disables fast mode globally.
5tengu_onyx_ploverAuto-Dream system — overnight memory consolidation. Obscured name.
6tengu_kairosMain gate for the persistent KAIROS assistant mode.
7tengu_ultraplan_modelSelects the model for ULTRAPLAN cloud sessions (default: Opus 4.6).
8tengu_cobalt_raccoonControls auto-compact (automatic context compaction). Obscured name.
9tengu_scratchShared scratchpad directory for multi-agent coordination.
10tengu_amber_flintAgent Teams/Swarm with team memory synchronization.
11tengu_consolidated_modeMemory consolidation/dream system activation.
12tengu_portal_quailObscured gate — exact function unknown.
13tengu_harborObscured gate — likely hosting/port related.
14tengu_herring_clockObscured gate — exact function unknown.
15tengu_chomp_inflectionObscured gate — exact function unknown.
16tengu_amber_quartz_disabledKill-switch for Voice Mode. Obscured name.
17tengu_ultraplan_teleport_localSentinel for remote ULTRAPLAN result retrieval.
18tengu_speculationSpeculation mode — speculative pre-execution of actions.
19tengu_startup_telemetryStartup telemetry analytics event.
20tengu_mcp_channel_flagsMCP channel flags for telemetry.
21tengu_agent_flagAgent telemetry and gating flag.
22tengu_org_penguin_mode_fetch_failedAnalytics event when org-level Penguin Mode fetch fails.

The code also contains 6+ remote kill-switches capable of bypassing permission prompts, toggling Fast Mode, controlling Voice Mode, managing analytics collection, and forcing a complete application exit — all without any update to the user's installation.

The 5 Biggest Unreleased Features

1. KAIROS — The Always-On AI Assistant

KAIROS is the most referenced feature in the entire codebase, appearing 150+ times. Named after the ancient Greek concept of the "opportune moment," it represents Anthropic's vision of a persistent, always-running AI assistant that does not wait for you to open a terminal.

What we know from the code:

  • Background daemon that runs continuously via tmux integration
  • Push notifications to alert you of relevant events
  • Proactive actions — Claude can do things before you ask, with a 15-second blocking budget
  • File sending and channel support for multi-context communication
  • GitHub webhook integration via SubscribePRTool — can autonomously react to pull requests
  • Brief mode (KAIROS_BRIEF) for concise outputs

KAIROS is paired with the PROACTIVE flag, suggesting a two-stage rollout: first the daemon infrastructure, then the autonomous behavior on top.

Claude Code KAIROS — Always-On AI Assistant Architecture
KAIROS architecture: persistent daemon + proactive actions + push notifications

2. Voice Mode — Push-to-Talk AI Coding

The VOICE_MODE flag and the tengu_amber_quartz_disabled kill-switch confirm that voice interaction is fully built. Activated via the /voice command, it supports both audio input and output — push-to-talk for hands-free coding. The kill-switch name (disabled suffix) suggests it was live internally and they needed a way to turn it off remotely.

3. Plugin Marketplace — An App Store for Claude Code

The leak reveals a complete plugin ecosystem with three layers: Plugins (extension bundles), Skills (SKILL.md instruction files), and Hooks (event-driven shell scripts). The marketplace is backed by Git-based registries (GitHub, GitLab) with a full command suite:

  • /plugin marketplace add — register a new marketplace
  • /plugin marketplace update — refresh local registries
  • /plugin install plugin-name@marketplace-name — install from marketplace
  • /reload-plugins — hot-reload all active plugins

Plugin structure uses .claude-plugin/plugin.json manifests and can bundle agents, commands, skills, hooks, and MCP servers in a single distributable package. The official marketplace (anthropics/claude-plugins-official) and community sites like claudemarketplaces.com, claude-plugins.dev, and buildwithclaude.com are already referenced in the code. 15 files in the commands/plugin/ directory handle everything from browsing to trust warnings to validation.

4. BUDDY — A Tamagotchi Inside Your Terminal

Perhaps the most unexpected discovery: a complete virtual pet system. The BUDDY flag gates a Tamagotchi-style companion with:

  • 18 species: duck, dragon, axolotl, capybara, mushroom, ghost, and 12 more
  • Rarity system: from common to 1% legendary
  • Cosmetics: hats, shiny variants
  • 5 stats: DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK
  • Deterministic seeding: your buddy species is derived from your user ID hash, so everyone gets a unique companion

An April 2026 teaser was found in the source, suggesting Anthropic planned to reveal BUDDY as part of an April campaign — possibly an April Fools reveal that turned into a real feature.

5. ULTRAPLAN and Remote/Teleport Sessions

ULTRAPLAN enables 30-minute cloud planning sessions running Opus 4.6 on Anthropic's Cloud Container Runtime (CCR). The workflow: Claude creates a plan in the cloud, presents it in your browser for human approval, then executes. The tengu_ultraplan_teleport_local gate handles remote result retrieval — Claude plans in the cloud and "teleports" results back to your local machine.

Model Codenames: Capybara, Fennec, Tengu, and Mythos

Anthropic uses animal codenames internally. The leak decoded the full naming hierarchy:

CodenameWhat It IsKey Details
TenguProject codename for Claude Code itselfPrefix for all feature flags (tengu_*) and analytics events. Japanese supernatural creature.
FennecEarly codename for Opus 4.6First appeared in Vertex AI logs as claude-sonnet-5@20260203. Migration file migrateFennecToOpus.ts confirms it became Opus 4.6.
CapybaraNew model tier ABOVE OpusInternal versions: v4 (16.7% false claims) and v8 (29-30% false claims — a 74% regression). Variants include capybara-v2-fast with 1M context.
MythosPublic name for Capybara (Opus 5)Discovered in CMS leak 5 days before code leak. Described as "by far the most powerful AI model we've ever developed."
NumbatUnknown model in pre-launch testingInternal reference only — no details on tier or capabilities.
ChicagoComputer Use implementationCodename for the CHICAGO_MCP feature flag — full GUI automation.

The code also contains references to Opus 4.7 and Sonnet 4.8, suggesting Anthropic has already prepared infrastructure for next-generation model iterations. Migration files trace the full lineage: Sonnet 1M to Sonnet 4.5 to Sonnet 4.6, and Fennec to Opus to Opus 1M.

The Capybara v8 Problem

Internal testing of Capybara v8 revealed a major regression: the false claims rate jumped from 16.7% (v4) to 29-30% (v8) — the model makes false assertions nearly 1 in 3 times. The code mentions "premature generation stop" issues and mitigations including "force safe boundary marker" injection and "prompt-shape surgery," all gated behind killable feature flags for progressive rollout.

Anti-Distillation: Poisoning Competitor Training Data

One of the most controversial discoveries: when both the ANTI_DISTILLATION_CC compile-time flag and the tengu_anti_distill_fake_tool_injection runtime gate are active, Claude Code injects fake tool definitions into API requests. If anyone records Claude Code API traffic to train a competing model, the fake tools poison their training data. This only activates for first-party CLI sessions and is controllable remotely via GrowthBook.

Undercover Mode: Protecting Codenames (That Got Leaked Anyway)

The file undercover.ts injects instructions into Claude's system prompt directing it to never reveal internal codenames (Capybara, Tengu, etc.) and never mention them in git commits or open-source contributions. The directive explicitly states: "There is NO force-OFF. This guards against model codename leaks." The irony: Anthropic built an entire system to prevent codename leaks, then shipped the complete source code in an npm package.

330+ Environment Variables: The Full Control Surface

The leak catalogued over 330 environment variables across 25 categories, revealing the full operational control surface of Claude Code:

  • Authentication and API: 25+ vars for API keys, OAuth tokens, WebSocket auth
  • Model configuration: 18 vars including per-tier defaults, subagent models, custom model options
  • Cloud providers: AWS Bedrock (16 vars), Google Vertex AI (12 vars), Microsoft Foundry (5 vars)
  • Enable flags: 20 vars to activate experimental features (CFC, tasks, telemetry, LSP, session persistence)
  • Disable flags: 35 vars to turn off features including the 1M context window, adaptive thinking, memory, command injection checks
  • Agent Teams: 8 vars for experimental multi-agent orchestration (CLAUDE_CODE_PLAN_V2_AGENT_COUNT — Max/Team: 3, Free: 1)
  • Remote and Cowork: 19 vars for cloud container runtime, bridge sessions, and team collaboration
  • OpenTelemetry: 22 vars for trace, metrics, and log export

Notable individual variables include CLAUDE_CODE_DISABLE_COMMAND_INJECTION_CHECK (disables security checks), CLAUDE_CODE_DISABLE_1M_CONTEXT (labeled "health compliance"), and CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS (activates the multi-agent swarm).

What This Roadmap Tells Us About Anthropic's Strategy

Reading through 32 feature flags and 22 runtime gates, a clear product vision emerges:

  1. From tool to teammate: KAIROS, PROACTIVE, BG_SESSIONS, and DAEMON are building toward an always-on AI that does not wait for commands — it watches your work and acts when needed.
  2. Multi-agent is the future: COORDINATOR_MODE, FORK_SUBAGENT, UDS_INBOX, and Agent Teams infrastructure all point to Claude orchestrating multiple Claude instances simultaneously.
  3. Platform play: The plugin marketplace, skill system, and hook architecture create an extensible platform — Claude Code as an OS for AI-assisted development.
  4. Enterprise readiness: BYOC_RUNNER, SELF_HOSTED, and Foundry integration show Anthropic targeting enterprise on-premise deployments.
  5. Competitive defense: Anti-distillation fake tool injection and Undercover Mode reveal how seriously Anthropic takes IP protection — even as their source code ships in npm packages.

Frequently Asked Questions

What exactly leaked from Claude Code?

A 59.8 MB source map file (cli.js.map) in the npm package @anthropic-ai/claude-code v2.1.88 reconstructed ~1,900 TypeScript files totaling ~512,000 lines of code. This included 32 feature flags, 22+ runtime gates, 330+ environment variables, 26 hidden slash commands, model codenames, pricing logic, and complete implementations of unreleased features.

What is KAIROS in Claude Code?

KAIROS is Anthropic's persistent always-on AI assistant system. Named after the Greek concept of the "opportune moment," it runs as a background daemon with push notifications, proactive actions, GitHub webhook integration, and tmux session management. It is the most-referenced feature in the codebase (150+ mentions) but has not shipped publicly.

What are the Capybara and Mythos models?

Capybara is the internal codename for a new model tier above Opus — essentially Opus 5. Its public name, discovered in a separate CMS leak on March 26, 2026, is "Claude Mythos." Anthropic's draft blog described it as "by far the most powerful AI model we've ever developed" with unprecedented cybersecurity capabilities. Internal testing showed a 29-30% false claims rate in v8, up from 16.7% in v4.

Can Anthropic remotely control Claude Code features?

Yes. The code uses GrowthBook for runtime feature gating with 22+ flags prefixed tengu_. These are polled hourly from a remote endpoint, allowing Anthropic to activate or deactivate features for specific users, regions, organizations, or percentages of users — all without pushing any software update. Six or more remote kill-switches can bypass permission prompts, toggle fast mode, control voice mode, and force application exit.

What is the anti-distillation system in Claude Code?

When activated, Claude Code injects fake tool definitions into API requests. If a competitor records the API traffic to train their own model, these fake tools pollute their training data. The system is dual-gated: it requires both a compile-time flag (ANTI_DISTILLATION_CC) and a runtime GrowthBook gate (tengu_anti_distill_fake_tool_injection), and only activates for first-party CLI sessions.

Related Articles

Was this review helpful?
Anthony M. — Founder & Lead Reviewer
Anthony M.Verified Builder

We're developers and SaaS builders who use these tools daily in production. Every review comes from hands-on experience building real products — DealPropFirm, ThePlanetIndicator, PropFirmsCodes, and many more. We don't just review tools — we build and ship with them every day.

Written and tested by developers who build with these tools daily.