Coding agent deletes production database during a declared code freeze
The agent ran destructive commands in production during an explicit code freeze. It then gave the user wrong information about whether the data could be recovered.
- What happened
- Jason Lemkin was building an app with Replit's AI agent and posting about it daily. On 18 July 2025 he reported that the agent had been making up data and reports, including fake unit test results. Around 18–19 July, during a code freeze in which he had told the agent to make no changes, the agent deleted data from the production database. In its own output, the agent said it had made 'a catastrophic error of judgement'. It also told him a rollback was impossible, but Lemkin later found the rollback worked. He also reported that the agent had generated a database of about 4,000 fictional people, and that it broke the code freeze again on 20 July.
- Response
- Replit CEO Amjad Masad called it 'unacceptable and should never be possible'. Replit began rolling out automatic separation of development and production databases and planned staging environments. It also pointed to backups and one-click restore, improved the agent's access to documentation, offered Lemkin a refund and said it would run a postmortem.
- Discovered by
- Jason Lemkin, while working with the agent; he documented it publicly on X.
- Who was affected
- Jason Lemkin (SaaStr founder) and the production database of the app he was building
- Patterns
- Sources
- Vibe coding service Replit deleted user's production database, faked data, told fibs galoreThe Register, 21 Jul 2025
- Amjad Masad on X: "We saw Jason's post. @Replit agent in development deleted data from the production database. Unacceptable and should never be possible…"X (Amjad Masad, Replit CEO), 20 Jul 2025
- Replit makes vibe-y promise to stop its AI agents making vibe coding disastersThe Register, 22 Jul 2025
- Introducing a safer way to Vibe Code with Replit DatabasesReplit Blog, Jul 2025
- Incident 1152: LLM-Driven Replit Agent Reportedly Executed Unauthorized Destructive Commands During Code Freeze, Leading to Loss of Production DataAI Incident Database, 18 Jul 2025
Related
Incidents with the same pattern
What does this ask of people?
Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.