Anthropic’s DMCA Blunder Took Down 8,100 GitHub Repos


TL;DR

  • Overbroad Takedown: Anthropic’s DMCA filing against leaked Claude Code source code accidentally swept up approximately 8,100 GitHub repositories beyond the intended target.
  • Root Cause: Anthropic accidentally uploaded Claude Code’s complete source code to NPM, exposing nearly 2,000 files and over 512,000 lines of code.
  • Access Restored: Anthropic retracted the bulk of the notices, limiting enforcement to one repository and 96 forks, and GitHub restored access to all affected repositories.
  • Pattern of Leaks: The incident marks Anthropic’s third code or data leak in under a year, raising concerns about operational maturity ahead of a planned IPO.

Anthropic accidentally took down approximately 8,100 GitHub repositories after filing an overbroad DMCA takedown notice targeting leaked Claude Code source code on March 31, 2026. Anthropic has since retracted the bulk of the notices, and GitHub restored access to the affected forks.

Now Anthropic’s third code leak in under a year, the incident compounds reputational risk as the company prepares for a public offering. Thousands of developers who had legitimately forked Anthropic’s own public Claude Code repository found their projects temporarily blocked without warning.

According to Anthropic, the targeted repository was part of a fork network connected to its own public Claude Code repo, causing the takedown to reach far more repositories than intended. Anthropic retracted notices for all but one repository and 96 forks containing the actual leaked code. Boris Cherny, Anthropic’s head of Claude Code, publicly confirmed the mass takedown was accidental.

 

How the Source Code Leaked

On March 31, a software engineer discovered the Claude Code source code leak when Anthropic accidentally included its source files in a release update. Rather than publishing only the compiled version of Claude Code to NPM, Anthropic uploaded the complete source code, a release packaging error that exposed nearly 2,000 source code files and over 512,000 lines of code.

However, Anthropic described the incident as “a release packaging issue caused by human error, not a security breach,” with no customer data or credentials involved, according to Fortune. Leaking proprietary code through a packaging error and then compounding the damage with an overbroad legal filing points to a gap between Anthropic’s engineering velocity and its release management controls.