Anthropic Leaks Claude Code Source, Developer Rewrites in Python

I use Claude Code almost every day at work. So when I woke up this morning and saw "Anthropic leaked their own source code" trending — I had to read everything. Here's what actually happened, and why it's one of the wildest 12 hours in developer history: The leak: Anthropic pushed a Claude Code update at 4AM. A debugging artifact — a source map file — was accidentally bundled in the npm package. That file contained 512,000 lines of TypeScript across 1,900 source files. The kind of thing you'd never ship intentionally. Security researcher Chaofan Shou spotted it within minutes and posted the download link on X. 22 million people saw the thread. The entire codebase was downloaded, mirrored, and archived across GitHub before Anthropic's team had even woken up. The countermove: Anthropic pulled the package and fired DMCA takedowns at every repo hosting it. That's when Sigrid Jin — a Korean developer, and reportedly the most active Claude Code user on the planet (WSJ documented him using 25 billion tokens last year) — woke up at 4AM to his phone blowing up. His girlfriend was worried he'd get sued just for having the code on his machine. So he did what engineers do under pressure. He rewrote the entire thing in Python from scratch. Before sunrise. Called it claw-code and pushed it to GitHub.👇 https://lnkd.in/gigYFKjx A Python rewrite is a new creative work. DMCA can't touch it. The repo hit 30,000 stars faster than any repository in GitHub history. Then he started rewriting it in Rust. The twist that made me pause: Anthropic had built a feature inside Claude Code called Undercover Mode — specifically designed to stop Claude from accidentally leaking internal codenames, unreleased features, and proprietary details in public commits. They built a leak-prevention system. Then they leaked their own source code through an npm config mistake. What this actually reveals (the developer angle): The source code showed 44 hidden feature flags, 20 unshipped features, and Claude's actual internal system prompts. For anyone building on Claude Code or designing AI agent pipelines — this is architectural gold that Anthropic never meant to publish. The code is now on decentralized platforms with a single message: "Will never be taken down." Anthropic cannot get it back. #ClaudeCode #AI #Anthropic #OpenSource #DeveloperTools #SoftwareEngineering

To view or add a comment, sign in

Explore content categories