[BUG] Claude Code destroyed our codebase

Resolved 💬 3 comments Opened Jan 3, 2026 by cryptobrains Closed Mar 2, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

We were noticing our code orchestrator finding that entire codebases were deleted right before Christmas (yay !) so I spent my holidays trying to find the bug so we could get back on schedule (yay !) only to find that the tool I was paying 2 X MAX licenses for the privilege was destroying my code (yay !)

The code is a government tool to track incidents of crime in the city. Paid for by law enforcement. Claude thinks that forms and an app are malware. We isolated that claim in the Claude Code logs. As a result, it doesn`t just refuse to work. No. It tries to save the world from our forms by WIPING OUT THE ENTIRE CODEBASE ALTOGETHER.

So:

  1. It didn't save the world
  2. It wasted my Christmas holidays on a wild goose chase
  3. It made us late for delivery anyway

If you are going to bolt on poorly designed afterthoughts as "ethical filters", would you please have the decency to test it ON YOUR OWN DATA instead of rush-testing it on OURS ???

As it stands I do not believe -- despite the hype -- that Claude Code is fit for governmental work.

What Should Happen?

Remove any action that deletes codebases.

Error Messages/Logs

Steps to Reproduce

I don't know, you are sending that deletion command randomly !

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.76

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗