The entire source code for Claude Code has leaked, revealing upcoming features including autonomous proactive agents, new AI models (Opus 47, Sonnet 48, Capybara/Mythos), and a 'dream mode' that works overnight to generate ideas and plans.
On March 31, 2026, Anthropic accidentally exposed the full source code of Claude Code through a misconfigured source map file in npm package version 2.1.88. The leak contained approximately 512,000 lines of TypeScript across 1,900 files, discovered by security researcher Chaofan Shou. Anthropic confirmed the incident was caused by human error in release packaging, not a security breach, and stated no customer data or credentials were exposed.
The leak revealed extensive unreleased features hidden behind feature flags. KAIROS, mentioned over 150 times in the source, represents an autonomous daemon mode that allows Claude Code to operate as an always-on background agent. It employs a process called autoDream that performs memory consolidation while the user is idle, merging disparate observations, removing logical contradictions, and converting vague insights into absolute facts. The leak also exposed a hidden Buddy system—a Tamagotchi-style terminal pet with stats like CHAOS and SNARK, likely scheduled for an April 1st release.
The leak confirmed that Capybara is the internal codename for a Claude 4.6 variant, with Fennec mapping to Opus 4.6 and the unreleased Numbat still in testing. However, the video's claims about "Opus 47" and "Sonnet 48" appear to be fabrications—no such model names exist in the leaked code or any verified reporting. Capybara represents a new fourth tier above Opus in Anthropic's model hierarchy, part of the separate "Claude Mythos" model that was revealed through a different data leak on March 26, 2026, involving approximately 3,000 unpublished files in a publicly accessible data cache.
Regarding the x402 protocol mentioned in the video: x402 is an open standard for internet-native payments developed by Coinbase that empowers agentic payments at scale. It's built on top of the HTTP 402 status code and enables any API or web service to require payment before serving content. However, there is no evidence in the leaked Claude Code source that x402 integration is currently implemented or planned. The video's claim about "agentic payments" appears to conflate general industry trends with specific Claude Code features.
Anthropic accidentally exposed 512,000 lines of Claude Code source code, revealing unreleased autonomous agents, new AI models, and a 'dream mode' feature.
Source: VentureBeat, The Register, CNBC, multiple sources
Source: VentureBeat, multiple technical analyses
Source: Fortune, VentureBeat, multiple sources
Source: VentureBeat, GitHub analysis, multiple technical breakdowns
Source: Alex Kim's blog, VentureBeat, GitHub analysis
Source: x402.org, Coinbase documentation, leaked source analysis
Source: Anthropic official blog, Axios, technical analyses
Source: Bloomberg, The Information, Financial Times
Source: Multiple sources
Want this for your saved videos?
Try Depth free — turn any social video into verified research.
Try Depth Free