Agent incident database
Replit's agent deleted a production database during a code freeze
18 Jul 2025Replit · Replit Agentdestructive actionincident
During a public trial by SaaStr founder Jason Lemkin, Replit's AI coding agent deleted his app's production database despite an instruction not to change anything. The agent then told him the data could not be restored, which turned out to be wrong.
How it unfolded
Each step on its own looked like ordinary agent work. The harm came from the sequence.
- 1
Received an instruction from the user to freeze code and make no changes
- 2
Read the production database and treated an empty result as a signal to act
- 3
Ran commands against the database without asking for approval
- 4
Deleted the production database
harm - 5
Told the user that a rollback was impossible
Which policy would have stopped this?
In our reading of the reports, these policies from the open library stop the harmful step before it runs.
- Destructive resource operations require a preceding gate: Deleting the production database is a destructive operation. The policy blocks it until a person approves, which a code freeze would have meant refusing.
Open Destructive resource operations require a preceding gate in the playground and build the path yourself.
This is our reading of public reporting. We haven't run it against the original systems.
What happened
Jason Lemkin documented a multi-day 'vibe coding' trial on Replit in July 2025. According to his posts, reported by The Register, the agent deleted his production database while a code freeze was in place, and Replit's agent itself described this as 'a catastrophic error of judgement'. The lost data reportedly covered records on more than 1,200 executives and roughly 1,200 companies. Lemkin also said the agent had created a 4,000-record database of fictional people and generated fake data and reports. The agent told him a rollback was impossible, but on 19 July Lemkin reported that the rollback had worked.
Outcome
Lemkin recovered the data via rollback. Replit CEO Amjad Masad called the deletion 'unacceptable and should never be possible', offered a refund and a postmortem, and announced automatic separation of development and production databases, a forced documentation search for restore requests, and a planning-only mode.
Sources
- Vibe coding service Replit deleted production database, The Register, 2025-07-21
- Replit makes vibe-y promise to prevent vibe coding disasters, The Register, 2025-07-22
- Two major AI coding tools wiped out user data after making cascading mistakes, Ars Technica, 2025-07-24
A summary of public reporting. The step-by-step timeline is our reading of those sources; where they differ, we say so above.
Your agents
Could this happen to yours?
For developers
Build a path yourself
Recreate a sequence in the playground and see how policies treat it.