Claude Code Source Leak Analysis Reveals KAIROS Background Agent, Dream Mode, and 44 Unreleased Feature Flags
Independent analysis of the 512,000-line Claude Code source leak (exposed via npm source map in version 2.1.88) has uncovered specific unreleased capabilities: KAIROS, a persistent background agent mode; a 'dream' mode for continuous background reasoning; 44 built feature flags for unshipped features; and 'frustration regexes' that detect user annoyance. The codebase reveals a ~40-tool plugin architecture with each capability as a discrete, permission-gated tool — the base tool definition alone is 29,000 lines of TypeScript. Community analysis posts by alex000kim and ccunpacked.dev amassed 1,241 and 637 HN points respectively, with the primary leak thread hitting 2,002 points — one of the highest-engagement HN threads of 2026.
↳ Follow the thread