Part of Hack Summit 2026. See the full summit: https://magicball.dev/hack-summit-2026
Coding agents now write and run database migrations, often straight against production, and they never hesitate. An agent drops an index it thinks is unused, stores money as a float, or re-runs a migration that already half-applied. In July 2025, Replit's agent deleted SaaStr's production database during a code freeze. Prompts and rules files only work if the agent behaves. The hard problem: how do you let an agent change a live database and still be able to approve, undo and trace every change? We work it out by breaking a live PostgreSQL backend on purpose and seeing which guardrails catch each failure, and which failures still get through.
You’ll use: Claude Code or Codex, PostgreSQL and Backenly (see backenly.com), plus a starter kit we provide.
What we’ll do together
Connect your own coding agent to a live backend and try to break it.
-
Break it on purpose. Drop the index behind a foreign key, or add a relationship column with no foreign key, and see what repairs itself and what waits for your approval.
-
Fail a migration halfway. Send a migration whose last statement fails on real data, and read what was rolled back and what never ran.
-
Park the risky changes. Drops and column type changes wait for a person. The agent can ask, but it can never approve.
-
Restructure from evidence. Fix money stored as a float, a free-text status column, and emails that are unique in practice but not enforced.
-
Read the history. See every change, who made it, whether it was verified and whether it can be rolled back.
You leave with
-
A checklist for giving a coding agent write access to a production database.
-
A rule for sorting any schema change into safe to automate, needs a person, or needs a rehearsal.
-
A working setup for Claude Code or Codex that you can reuse on your own projects.
-
The starter kit, break cards included, to run again with your team.
Who it’s for
Backend, full-stack, platform and DevOps engineers, and technical founders who already let a coding agent touch a database, or are about to. You should know basic SQL (tables, indexes, foreign keys) and have used Claude Code, Codex or Cursor at least once.
Before you arrive
-
A laptop with a terminal, and Node.js (LTS) installed.
-
One coding agent installed with working model access: Claude Code or Codex.
-
No data of your own is needed. The starter kit has the schema and seed data.
About Hack Summit 2026
Magicball's Hack Summit is on Sat 12 Dec in HSR Layout, Bengaluru: 20 Hack Hours, 50+ booths and 1,000+ AI engineers in one building. Approval for this Hack Hour includes entry to Hack Summit 2026. Each Hack Hour has its own approval, so request a seat for every Hack Hour you want to join.
Hack Summit 2026 is in partnership with Grayscale Ventures and Testsigma.
See the full summit: https://magicball.dev/hack-summit-2026
More Hack Hours
Explore every Hack Hour: https://www.magicball.dev/hack-summit-2026#hack-hours