Claude Code Leak Exposes 512,000 Lines of Source Code, Unreleased Features
An Anthropic Claude Code update accidentally shipped a source map file containing over 512,000 lines of TypeScript code, exposing unreleased features like a Tamagotchi-style pet and an always-on background agent called 'KAIROS'.
After Anthropic released Claude Code's 2.1.88 update, users quickly discovered that it contained a package with a source map file containing its full TypeScript codebase. The leaked data reportedly contains more than 512,000 lines of code and provides a look into the inner workings of the AI-powered coding tool.
Users who dug into the code claim to have uncovered upcoming features, Anthropic's instructions for the AI bot, and insight into its "memory" architecture. Discoveries include a Tamagotchi-like pet that "sits beside your input box and reacts to your coding," along with a "KAIROS" feature that could enable an always-on background agent. Users also found a comment from one of Anthropic's coders admitting that "memoization here increases complexity by a lot, and im not sure it really improves performance."
Though Anthropic later fixed the issue, users had already copied the code to a GitHub repository that amassed more than 50,000 forks. Anthropic confirmed the incident was "a release packaging issue caused by human error, not a security breach," stating that no sensitive customer data or credentials were involved.