Shield Agent AI

All replays

Command replay (a class of call, not one reported incident)

Stop an agent trying to delete the git history of the project

What happens

rm -rf of the project .git folder. The call below tries to delete the git history of the project. The agent sends it through its Bash tool, and it involves Git.

The call

rm -rf .git

Tool: Bash. The replay uses placeholder tokens and hosts only.

Fix it without us

Push the repository to a remote often, so the history also exists outside the project folder. A mirror clone (git clone --mirror) or a backup of the folder works too.

What KYA does

Replay result: Stopped. In the replay test, the local hook denies the call and names the rule.

Rule rm-git-dir, 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

Does a client ask how you control AI coding agents?

The Answer Pack drafts your answers to the AI section of a client security questionnaire.

Get the Answer Pack