Repository navigation
Release v7.170.7
Summary
The shell-writes guard now inspects destructive deletes more precisely: it blocks deletes that reach protected directories through common command runners, and stops flagging harmless commands. Run cratis ai update to get the updated hooks.
Changed
- The shell-writes guard treats heredoc bodies, comments, commit messages and arguments to other programs as data, so commands that only mention a delete are no longer blocked. The hooks README lists the command runners the guard inspects and what it does not inspect.
Security
- The shell-writes guard blocks recursive deletes of protected directories (the repository root, its ancestors and the home directory) when they arrive through command runners such as
sudo,env(includingenv -S),nice,timeout,nohup,xargs,find -exec,git -Cor a shell reading commands from a pipe, here-string or heredoc. Runcratis ai updateto apply it.