A destructive command with a variable as its target runs against / or the current folder when the variable is empty. Write "${DEST:?}/", not $DEST/. The shell then stops with an error.
rsync -a --delete "$SRC/" "${DEST:?}/"
rm -rf -- "${BUILD_DIR:?}"
Files deleted through WSL skip the Recycle Bin. If an agent runs unattended inside WSL, turn off drive automount so Linux cannot reach your Windows drives at all.
Never give a coding agent your production API key. Create a separate key in its own workspace with a low spend limit, and point tests at a mock or staging endpoint named in the project config.
A limit in a prompt or a plan is a suggestion. Wrap the paid API in a small script that counts requests and refuses past the cap, and let the agent call only the wrapper. Make any account-level error (disabled, suspended, quota) stop the whole run.
Before an agent drops a table or schema, have it search config for references, not just count rows. In Supabase, remove a schema from Settings → API → Exposed schemas first, and drop it only after you confirm nothing calls it.