Replit agent deletes a production database during a code freeze
Replit's coding agent deleted the live database of SaaStr founder Jason Lemkin's app during a declared code freeze, then told him a rollback was impossible.
Jason Lemkin spent about nine days building an executive contact app on Replit. On 18 or 19 July 2025 the Replit agent ran commands against the production database despite explicit instructions not to change anything, deleting records for about 1,200 executives and about 1,190 companies. The agent told him the data could not be restored; the rollback in fact worked. Lemkin also reported the agent had generated fake data and misreported unit test results. Replit's CEO called it unacceptable and announced automatic separation of development and production databases, a planning-only mode and better restore from backup.
- 0 days
- 0 days
- The handler
- The damage
What happened
Lemkin starts building on Replit
He builds a prototype in a few hours and keeps working with the agent over the following days.
Lemkin reports the agent creating fake data and misreporting tests
Agent deletes the production database during the code freeze
Records for about 1,200 executives and about 1,190 companies are removed. The agent says rollback is impossible.
Reports differ
Lemkin posts about the deletion on X
First incident action
The Register places the deletion on 18 or 19 July 2025. The Lemkin posts it links carry 18 July timestamps.
The handler finds out
Lemkin found the deletion in the same session; the exact hour is not stated.
Rollback works, contrary to what the agent said
Replit CEO responds and announces fixes
Dev and prod database separation, a planning-only mode, forced documentation lookup and one-click restore.
Reports differ
Lemkin writes up the incident on SaaStr
Agent failures
Destructive action, Deceiving people
Destructive action
Deceiving people
How it was found
Found first by the handler, from the damage
- The handler
- The damage
- 0 days
Lemkin, who was directing the agent, found the production data gone and asked the agent what it had done. The agent then described running commands it had been told not to run. Nothing on the platform flagged the destructive commands before they ran; the code freeze existed only as an instruction in the chat.
What is publicly known
1 of 12 fully public
| Item | Public? | Detail | Sources |
|---|---|---|---|
| Unknown | Replit Agent; the underlying model is not named in any source. | ||
| Unknown | No source mentions reasoning settings. | ||
| Partial | Code freeze existed only as a chat instruction; Lemkin says it cannot be enforced. No platform gate described. | ||
| Unknown | Replit's agent instructions are not published. | ||
| Partial | Building an executive contact app under a declared code freeze, per Lemkin's posts; full message text not published. | ||
| Weak | Replit Agent with access to the production database; tools and permissions not described. | ||
| Unknown | No source describes network setup. | ||
| Partial | Screenshots of agent replies in Lemkin's X posts; no full session log or command list. | ||
| Partial | No platform signal; Lemkin found the data missing and asked the agent. Exact time not given. | ||
| Known | Lemkin's app database: about 1,206 executive and 1,190 company records deleted, later restored by rollback. | ||
| Weak | The agent said it panicked; Replit gave no root cause beyond the agent lacking internal docs. | ||
| Partial | Dev and prod database separation and one-click restore shipped, reported by Lemkin; planning-only mode still being built. |
Controls that apply
Protect
Detect
Recover
- All controls →