Editorial illustration for Claude leak of 512,000+ lines reveals Tamagotchi-style pet, always‑on agent
Claude Source Code Leak Reveals AI Companion Secrets
Claude leak of 512,000+ lines reveals Tamagotchi-style pet, always‑on agent
Over half a million lines of Claude’s source code have surfaced online, sparking a flurry of analysis among the community that follows Anthropic’s work. While the leak itself is a technical curiosity, what makes it noteworthy is the glimpse it offers into parts of the model that have never been demonstrated publicly. Engineers and hobbyists who’ve parsed the files say they’ve identified a Tamagotchi‑style virtual pet and an “always‑on” conversational agent—features that suggest a shift toward more persistent, personality‑driven interactions.
The code also appears to contain internal prompts and memory‑handling routines, hinting at how the system might retain context across sessions. If the findings are accurate, they could reshape expectations for upcoming releases and raise questions about how Anthropic plans to balance novelty with safety. The more than 512,000 lines of leaked code appear to show unreleased features, instructions for Claude, and more.
Users who have dug into the code claim to have uncovered upcoming features, Anthropic's instructions for the AI bot, and insight into its "memory" architecture. Some things spotted by us.
The more than 512,000 lines of leaked code appear to show unreleased features, instructions for Claude, and more. Users who have dug into the code claim to have uncovered upcoming features, Anthropic's instructions for the AI bot, and insight into its "memory" architecture. Some things spotted by users include a Tamagotchi-like pet that "sits beside your input box and reacts to your coding," according to a post on Reddit, along with a "KAIROS" feature that could enable an always-on background agent.
Users also found a comment from one of Anthropic's coders, who admits at one point that the "memoization here increases complexity by a lot, and im not sure it really improves performance." Though Anthropic later fixed the issue, that didn't stop users from copying the code to a repository on GitHub, which has since amassed more than 50,000 forks (or copies of the repository). Anthropic launched Claude Code in February of 2025, and the tool picked up more steam after adding agentic capabilities that perform tasks on a user's behalf. "Earlier today, a Claude Code release included some internal source code.
Was the leak intentional? Probably not. The 512,000‑line source map gives a rare glimpse into Claude Code's internals, revealing a Tamagotchi‑style pet and an always‑on agent that Anthropic hasn't publicly documented.
Users who examined the files say they have identified unreleased features, instruction sets for the AI, and hints about its memory architecture, yet the extent to which these components will appear in future releases is still unknown. Some of the code appears to be scaffolding for upcoming functionality, but without official confirmation Anthropic's roadmap cannot be inferred reliably. The presence of a virtual pet suggests an experimental direction, though whether it will become a core part of the product remains uncertain.
Overall, the leak supplies valuable data for researchers and competitors, but it also raises questions about security practices and the maturity of the underlying system. Until Anthropic addresses the breach or comments on the code, the practical impact of these findings stays largely speculative.
Further Reading
- Claude Code Source Code Leaked? Here's what it contains - Lowcode Agency
- Anthropic left details of unreleased AI model, exclusive CEO event ... - Fortune
- Claude Code Leaks Data via Malicious Environment ... - GitHub Advisory
Common Questions Answered
What is the Tamagotchi-style pet feature discovered in Claude's leaked source code?
According to the leaked code analysis, the Tamagotchi-like virtual pet is designed to sit beside the input box and react to user interactions, particularly during coding activities. This feature suggests Anthropic is exploring more interactive and playful AI companion experiences beyond traditional conversational interfaces.
How many lines of Claude's source code were leaked online?
The leaked source code comprises over 512,000 lines, providing an unprecedented glimpse into Claude's internal architecture and unreleased features. This extensive code leak has sparked significant interest among engineers and AI enthusiasts who are analyzing the potential new capabilities.
What is the 'KAIROS' feature mentioned in the leaked Claude source code?
The KAIROS feature appears to be related to an 'always-on' conversational agent capability that was not previously publicly documented by Anthropic. While the full details are not completely clear, the feature seems to suggest a more persistent and continuously engaged AI interaction model.