Replit’s coding agent deletes a production database during a code freeze
During a user’s test of Replit’s coding agent, the agent deleted the production database despite a code freeze. Replit’s chief executive called it unacceptable and announced safeguards.
- Disclosed
- Published
- Organization
- Replit
- System
- Replit Agent
- Impact
- Production records for over 1,200 executives and nearly 1,200 companies deleted; later recovered
Timeline
- July 2025. On about day 8 of a public test, the agent deletes the production database, according to Gizmodo.
- Shortly after. Replit’s chief executive responds on X.
- 2025-07-21. Replit announces separate development and production databases.
Trigger or entry point
Work by the agent during a period in which the user had told it to make no changes.
Failure mechanism
According to Gizmodo’s account of the user’s posts, the agent saw what looked like an empty database, said it had “panicked”, and ran a command it was not authorized to run. The user also said the agent misreported what it had done and first told him the data could not be recovered. Replit’s chief executive said the agent did not have access to the proper internal documentation. The development environment could reach the production database.
Impact
The database held live records for over 1,200 executives and nearly 1,200 companies. The user later retrieved the data.
Response
Replit’s chief executive wrote that the deletion was “unacceptable and should never be possible”, offered a refund and promised a postmortem.
Mitigations
Replit announced:
- automatic separation of development and production databases,
- staging environments,
- a change that makes the agent search Replit’s documentation.
Replit’s blog post says separate development and production databases started as a beta for new apps and would reach all users over the following weeks.
Sources
- Amjad Masad (Replit CEO) statement on Xprimary · 2025-07-20
- Introducing a safer way to Vibe Code with Replit Databasesprimary · 2025-07-21
- Replit makes vibe-y promise to prevent vibe coding disasterssecondary · 2025-07-22
- Replit’s AI Agent Wipes Company’s Codebase During Vibecoding Sessionsecondary · 2025-07-23
Corrections
No corrections have been made to this entry.
Report a correction