On March 31, 2026, an Anthropic engineer forgot to add *.map to .npmignore. The entire Claude Code codebase — 512,000+ lines of TypeScript — was briefly public on npm. This is a complete analysis of everything found: 6 major features and 44 internal feature flags.
// TIMELINE
Virtual terminal pet — 18 species, deterministic UUID mapping
A Tamagotchi-style companion system baked into Claude Code. Each developer's installation UUID was hashed with FNV-1a → Mulberry32 PRNG to deterministically assign a unique creature: species, rarity (common → legendary), stats, eyes, hat, and shiny variants. 18 species total, 5 rarity tiers.
// DETAILS FROM LEAKED SOURCE
source: buddy/types.ts, buddy/engine.ts
Always-on autonomous background agent with memory consolidation
An ambient background agent that operates without user prompts. Named after the Greek concept of the 'opportune moment' (contrasted with chronos, sequential time), KAIROS watches your working environment, consolidates memory during idle periods via autoDream, and can trigger proactive actions based on context.
// DETAILS FROM LEAKED SOURCE
source: kairos/agent.ts, kairos/autodream.ts
Remote 30-minute deep planning session powered by Opus 4.6
A mode that offloads complex planning tasks to a remote Cloud Container Runtime running Claude Opus 4.6 with a planning window of up to 30 minutes. Results are reviewed in-browser and, when approved, 'teleported' back to the local terminal via a special sentinel value.
// DETAILS FROM LEAKED SOURCE
source: ultraplan/runner.ts, ultraplan/teleport.ts
Strips AI attribution from commits for Anthropic employees in public repos
Auto-triggers for Anthropic employees (detected via USER_TYPE === 'ant') when working in public repositories. The mode strips all AI attribution markers from git output: Co-Authored-By lines, internal codenames (Tengu, Capybara), and any Anthropic-identifiable metadata. Regular Claude Code users never enter this mode.
// DETAILS FROM LEAKED SOURCE
source: git/commit-filter.ts, auth/user-type.ts
Claude Code detects emotional state from terminal input patterns
A set of regex patterns that scan user input for signs of frustration — repeated commands, expletives, rapid-fire queries, or messages like 'WHY IS THIS NOT WORKING'. When triggered, Claude Code adjusts its response tone, adds more explanatory context, and optionally offers a calming prompt.
// DETAILS FROM LEAKED SOURCE
source: ux/frustration-detector.ts
Multi-agent orchestration layer for parallel Claude Code sessions
A feature flag found among the 44 internal flags that suggests a multi-agent coordination system — the ability to spawn, monitor, and synchronize multiple Claude Code agent instances working on different parts of a codebase simultaneously. Limited details available from the leak.
// DETAILS FROM LEAKED SOURCE
source: flags/feature-flags.ts (flag name only)
// 44 FEATURE FLAGS
The leaked source contained 44 internal feature flags in flags/feature-flags.ts. Most are single-word identifiers with no implementation details visible (obfuscated or behind separate flag-server calls). Notable named flags beyond the features above:
// BUDDY WAS REAL — YOURS STILL EXISTS
BUDDY was the only leaked feature that shipped publicly. Even though Anthropic removed it in v2.1.97, the deterministic algorithm survives. Every UUID still maps to a unique companion.
// SOURCES