The Safety-First Company's Source Code Leaked: Here's What Was Inside
At 4am on April 1st, Anthropic — the $380bn safety-first company — accidentally shipped the entire source code of Claude Code in an npm package. A 57-megabyte source map file, 500,000 lines of TypeScript, publicly available long enough to be mirrored across the internet before the DMCA notices landed. Within hours, OpenAI's Codex had rewritten it in Python. A fork called Claw Code — Claude Code running on any model — crossed 50,000 GitHub stars faster than any repository in history. The anti-distillation poison pills built to mislead competitors training on Claude's outputs? Also now public.
What the code actually contains is the more instructive story. Not alien superintelligence — file after file of hard-coded strings instructing Claude to please not do anything weird. A piece of code scanning for signs the user is having a bad time. An 'undercover mode' stripping Claude's fingerprints from outputs. The comments are denser than any human-written codebase because they weren't written for humans — they were written for the AI building its own tooling in a recursive loop. The safety-first company's safety architecture, exposed, turns out to be artisanal prompt engineering, a nervous parent's note, and a great deal of very boring plumbing that quietly runs the world.