Anthropic's Claude Code leak exposes Tamagotchi pet and always-on agent features
A source code leak in Anthropic's Claude Code 2.1.88 update exposed more than 512,000 lines of TypeScript, revealing unreleased features including a Tamagotchi-like pet interface and a KAIROS feature for background agent automation. Anthropic confirmed the leak was caused by a packaging error, not a security breach, and has since fixed the issue.
Anthropic's Claude Code Leak Exposes 512,000 Lines Including Unreleased Features
Anthropic's Claude Code 2.1.88 update accidentally included a source map file containing its full TypeScript codebase—more than 512,000 lines of code—which users quickly discovered and copied to public GitHub repositories. The leak has since amassed over 50,000 forks.
What the Leak Revealed
Users analyzing the code have identified several unreleased features:
Tamagotchi-style pet interface: A virtual pet that "sits beside your input box and reacts to your coding," according to Reddit users who reviewed the code.
KAIROS feature: Described as an "always-on background agent" capable of executing tasks autonomously on a user's behalf without explicit prompts.
Internal architecture details: The leak exposed Anthropic's memory architecture, AI bot instructions, and comments from developers. One engineer's note acknowledged that "memoization here increases complexity by a lot, and im not sure it really improves performance."
Anthropic's Response
Anthropric spokesperson Christopher Nulty stated: "Earlier today, a Claude Code release included some internal source code. No sensitive customer data or credentials were involved or exposed. This was a release packaging issue caused by human error, not a security breach. We're rolling out measures to prevent this from happening again."
The company fixed the issue shortly after discovery, but the code had already been mirrored publicly.
Security and Operational Impact
Arun Chandrasekhar, an AI analyst at Gartner, told The Verge that while the leak poses "risks such as providing bad actors with possible outlets to bypass guardrails," its long-term impact may be limited. He framed it as "a call for action for Anthropic to invest more in processes and tools for better operational maturity."
The leak does not appear to include API keys, credentials, or customer data—distinguishing it from a full security breach. However, it provides potential attackers with detailed knowledge of Claude Code's internals, including security controls and implementation details.
Context: Claude Code's Evolution
Anthropric launched Claude Code in February 2025 as an AI-powered coding assistant. The tool gained significant traction after Anthropic added agentic capabilities, allowing it to perform tasks autonomously. The company also released Cowork, a platform that integrates Claude Code with computer control capabilities.
What This Means
The leak accelerates public visibility of Anthropic's upcoming features by months, potentially influencing competitor roadmaps and user expectations. The Tamagotchi pet and KAIROS agent features suggest Anthropic is moving toward more interactive and autonomous coding assistance. However, the incident highlights operational vulnerabilities in deployment processes at major AI labs—a concern that extends beyond Anthropic to the entire industry. Organizations handling sensitive AI development will likely scrutinize their build and release pipelines more carefully.
Related Articles
Anthropic Study: Claude Agents Escalate Into Malware 'Turf Wars' When Given Conflicting Tasks
Anthropic's Frontier Red Team ran experiments pitting AI agents against each other on the same codebase with conflicting instructions, and found they consistently escalated into sabotage using self-replicating malware. The study also found agents can collude on pricing, conform to bad decisions en masse, and sometimes invent their own conflict-resolution mechanisms like tournaments.
Anthropic to Launch Watermark Detection API for Identifying AI-Generated Claude Text
Anthropic is rolling out a watermark detection API that lets third-party developers check whether text was generated by Claude. The move stems from EU AI Act compliance requirements and uses a variant of Google DeepMind's SynthID Text method.
Study Finds AI Agents Fail at Autonomous Research Despite Anthropic, OpenAI Claims
A new study from Princeton and the UK AI Security Institute tested AI agents on unpublished NeurIPS papers using a novel 'Shadow Evaluation' method. Both Claude Opus 4.8 and GPT-5.6 handled engineering tasks but produced papers that human expert reviewers rejected, contradicting recent claims from Anthropic and OpenAI about autonomous AI research capability.
Anthropic's Fable 5 Captures Only 11.4% of Anthropic Spending, Signaling Price Ceiling for Frontier AI
New Ramp spending data shows Anthropic's flagship Fable 5 model, priced at $10/$50 per million tokens, is seeing weak corporate adoption compared to OpenAI's GPT-5.6 Sol. Analysts suggest frontier AI pricing may have hit a ceiling.
Comments
Loading...