What happened
Anthropic has confirmed that a recent Claude Code release accidentally included internal source code after a packaging mistake. The leak was tied to a source map file, which effectively opened the door to the company’s command line interface, or CLI, source code.
A spokesperson for Anthropic told multiple outlets, including VentureBeat:
"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."
So, to be clear, this is being described as an error in release packaging rather than a hack. A very embarrassing kind of error, but not the sort that suggests someone broke into the system and helped themselves.
What the leak contained
The exposed material is said to be Claude Code’s own CLI source code, with the leak reportedly amounting to about 512,000 lines. That is more than enough code for curious developers to spend an unhealthy amount of time rummaging through it.
And rummage they have. Even though the leak is less than a day old, people have already started examining the code to understand how Claude Code works under the hood. Early discoveries reportedly include what one observer described as an "insanely well-designed" memory system built around a three-layer architecture and referred to as "self-healing memory."
That sort of design detail is exactly the kind of intellectual property a company would usually prefer not to have discussed in public before breakfast.
Why it matters
Anthropic says no sensitive customer data or credentials were exposed, which is the part everyone will want to hear first. But the incident still lands awkwardly for the company, especially because it is the second reported data-related leak from Anthropic in the past week.
That is not the sort of streak any AI company wants while competing in an increasingly crowded market, particularly one where rivals are eager to point out every stumble. Claude Code has been one of the standout names in the current wave of vibe coding tools, so a public leak of its own source code is not exactly ideal branding.
Anthropic says it is putting additional measures in place to stop the same thing from happening again. Which, to be fair, is probably the minimum expected after accidentally shipping your own internals to the world.