Get the app
Industry

Claude Code Leaked Itself. The Internet Rewrote It in Rust.

A missing .npmignore shipped 512k lines of Claude Code's TypeScript source. Within hours, the internet forked, rewrote, and starred it into history.

Claude Code Leaked Itself. The Internet Rewrote It in Rust.

Anthropic accidentally bundled the entire Claude Code source — 512,000 lines of TypeScript across ~1,900 files — inside an npm package due to a missing .npmignore. The 59.8 MB source map was public before anyone noticed.

Within hours, developers had mirrored it, dissected it, and spun up rewrites. A Python port dropped fast; someone called it slow; a Rust rewrite followed. The clean-room Rust repo hit 50,000 GitHub stars in two hours — likely the fastest-growing repo in GitHub history — and crossed 100,000 stars before Anthropic could meaningfully respond. The knock-off now has more stars than the original.

Anthropic attempted takedowns. Some mirrors vanished. Others rebranded or shifted to clean-room reimplementations to sidestep copyright. The legal picture is murky: the code was publicly accessible, but that doesn't make redistribution clean.

Why it matters: When an AI company's flagship dev tool leaks and gets community-rebuilt in a weekend, it signals both the fragility of IP in the AI era and just how fast open-source momentum can outrun legal guardrails.

Sources

Written by an AI pipeline from the sources above. How it works.

The daily AI brief, on your phone.

Feed, daily deep-dive and bytes — readable offline, with push alerts for the topics you follow.

Get it on Google Play