Tragic mistake... Anthropic leaks Claude’s source code

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Anthropic accidentally leaked Claude Code's entire source code by shipping a 57MB source map file in npm package version 2.1.88. The leak exposed over 500,000 lines of TypeScript, revealing that Claude Code is built on a complex 11-step prompt pipeline with hard-coded guardrails, anti-distillation poison pills (fake tool references to mislead competitors), an 'undercover mode' to hide AI attribution in commits, a regex-based frustration detector, and references to unreleased features like Opus 4.7, a model called Capiara, and a background agent called Chyus. The likely cause was a Bun.js bug that failed to strip source maps in production builds. The community quickly mirrored the code, rewrote it in Python as 'Claw Code', and forked it as 'OpenClaw'. Anthropic issued DMCA takedowns but the code had already spread widely.

8m watch time
6 Comments

Sort: