Use the Watcher arm PreToolUse seatbelt
mainThe Watcher arm PreToolUse seatbelt is a security mechanism designed to prevent agents from executing shell commands that could bypass supervision (e.g., using background operators, pipelines, or redirections to hide a watcher command).
It works by tokenizing the command and classifying lexical execution positions. It does not execute, source, or expand the command. It is a static analysis tool used to reject unsafe command shapes before they are run.
Key Protections:
- Rejects commands that attempt to run
bin/fm-watch.shdirectly (usebin/fm-watch-arm.shorbin/fm-watch-checkpoint.shinstead). - Rejects commands that attempt to hide watcher execution via pipelines, redirections, or backgrounding.
- Rejects commands that attempt to kill the watcher process (e.g.,
pkill -f fm-watch). - Rejects complex or unsupported shell grammar that might contain a hidden watcher command.