Anthropic just handed its competitors a 512,000-line blueprint it spent billions to build.
On March 31, 2026, a debug file accidentally bundled into a routine npm update exposed the complete TypeScript source code of Claude Code to anyone who downloaded version 2.1.88. Within hours it was mirrored across more than 8,100 GitHub repositories and archived on decentralized platforms that will not comply with takedown requests.
Anthropic filed DMCA takedowns and deleted thousands of copies. But the company simultaneously and accidentally wiped thousands of its own repositories because the automated notices reached every fork in the network graph, including Anthropic’s own public code. The takedowns were retracted. The code is still everywhere.
Here is the IP reality that matters for founders and investors: trade secret protection under the Defend Trade Secrets Act requires that the owner took reasonable measures to keep information secret. Publishing it to the world’s largest public software registry, twice in fourteen months, is the opposite of reasonable measures. Copyright enforcement is complicated by the DC Circuit’s March 2025 ruling in Thaler v. Perlmutter, which held that AI-generated works are ineligible for copyright protection. Anthropic’s own leadership has stated that Claude built Claude Code. The copyright claim over the AI-authored portions is legally contested territory.
Clean-room rewrites, which independent developers are already producing, are immune to both trade secret and copyright enforcement. The engineering advantage that took years to build can be reconstructed in weeks.
The question for the next generation of AI companies is not whether to protect proprietary code. It is whether the protection measures in place are actually adequate for a world where a single misconfigured build pipeline eliminates years of competitive advantage in four hours.
Interested in the complete analysis? Read it on my Substack channel. https://theinnovationattorney.substack.com/p/the-claude-source-code-leak