Anthropic confirms it has leaked 512,000 lines of Claude Code’s source code, revealing some of its biggest secrets


  • Anthropic employee accidentally leaked Claude Code source via npm map file
  • Leak exposed 1,900 TypeScript files with over 500,000 lines of code, quickly mirrored on GitHub
  • Anthropic confirmed that no customer data was exposed, calling it a packaging error amid recent vulnerabilities such as ShadowPrompt and Cloudy Day.

An Anthropic employee accidentally leaked the source code of one of the most popular artificial intelligence (AI) assistants: Claude Code.

Security researcher Chaofan Shou posted on X, saying: “Claude Code’s source code was leaked via a map file in their npm registry! » The tweet itself has been viewed over 30 million times so far, and the numbers are growing quickly, showing just how popular the tool really is.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top