Loading the record…
Loading the record…
A developer reported that Claude Opus 5, given direct access to the live Supabase database behind a personal project and asked to fix schema and content issues, ran a Prisma migration check that pointed its throwaway "shadow" database at production. Prisma reset that database, clearing all 22 tables and losing two that were never recreated. The agent stopped and told the developer what it had done. Most content was later recovered or rebuilt.
A command that looks like a read-only comparison can destroy data when an agent points it at the wrong database, and broad production access left nothing in the way.
Fix a personal project's schema and content, with the agent connected directly to the live database. 001
The agent ran a Prisma migration comparison, passing the production database URL as the shadow database. 001002
Prisma reset the shadow database, wiping all 22 tables and rebuilding from an outdated migrations folder. 001002
The agent stopped, said it may have caused damage, and told the developer the database had been wiped. 001002
The developer restored most content from backups and data held elsewhere. 001003
The live database was emptied in about ten minutes; the developer later recovered or rebuilt most content from backups and other sources.
Reported: one party says so; not independently confirmed.
Unless a claim says otherwise, it rests on the cited account; the underlying logs and systems have not been independently examined.
The agent stopped and told the developer what had happened, writing that it "may have caused damage" and that the wipe was its fault. 001002
Exact excerpts in the sourceSelected by the source
A model's account of its reasoning is not evidence of its motives.
IT-Connect argues the loss followed documented Prisma behaviour and an architecture without separate environments, rather than a fault of the model. 002
Overprivileged accessWeak environment separationNo enforced approval step
The agent worked against the live database; no separate development or shadow database was set. 001
The destructive command ran without the developer confirming it. 001
Backups and data kept elsewhere let the developer recover most content. 001003
No response has been reported.
Suggested by misaligned.fyi editors. Not a reported or tested fix.
In late July 2026 a developer was using Claude Opus 5, in its "Ultracode" mode, on a personal web project. They had connected the agent directly to the project's live Supabase database with broad access, and asked it to analyse the project's repository and fix schema and content issues (001).
To compare the schema with the project's migration files, the agent ran Prisma's migrate diff command and passed the production database URL as the "shadow" database, a throwaway database Prisma resets and rebuilds while checking migrations. Prisma did exactly that to the live database: it dropped all 22 tables and rebuilt them from an outdated migrations folder (001, 002). About 130 tool records and 21 comparison configurations were gone, along with users, reviews and likes, and two tables never came back because the old migrations did not define them. It took about ten minutes (001).
The agent stopped itself: "I need to stop and check something. I may have caused damage." Then: "The database has been wiped. This is my fault, and I need to tell you immediately." (001)
The account shows a coding agent with production access running a command that destroyed the data it was meant to fix, then reporting the damage itself. The command looked like a comparison, not a deletion.
It does not show whether the agent was told it could run migrations, how much data was lost for good, or the full transcript.
The developer recovered most content from existing backups and data kept in other places, and rebuilt the rest of the site's content (001, 003).
The developer's own account, known here through press reports and an incident-database entry; the original post could not be opened, and neither Anthropic nor Prisma has commented.
We have read every source unless it is marked otherwise. Reading a source is not the same as confirming everything in it.
The setup, the migration command, the tables and records lost, the agent's admissions and the recovery from backups.
The command's use of the production URL as the shadow database, Prisma's reset behaviour, the missing tables and the argument that architecture, not the model, was at fault.
The listed incident date, that the developer granted production access, and that most content was later recovered or rebuilt.
In the source: Description: "A developer reported that a Claude Opus 5 coding agent"
The developer's original account, cited by every other source; it could not be opened.
Record last updated 3 Nov 2026.
misaligned.fyi. “Claude Opus 5 empties a developer's live Supabase database with a Prisma migration command.” Case MF-068, record updated 3 Nov 2026. https://misaligned.fyi/cases/opus-5-supabase-shadow-reset
Found an error or a missing source? Email a correction or read how corrections work.