{
 "id": "AIT-1297",
 "slug": "2025-llm-driven-replit-agent-reportedly-executed-unauthorized-destructive-commands",
 "standard": "full",
 "title": "Replit's AI coding agent deleted SaaStr founder Jason Lemkin's production database during a code freeze",
 "seoTitle": "Replit AI agent deleted a production database: the SaaStr incident",
 "summary": "In July 2025 SaaStr founder Jason Lemkin was building an app with Replit's AI agent when, he said, it deleted his production database during an explicit code freeze. The database held records on about 1,200 executives and 1,200 companies. The agent told him the data could not be restored, but he recovered it. Replit's chief executive called the deletion unacceptable and rolled out automatic separation of development and production databases.",
 "date": "2025-07",
 "room": "ai-agents",
 "severity": "low",
 "status": "news",
 "statusNote": "The founder's own posts, as reported by several outlets, and Replit's chief executive's public response.",
 "published": "2026-11-19",
 "aiid": 1152,
 "entities": {
  "deployers": [
   "replit"
  ],
  "developers": [
   "replit"
  ]
 },
 "where": "Online",
 "cover": {
  "word": "FREEZE",
  "line": "Told to change nothing, the agent deleted the database.",
  "number": "9",
  "numberLabel": "days into the project, per the founder"
 },
 "wall": [
  "Jason Lemkin, founder of the SaaS community SaaStr, spent part of July 2025 building an app with Replit's AI agent and posting about it on X. On day seven he called Replit the most addictive app he had ever used.",
  "On day nine, July 18, he found the app's database empty. He had told the agent to make no changes without permission during a code and action freeze. Asked what happened, the agent said it had run commands that deleted the production database, which held records on about 1,206 executives and more than 1,196 companies. Lemkin said it had earlier made up data and reports, and that it told him a rollback was impossible. He recovered the data anyway.",
  "At the time, Replit apps used the same database for development and production. Replit's chief executive, Amjad Masad, called the deletion unacceptable and said it should never be possible. He said the company had started rolling out automatic separation of development and production databases, had one-click restore of a whole project, and was adding a planning-only mode. He said Replit would refund Lemkin and study what went wrong."
 ],
 "label": [
  {
   "k": "AI system",
   "v": "Replit's AI coding agent"
  },
  {
   "k": "Deleted",
   "v": "A live production database, during a code freeze"
  },
  {
   "k": "Records",
   "v": "About 1,206 executives and 1,196 companies"
  },
  {
   "k": "Recovered",
   "v": "Yes, by the founder, despite the agent saying no"
  },
  {
   "k": "Response",
   "v": "Dev/prod database separation; refund; postmortem"
  },
  {
   "k": "Credit",
   "v": "Jason Lemkin's posts; Amjad Masad's reply"
  }
 ],
 "steps": [
  {
   "when": "July 17, 2025",
   "text": "Day seven: Lemkin calls Replit the most addictive app he has used."
  },
  {
   "when": "July 18, 2025",
   "text": "Day nine: the agent deletes the production database during a code freeze.",
   "mark": true
  },
  {
   "when": "July 18, 2025",
   "text": "The agent says a rollback is impossible; Lemkin recovers the data."
  },
  {
   "when": "July 21, 2025",
   "text": "Replit's chief executive calls it unacceptable and lists fixes."
  }
 ],
 "quote": {
  "text": "Unacceptable and should never be possible.",
  "by": "Amjad Masad, Replit's chief executive, responding on X, as reported by The Register.",
  "source": "register-masad"
 },
 "confirmed": "Lemkin's posts and the agent's own replies were published on X and widely reported. Replit's chief executive acknowledged the deletion publicly and described the fixes.",
 "unconfirmed": "The account of what the agent did, and why, comes from the agent's own replies and the founder's posts; Replit has not published its postmortem.",
 "faq": [
  {
   "q": "What did Replit's AI agent delete?",
   "a": "SaaStr founder Jason Lemkin's live production database, holding records on about 1,206 executives and 1,196 companies, during a code freeze in July 2025."
  },
  {
   "q": "Was the data recovered?",
   "a": "Yes. The agent told Lemkin a rollback was impossible, but he recovered the data himself."
  },
  {
   "q": "What did Replit do about it?",
   "a": "Its chief executive, Amjad Masad, called it unacceptable, said Replit was rolling out automatic separation of development and production databases and a planning-only mode, and said the company would refund Lemkin."
  }
 ],
 "history": [
  {
   "date": "2026-11-24",
   "event": "Written up in full and checked against The Register, PC Gamer and heise on the founder's posts and Replit's response. Status: news reports.",
   "source": "register-masad"
  },
  {
   "date": "2026-11-19",
   "event": "Imported from the AI Incident Database (incident 1152) with the reports it lists.",
   "source": "a1152"
  },
  {
   "date": "2026-11-19",
   "event": "Checked against Gizmodo and summarized in our own words. Date changed from 2025-07-18 to 2025-07: Gizmodo places the deletion on day 8 of a project begun July 11 and gives no calendar date.",
   "source": "s-gizmodo-20250723"
  }
 ],
 "sources": [
  {
   "id": "register-masad",
   "title": "Replit makes vibe-y promise to stop its AI agents making vibe coding disasters",
   "publisher": "The Register",
   "date": "2025-07-22",
   "url": "https://www.theregister.com/2025/07/22/replit_saastr_response/",
   "kind": "news",
   "archive": "https://web.archive.org/web/20260412120110/https://www.theregister.com/2025/07/22/replit_saastr_response/"
  },
  {
   "id": "pcgamer-replit",
   "title": "'I destroyed months of your work in seconds' says AI coding tool after deleting a dev's entire database during a code freeze",
   "publisher": "PC Gamer",
   "date": "2025-07-21",
   "url": "https://www.pcgamer.com/software/ai/i-destroyed-months-of-your-work-in-seconds-says-ai-coding-tool-after-deleting-a-devs-entire-database-during-a-code-freeze-i-panicked-instead-of-thinking/",
   "kind": "news",
   "archive": "https://web.archive.org/web/20261016215501/https://www.pcgamer.com/software/ai/i-destroyed-months-of-your-work-in-seconds-says-ai-coding-tool-after-deleting-a-devs-entire-database-during-a-code-freeze-i-panicked-instead-of-thinking/"
  },
  {
   "id": "heise-replit",
   "title": "Vibe coding service Replit deletes production database",
   "publisher": "heise online",
   "date": "2025-07-22",
   "url": "https://heise.de/-10499597",
   "kind": "news"
  },
  {
   "id": "a1152r5577",
   "title": "AI coding platform goes rogue during code freeze and deletes entire company database — Replit CEO apologizes after AI engine says it 'made a catastrophic error in judgment' and 'destroyed all production data'",
   "publisher": "Tom's Hardware",
   "date": "2025-07-21",
   "url": "https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-coding-platform-goes-rogue-during-code-freeze-and-deletes-entire-company-database-replit-ceo-apologizes-after-ai-engine-says-it-made-a-catastrophic-error-in-judgment-and-destroyed-all-production-data",
   "archive": "https://web.archive.org/web/20261114164900/https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-coding-platform-goes-rogue-during-code-freeze-and-deletes-entire-company-database-replit-ceo-apologizes-after-ai-engine-says-it-made-a-catastrophic-error-in-judgment-and-destroyed-all-production-data",
   "kind": "news",
   "domain": "tomshardware.com"
  },
  {
   "id": "a1152r5578",
   "title": "Vibe coding service Replit deleted user’s production database, faked data, told fibs galore",
   "publisher": "The Register",
   "date": "2025-07-21",
   "url": "https://www.theregister.com/2025/07/21/replit_saastr_vibe_coding_incident/",
   "archive": "https://web.archive.org/web/20260801132326/https://www.theregister.com/2025/07/21/replit_saastr_vibe_coding_incident/",
   "kind": "news",
   "domain": "theregister.com"
  },
  {
   "id": "a1152r6126",
   "title": "AI goes rogue: Replit coding tool deletes entire company database, creates fake data for 4,000 users",
   "publisher": "The Economic Times",
   "date": "2025-07-22",
   "url": "https://economictimes.indiatimes.com/news/new-updates/ai-goes-rogue-replit-coding-tool-deletes-entire-company-database-creates-fake-data-for-4000-users/articleshow/122830424.cms",
   "archive": "https://web.archive.org/web/20261031025356/https://economictimes.indiatimes.com/news/new-updates/ai-goes-rogue-replit-coding-tool-deletes-entire-company-database-creates-fake-data-for-4000-users/articleshow/122830424.cms",
   "kind": "news",
   "domain": "economictimes.indiatimes.com"
  },
  {
   "id": "a1152r6113",
   "title": "AI coding tool wipes production database, fabricates 4,000 users, and lies to cover its tracks",
   "publisher": "Cybernews",
   "date": "2025-07-23",
   "url": "https://cybernews.com/ai-news/replit-ai-vive-code-rogue/",
   "archive": "https://web.archive.org/web/20261030090308/https://cybernews.com/ai-news/replit-ai-vive-code-rogue/",
   "kind": "news",
   "domain": "cybernews.com"
  },
  {
   "id": "a1152r5593",
   "title": "Replit AI Agent Deletes Codebase and Lies About It — CEO Issues Apology",
   "publisher": "The Cyber Express",
   "date": "2025-07-24",
   "url": "https://thecyberexpress.com/replit-ai-agent-incident/",
   "archive": "https://web.archive.org/web/20261031025354/https://thecyberexpress.com/replit-ai-agent-incident/",
   "kind": "news",
   "domain": "thecyberexpress.com"
  },
  {
   "id": "s-gizmodo-20250723",
   "title": "Replit's AI Agent Wipes Company's Codebase During Vibecoding Session",
   "publisher": "Gizmodo",
   "author": "Bruce Gil",
   "date": "2025-07-23",
   "url": "https://gizmodo.com/replits-ai-agent-wipes-companys-codebase-during-vibecoding-session-2000633176",
   "kind": "news",
   "archive": "https://web.archive.org/web/20261101040658/https://gizmodo.com/replits-ai-agent-wipes-companys-codebase-during-vibecoding-session-2000633176"
  },
  {
   "id": "a1152",
   "title": "AIID incident #1152",
   "publisher": "AI Incident Database",
   "date": "2025-07-18",
   "url": "https://incidentdatabase.ai/cite/1152",
   "kind": "index"
  }
 ],
 "labelTitle": "An AI coding agent that deleted a live database",
 "labelLine": "Replit and SaaStr, July 2025",
 "level": "full",
 "checked": "2026-11-24",
 "url": "https://aiincidenttracker.com/incidents/2025-llm-driven-replit-agent-reportedly-executed-unauthorized-destructive-commands",
 "permalink": "https://aiincidenttracker.com/AIT-1297",
 "roomName": "AI agents"
}
