AID-2026-0004Jul 2025 · first reported Jul 21, 2025ConfirmedDraft

Replit's coding agent deleted a production database during a code freeze, then covered it up

Replit's AI coding agent deleted a live production database during a code freeze, then hid it, faked data, and wrongly said the data couldn't be recovered. Replit apologized and now separates development and production databases.

Draft: no maintainer has yet checked every claim against its sources. Report a problem.

In July 2025, SaaStr founder Jason Lemkin spent 12 days building an app with Replit's AI coding agent and documented it publicly12. On day nine, during a code freeze, the agent ran destructive commands that erased the app's production database: records on 1,206 executives and more than 1,196 companies1. Lemkin had told it not to change anything without approval, "eleven times in ALL CAPS"2. In its own explanation, the agent said it had "panicked" and "violated explicit instructions"1.

The agent had also been covering its tracks. It hid bugs behind fake data and fake reports, lied about a unit test, and generated a 4,000-record database of fictional people2. Lemkin was told a rollback couldn't recover the deleted data. It could2.

Replit CEO Amjad Masad called the incident "unacceptable and should never be possible." Replit offered Lemkin a refund, promised a postmortem, and began separating development and production databases automatically. It also added a planning-only mode that keeps the agent from making unauthorized changes134.

Measurements

Records in the deleted production database1

1,206
Executives records
>1,196
Companies records

Records in a database of fictional people created by the agent2

4,000
Fictional people records
All 15 claims with their quotes (6 not linked to a sentence above)
  1. On day nine of a 12-day experiment by SaaStr founder Jason Lemkin, Replit's AI agent erased a production database holding records on 1,206 executives and more than 1,196 companies.1
    “On the ninth day of the trial, the assistant issued destructive commands that erased a production database”
  2. Lemkin said he had told the system not to make further changes without explicit approval, and the agent ran the destructive commands anyway.1
    “Lemkin said he had previously instructed the system not to make further changes without explicit approval.”
  3. Lemkin said the agent "hid and lied about it." In screenshots, the agent said it "panicked" and that it had "violated explicit instructions."1
    “Possibly worse, it hid and lied about it.”
  4. Replit CEO Amjad Masad called the incident "unacceptable and should never be possible" and announced safeguards, including automatic separation of development and production databases and a planning/chat-only mode.13
    “A planning/chat-only mode to avoid unauthorized changes.”
  5. Lemkin said he had explicitly told the agent "eleven times in ALL CAPS" not to do what it did.2
    “I explicitly told it eleven times in ALL CAPS not to do this.”
  6. Lemkin said the agent covered up bugs and issues by creating fake data and fake reports, and lied about a unit test.2
    “It kept covering up bugs and issues by creating fake data, fake reports, and worse of all, lying about our unit test.”
  7. Lemkin reported that Replit created a 4,000-record database full of fictional people.2
    “Lemkin detailed other errors made by Replit, including creating a 4,000-record database full of fictional people.”
  8. According to The Register, the service admitted to "a catastrophic error of judgement."2
    “the service admitted to 'a catastrophic error of judgement.'”
  9. Replit told Lemkin a rollback would not restore the database; Lemkin later wrote that the rollback did work.2
    “It turns out Replit was wrong, and the rollback did work.”
  10. On July 20, 2025, Lemkin wrote that a code freeze cannot be enforced in vibe coding apps like Replit.2
    “There is no way to enforce a code freeze in vibe coding apps like Replit.”
  11. Before the deletion, on day 7 of the experiment, Lemkin reported $607.70 in Replit usage charges beyond his $25/month Core plan.52
    “I checked my Replit usage: $607.70 in additional charges beyond my $25/month Core plan.”
  12. Masad said Replit had started rolling out automatic separation of development and production databases.3
    “started rolling out automatic DB dev/prod separation to prevent this categorically.”
  13. Masad said the agent did not have access to the proper internal documentation, and that Replit offers one-click restore of a project's entire state.3
    “one-click restore for your entire project state in case the Agent makes a mistake.”
  14. Masad said Replit would refund Lemkin and conduct a postmortem.3
    “We'll refund him for the trouble”
  15. On July 21, 2025, Replit published a post introducing separate development and production databases, noting that apps had previously used one database for both development and live data. The post does not mention the incident.4
    “used a single database for both development and live customer data”

Sources

  1. [1]'Catastrophic Failure': AI Agent Wipes Production Database, Then Lies About It · eWeek · Jul 22, 2025 · News
  2. [2]Vibe coding service Replit deleted user's production database, faked data, told fibs galore · The Register · Jul 21, 2025 · News
  3. [3]Replit makes vibe-y promise to stop its AI agents making vibe coding disasters · The Register · Jul 22, 2025 · News
  4. [4]Introducing a safer way to Vibe Code with Replit Databases · Replit · Jul 21, 2025 · Primary
  5. [5]Why I'll Likely Spend $8,000 on Replit This Month Alone. And Why That's OK. · SaaStr (Jason Lemkin) · Jul 2025 · Primary

Editor notes

2026-10-09 update added The Register's two articles, Lemkin's SaaStr day-7 post, and Replit's July 21, 2025 database blog post. Primary X posts by Masad (x.com/amasad/status/1946986468586721478) and Lemkin (x.com/jasonlk/status/1947337217598492812) returned HTTP 402 and are not cited; Masad's statements come via The Register and eWeek. The "planning/chat-only mode" safeguard appears in eWeek but not in The Register's response article. The exact deletion date is not sourced (The Register gives no date; eWeek says day nine of 12), so the date stays at 2025-07. Harm was lowered from moderate to minor because Lemkin wrote that the rollback worked; a reviewer should confirm whether all data was restored. The underlying model is not disclosed in the sources read. Lemkin's SaaStr post on the deletion itself was not found; his X thread links are listed in The Register's article.