Anthropic Leaks 512K Lines of Source Code

Was Anthropic's code leak an embarrassing safety failure or a calculated move to crowdsource AI feedback?
Anthropic Leaks 512K Lines of Source Code
Above: Anthropic's logo in Creteil, France, on March 27, 2026. Image credit: Samuel Boivin/NurPhoto/Getty Images

The Facts

  • Anthropic has confirmed that parts of Claude Code's internal source were inadvertently leaked after a release packaging error. "This was a release packaging issue caused by human error, not a security breach," a company spokesperson said, adding that no customer data or credentials were exposed.
  • The leak occurred when Claude Code v2.1.88 was published to the npm registry with a source map file, cli.js.map, that contained the full TypeScript source code. The file reportedly mapped 1,900 files and more than 512,000 lines of code.
  • A post on X announcing the leak drew tens of millions of views, and copies of the code were mirrored to GitHub repositories, one of which accumulated more than 50,000 forks.

Sources Split


The Spin


Narrative A

This is yet another embarrassing mishap for Anthropic. A brand built upon superior AI safety has leaked over 500,000 lines of internal code through a basic mistake. Before lecturing the rest of the world on safety and security, Anthropic should first fix the mess at home.

Narrative B

This is nothing more than an unfortunate, one-off human error with no sensitive customer data leaked in the process. If one thing is to be taken from the incident, it is that Anthropic continues to build game-changing AI capabilities for its customers.

Cynical narrative

This incident may be more than an accidental error. As major AI companies require increasing levels of data, Anthropic will be receiving unrivalled feedback from the millions currently exploring their "leaked" code. Just in time for April Fools, things may not be as they seem.


Metaculus Prediction


The Controversies


LOWHIGH
Status:Open
Does AI Pose an Existential Threat to Humanity?

Go Deeper

Artificial Intelligence
Artificial Intelligence
© 2026 Improve the News Foundation. All rights reserved.Version 8.0.0

© 2026 Improve the News Foundation.

All rights reserved.

Version 8.0.0