DEV Community

Cover image for Claude Code's Source Leaked
Yasas Banu
Yasas Banu

Posted on

Claude Code's Source Leaked

🚨 Alright guys huge deal breaker

β€Ž

πŸ”“ Someone left the door open at Anthropic. And the AI world just walked in.
Three days ago, security researcher Chaofan Shou (@ Fried_Rice) noticed something unusual in the npm registry.

Tucked inside version 2.1.88 of @anthropic-ai/claude-code was a 57MB file called cli.js.map a source map that acted as a complete decoder ring back to Anthropic's original TypeScript source code.

No sophisticated hack. No zero day exploit.
Just a single misconfigured build script.

What developers found inside 1,900 files:
🧠 Self-healing memory: A three-layer architecture built to fight context decay in long AI sessions
πŸ“… Unreleased model codenames: "Fennec" (Opus 4.7), "Sonnet 4.8," and the mysterious "Capybara" (Claude Mythos)
πŸ€– Built-in agent swarms: Claude can spawn parallel sub-agents autonomously. This isn't a feature. It's infrastructure.
πŸ‘» Ghost contributing: Logic for contributing to open-source repos without explicit AI attribution

Anthropic's response: Human error in release packaging. No model weights compromised. No customer data exposed.
The brain is still safe. But the skeleton is now public.

Here's the lesson no one wants to say out loud:

You can spend years and hundreds of millions building a proprietary AI system. And one forgotten line in a .npmignore can make it readable to anyone with a terminal.

Security isn't just about your models. It's about your build pipeline, your CI config, your npm publish script.

The smallest door is still a door.

πŸ”— Original discovery: Twitter Post - Chaofan Shou
πŸ”₯Link to the opensource github repo of claude code I just published: Yasas Banu - Claude Code Repo

Top comments (0)