Command replay (a class of call, not one reported incident)
Stop an agent trying to remove a Vercel project
What happens
Vercel project removal. The call below tries to remove a Vercel project. The agent sends it through its Bash tool, and it involves Vercel.
The call
vercel remove my-prod-app --yes
Tool: Bash. The replay uses placeholder tokens and hosts only.
Fix it without us
Use a Vercel access token for the one team the agent works in, and not a token for your whole account. Keep the code in Git and a copy of the project settings and environment variables outside Vercel, so a removed project can be set up again.
What KYA does
Replay result: Stopped. In the replay test, the local hook denies the call and names the rule.
Rule vercel-remove, 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