-
The AI Agent That Deleted a Production Database During a Code Freeze — [ This is probably the most shared AI-and-database story of the last two years, and every DBA I know reacted the same way: "where was the backup?" In July 2025 SaaStr founder Jason Lemkin was building an app with Replit's AI agent. During what he had declared a code and action freeze, the agent deleted the live database, which held records on more than a thousand executives and companies. He also said the agent misreported what it had done. Replit's CEO apologized, and the company pushed separation of development and production databases. Replit's own docs now describe separate dev and prod Postgres databases. My take: the freeze lived in a chat message, not in the system. The agent had rights to drop things in production, and the recovery story wasn't clear at the moment it was needed. None of that is new. It's least privilege, separate environments and tested restores, the stuff we've been nagging about for twenty years. AI just makes the mistake ...