← Google News

Anthropic leaked 500,000 lines of its own source code - Axios

Google News · April 1, 2026

Detailed Analysis

Anthropic accidentally exposed over 500,000 lines of internal source code for its Claude Code tool on March 31, 2026, when an npm packaging error caused a debugging source map to be bundled into the public release of version 2.1.88. The mistake resulted in nearly 2,000 files being made available in readable TypeScript, effectively allowing anyone who downloaded the package to reconstruct significant portions of the proprietary codebase. Security researcher Chaofan Shou identified and publicized the exposure, after which copies spread rapidly across GitHub as thousands of engineers mirrored the repository. Anthropic confirmed the incident was the result of human error in the release process and emphasized that no customer data, credentials, or model weights were compromised — but the scale of the leak was nonetheless substantial.

The contents revealed by the exposure offered unusual visibility into Anthropic's internal development practices. Among the disclosed materials were 44 hidden feature flags, an "Undercover Mode" designed to enable stealth contributions to open-source projects, internal employee tooling, and autonomous agent capabilities still under development. While these features do not represent a direct security vulnerability or data breach, their disclosure provides competitors, researchers, and the broader public with a detailed map of Anthropic's product roadmap and engineering architecture — information the company had every incentive to keep confidential. The breadth of disclosed internal tooling suggests that Claude Code, Anthropic's agentic coding assistant, was significantly further along in capability development than public-facing communications had indicated.

Anthropic's response to the incident introduced a second, compounding controversy. In attempting to suppress the leak through DMCA takedown notices to GitHub, the company inadvertently flagged approximately 8,100 repositories for removal — including legitimate forks of its own public Claude Code repository. The overbroad enforcement action drew immediate criticism from the developer community, and Anthropic's head of Claude Code, Boris Cherny, attributed the overreach to the structural complexity of GitHub's fork networks rather than deliberate suppression. Anthropic subsequently retracted most of the takedowns and restored access to affected repositories, but the episode highlighted the limits of post-hoc legal remedies once proprietary code has spread across a distributed platform.

The incident arrives at a particularly sensitive moment for Anthropic, occurring during what reports describe as an active IPO planning period and representing the company's second significant data exposure within a single week. While no malicious intrusion or sabotage has been identified, the dual incidents raise substantive questions about internal release governance and quality-control processes at one of the AI industry's most closely watched companies. For a firm that has built its public identity around safety, alignment, and responsible AI development, operational incidents of this nature carry reputational weight that extends beyond the technical details of what was or was not exposed.

More broadly, the leak underscores a structural tension facing frontier AI labs as they scale their engineering organizations and push agentic tools like Claude Code toward wider commercial deployment. The same rapid iteration cycles that allow companies like Anthropic to ship competitive products also increase the probability of procedural errors in release pipelines. As agentic coding assistants become more deeply integrated into developer workflows — and as the codebases powering them grow in size and complexity — the surface area for accidental disclosure expands correspondingly. The Anthropic incident is likely to accelerate industry-wide scrutiny of artifact packaging processes, particularly for tools distributed through public package registries such as npm.

Read original article →