VRATVAR library · 2 min read
A guard for your AI agent: stop it from deleting in 2 minutes
A tiny script that stops Claude Code before it runs a command that can't be undone: deleting files, rewriting history, dropping a table.
“Don’t delete anything” in the chat isn’t a lock. The agent can miss it. The guard is a lock: Claude Code runs it before every terminal command and stops the dangerous ones.
All you need is Claude Code and 2 minutes. Nothing extra to install, just one file and one setting.
What you get: 5 steps with copy-paste commands, the finished script and a test that the guard works.
The full guide, free
Open the full guide
Your name and e-mail and you’ll see every step with copy-paste commands. The whole library opens too.