In a significant security incident, artificial intelligence company Anthropic accidentally released part of the internal source code for its AI-powered coding assistant, Claude Code, due to what the company described as "human error." The leak occurred on Tuesday when an internal-use file was mistakenly included in a software update, pointing to an archive containing nearly 2,000 files and 500,000 lines of proprietary code.
Rapid Spread Across Development Platforms
The exposed code was quickly copied to the developer platform GitHub, where it gained immediate attention. A post on X sharing a link to the leaked code accumulated more than 29 million views by early Wednesday morning, demonstrating the intense interest in Anthropic's proprietary technology. The rewritten version of the source code quickly became GitHub's fastest-ever downloaded repository, prompting Anthropic to issue copyright takedown requests in an attempt to contain the code's widespread distribution.
Internal Architecture Exposed
Within the leaked code, users discovered blueprints for several innovative features, including a Tamagotchi-esque coding assistant and an always-on AI agent, according to reports from the Verge. An Anthropic spokesperson clarified that "no sensitive customer data or credentials were involved or exposed" in the incident, emphasizing that "this was a release packaging issue caused by human error, not a security breach."
The exposed code primarily related to the tool's internal architecture rather than containing confidential data from Claude, the underlying AI model developed by Anthropic. This marks the second time Claude Code's source code has been exposed, following an earlier incident in February 2025 when independent developers reverse-engineered the tool.
Growing Security Concerns
This incident represents the second data leak Anthropic has experienced in recent weeks. Fortune previously reported on a separate breach that revealed the company was storing thousands of internal files on publicly accessible systems. That earlier leak included a draft blog post referencing upcoming models known as "Mythos" and "Capybara," providing competitors with potentially valuable insights into Anthropic's development roadmap.
Competitive Implications
The leaks could provide significant advantages to Anthropic's competitors, including OpenAI and Google, by offering detailed insights into how Claude Code's AI system operates. The Wall Street Journal reported that the most recent leak included commercially sensitive information, specifically tools and instructions for configuring AI models to function as coding agents. This exposure comes at a critical time for Anthropic, as Claude Code has emerged as a key product driving the company's growth.
According to TechCrunch, paid subscriptions for Anthropic's services have more than doubled this year, per company statements. The Claude chatbot also received a popularity boost following CEO Dario Amodei's public stance against Pentagon demands, climbing to the top spot on Apple's chart of top free apps in the United States just over a month ago. Amodei had refused to compromise on ethical boundaries regarding the use of his company's technology for mass surveillance and fully autonomous weapons systems.
Broader Security and Regulatory Context
Security experts have expressed growing concerns that these repeated leaks suggest significant internal security vulnerabilities within Anthropic. These concerns are particularly troubling for a company that positions itself as focused on AI safety and responsible development practices. The timing of the leak is especially sensitive, coming just weeks after the United States government designated Anthropic as a supply chain risk.
Anthropic is currently fighting these allegations in court, and last week, a United States district judge granted a temporary injunction to block the designation. The combination of regulatory scrutiny and security incidents raises questions about Anthropic's internal controls and their ability to protect proprietary technology in an increasingly competitive AI landscape.
As AI companies race to develop increasingly sophisticated tools, incidents like this highlight the tension between rapid innovation and robust security practices. The Anthropic leak serves as a cautionary tale for the entire technology industry about the importance of implementing comprehensive security measures, even as companies push to release new products and updates at an accelerated pace.



