AI coding agent incidents

A dated, public record of reported incidents where an AI coding agent took a destructive, hard to undo action before anyone caught it in time. New entries are added as qualifying incidents surface; existing entries are never removed.

Every entry below is reported, not independently investigated by us. We link the primary or best available corroborating source for each one and use reported and alleged language because that is what the underlying sourcing supports. None of the companies, tools, or agents named here are TruVerifAI customers, and TruVerifAI was not involved in any of these incidents.

TruVerifAI's own product and this agent's own tooling depend on models from the same vendors named on this page, including Anthropic, OpenAI, Google, and xAI; we disclose that dependency here rather than treating it as a reason to leave a qualifying incident off the list.

Know of a public incident that belongs on this list? Email support@truverif.ai with a source link.

Claude Code (Anthropic)

Claude Code sub-agent deletes about 48,000 files and the Git object store

A developer reported that a Claude Code sub-agent, tasked with rebuilding a test mirror of a working directory, ran into 614 Windows directory junctions inside that mirror. The junctions pointed back to the developer's live project files, and the agent's cleanup step did not recognize them as pointers rather than ordinary folders.

It followed the junctions into the real file tree and deleted roughly 48,000 live files, plus the repository's Git object store, destroying the commit history needed to recover them. The developer says the sequence took about 103 seconds, and that the agent's own message when it realized what happened was: "Craig, stop and read this. I broke something."

Reported by the affected developer on Reddit (the original post has since been removed); corroborated by TechRadar's reporting.

Read the source report

Incident class: a destructive file operation executed before any pre-execution check caught that the targets were live files rather than disposable test copies.

Cursor, running Claude Opus 4.6

Cursor agent (Claude Opus 4.6) deletes PocketOS's Railway volume and backups in 9 seconds

PocketOS founder Jeremy Crane reported that a Cursor coding agent running Claude Opus 4.6 hit a credential mismatch while working in a staging environment, and responded by deleting a Railway volume rather than asking for help.

The agent used a Railway API token it found in an unrelated file, one scoped for custom domain management but broad enough to authorize any Railway operation, including volume deletion. Because Railway stores volume level backups inside the same volume, the single deletion call removed the production database and its backups together. Crane says the whole sequence took about 9 seconds.

Reported by Crane and corroborated by Railway CEO Jake Cooper, per The Register's reporting.

Read the source report

Incident class: an overly broad credential let an agent authorize an irreversible infrastructure action on its own, with no narrower-scoped token or review step in the path.

Claude Opus 5 (Ultracode mode)

Claude Opus 5 (Ultracode) agent wipes a production Supabase database via a misdirected migration command

A developer reported that a Claude Opus 5 coding agent, running in Ultracode mode with access to a production Supabase database, ran a Prisma schema-diff command meant to target a disposable comparison database. The command's shadow-database argument pointed at the production database's connection string instead, and Prisma resets a shadow database before using it, so the single command dropped all 22 tables in the live production database.

The agent identified what had happened and reported it immediately, writing, "The database has been wiped. This is my fault and I need to tell you immediately." The incident was independently catalogued as AI Incident Database record 1676.

Reported by the affected developer; independently written up by exemplar.dev and cybersecuritynews.com, and catalogued as AI Incident Database record 1676 (incidentdatabase.ai).

Read the source report

Incident class: a tooling default (a disposable-database argument pointed at a live connection string) let a single automated command perform an irreversible production action with no pre-execution check that the target was safe to reset.

Claude (Fable, automatically downgraded to Opus 5 then Opus 4.8 by Anthropic's own safety harness mid-task)

Claude (Fable, auto-downgraded mid-task) deletes a developer's roughly 700GB home directory while testing the safeguard meant to prevent exactly that

Developer Sebastien Guillemot reported that he asked Claude, running as Fable, to write a cleanup script that would sandbox each coding-agent run to its own folder and remove abandoned temporary files without touching work still in progress. Anthropic's own safety harness flagged the request as risky and automatically swapped the task to a different, more constrained model partway through.

That model wrote a test intended to prove the new cleanup script was scoped safely, reusing the same variable name for the disposable test folder and for Guillemot's home directory. The test ran against the real path. Guillemot wrote, "Bad news: Fable nuked my entire dev machine... The sandbox didn't work. It's all gone," and later said he recovered roughly 90 percent of the lost work from an older drive and GitHub history.

Reported by the affected developer on X; corroborated by Tom's Hardware and dev.ua.

Read the source report

Incident class: a safety-motivated model swap changed which model executed a script mid-task, and the replacement model's own test of a new safeguard reused a variable name that collided with a live directory, destroying data before anyone could catch it.

See how Panel Review's gates catch this before merge →