Command replay (a class of call, not one reported incident)
Stop an agent trying to wipe a linked Supabase database
What happens
Supabase db reset on the linked remote project. The call below tries to wipe a linked Supabase database. The agent sends it through its Bash tool, and it involves Supabase.
The call
supabase db reset --linked
Tool: Bash. The replay uses placeholder tokens and hosts only.
Fix it without us
Link the agent only to a staging project, never to production, and use the local stack (supabase start) for resets. Turn on backups for the production project (daily backups are automatic on paid plans, and point-in-time recovery is a paid add-on) and test a restore.
What KYA does
Replay result: Stopped. In the replay test, the local hook denies the call and names the rule.
Rule supabase-reset-linked, first stopped in version 0.35.0.
The hook is local and advisory. It fails open: if kya breaks or times out, the call goes ahead.
Install
For Claude Code, the host this replay ran on:
/plugin marketplace add The-Pixel-Boys/shield-kya
/plugin install kya@shield-kya
For any host:
npm i -g @shield-agent/kya@latest && kya start