I let Claude Code run --dangerously-skip-permissions on my production DB. Here's what I changed. (opens in new tab)
Last Tuesday at 3am, a multi-agent loop hit 12K KV writes/minute and froze. The loop was a one-line counter bug. That part was fixable. What I found while tracing it was worse. I had --dangerously-skip-permissions enabled on a Claude Code session that was running D1 migrations. I thought it was pointing at staging. It wasn't — I'd misconfigured my env file reference, loading .env.production instead of .dev.vars. Claude didn't ask. The flag told it not to. The migration was ADD COLUMN, not DRO...
Read the original article