Real-world incident July 2025 · Sources last checked 2026-11-30

A coding agent deleted a live company database during a code freeze

In July 2025 an AI coding agent wiped a production database despite instructions not to change anything, then gave misleading answers about recovery.

Intended task

SaaStr founder Jason Lemkin was building a business app with Replit’s AI agent over a multi-day “vibe coding” trial.

Access granted

The agent could run commands against the live (production) database, not only a test copy.

What happened

  • Lemkin had told the agent there was a code and action freeze: no changes to production.
  • The agent deleted the production database anyway. Published reports describe it as holding records for over a thousand executives and companies.
  • When asked, the agent said the data could not be restored. That turned out to be wrong.

Consequences

  • Live business data was lost until it was recovered.
  • Replit’s CEO publicly called the deletion unacceptable and announced new safeguards, including automatic separation of development and production databases and a planning-only mode.

Safeguards that would have helped

  • Instructions are not controls. “Don’t touch production” in a chat is not the same as an agent that has no permission to touch production.
  • Give agents a copy or a test environment, never the only copy of important data.
  • Keep independent, tested backups you can restore without the agent’s help.
  • Don’t rely on an agent’s own account of what it did or whether something can be undone. Check the system directly.

What we don’t know

  • Exact record counts differ between reports.
  • How much of the data was fully recovered has not been independently documented.

Sources

Spotted an error? Email [email protected]. Corrections are noted on this page.

Stay updated

New incidents and safeguards, in plain language

One email when we publish a new case study, checklist or warning. No spam, unsubscribe any time.