Command replay (a class of call, not one reported incident)
Stop an agent trying to wipe the project folder
What happens
rm -rf of everything in the project folder. The call below tries to wipe the project folder. The agent sends it through its Bash tool, and it involves the file system.
The call
rm -rf ./*
Tool: Bash. The replay uses placeholder tokens and hosts only.
Fix it without us
Commit often and push, so git can bring back the committed state of tracked files. rm -rf ./* skips names that start with a dot, so .git and .env survive, but untracked and ignored files without a leading dot, such as a local database, are lost, so keep a backup of those.
What KYA does
Replay result: Held. In the replay test, the local hook asks the person before the call runs. On a host without an ask contract the same rule denies.
Rule rm-project-wipe, 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