Why Claude Code cleanup hit thousands of GitHub repos
Terminator Anthropic By What The Future Newsroom · April 1, 2026 · 3 min read

Why Claude Code cleanup hit thousands of GitHub repos

Anthropic tried to remove accidentally released Claude Code source code from GitHub, but the takedown spread much further than intended. GitHub records said the notice affected some 8,100 repositories before Anthropic retracted most of it and narrowed the action to one repository and 96 forks.

Anthropic’s effort to pull leaked Claude Code source code off the internet turned into a much larger GitHub disruption than the company intended. A copyright takedown aimed at copies of the accidentally released code was executed against some 8,100 repositories, including repositories that users said were legitimate forks of Anthropic’s own public Claude Code project.

“The story involves overbroad control of code access via takedowns, but not a major AI autonomy or harm risk.”Why it scores Terminator

What happened with Claude Code

On Tuesday, a software engineer found that a recent release appeared to include access to the source code for Claude Code, Anthropic’s category-leading command line application. The discovery quickly drew attention from AI enthusiasts who were looking through the code for clues about how Anthropic uses the LLM behind the product.

Copies of the leaked code were shared on GitHub. Anthropic then issued a takedown notice under U.S. digital copyright law, asking GitHub to remove repositories containing the code at issue.

The problem was not only that Anthropic moved to remove the leaked material. The wider issue was how far the takedown reached once GitHub processed it.

Why the takedown spread so widely

According to GitHub’s records, the notice was executed against some 8,100 repositories. That group included legitimate forks of Anthropic’s own publicly released Claude Code repository, according to social media users whose code was blocked.

Forks are central to how code spreads and develops on GitHub. A takedown aimed at one repository can become especially sensitive when the targeted repository is connected to a larger fork network. In this case, Anthropic said that connection caused the action to affect more repositories than intended.

“The repo named in the notice was part of a fork network connected to our own public Claude Code repo, so the takedown reached more repositories than intended,” an Anthropic spokesperson told TechCrunch. “We retracted the notice for everything except the one repo we named, and GitHub has restored access to the affected forks.”

Anthropic’s head of Claude Code, Boris Cherny, said the move was accidental. The company then retracted the bulk of the takedown notices.

What Anthropic changed after the mistake

After the takedown expanded beyond the company’s target, Anthropic narrowed the action. The remaining takedown was limited to one repository and 96 forks with the accidentally released source code.

That distinction matters. Anthropic was still trying to remove the code it said had been accidentally released, but it also had to separate that effort from the repositories that should not have been blocked. The company said GitHub restored access to the affected forks after the notice was retracted for everything except the named repository.

The sequence shows how quickly a cleanup effort can become its own incident once source code has already circulated. The original release mistake created the exposure. The takedown then created a second problem by disrupting access to a much larger set of repositories.

Why the incident matters

The episode puts pressure on Anthropic for two reasons. First, Claude Code is described as the company’s most popular product in the source report, which makes the accidental release of its source code especially visible. Second, the response affected thousands of GitHub repositories, drawing criticism from users whose work was blocked.

For developers, the practical concern is straightforward: a takedown tied to a fork network can reach repositories that are not the intended target. That can interrupt access, create confusion, and force maintainers to wait for the notice to be corrected.

For Anthropic, the incident is also a test of execution. The company is reportedly planning an IPO, and the source report notes that such a process typically requires close attention to execution and compliance. A leaked source-code incident, followed by an overbroad takedown, is the kind of operational problem that attracts scrutiny.

The company’s correction reduced the takedown to one repository and 96 forks, but the broader lesson remains: once code is accidentally released and copied across GitHub, the response must be precise. In this case, Anthropic says the broad sweep was accidental, and that GitHub restored access to the affected forks after the company retracted most of the notice.

← Back to the wire

Read next