Safe
A command is classified as safe when no concerning patterns are detected. It contains no pipes, redirects, chaining, subshells, privileged execution, or destructive operations. In warp mode, Opsh auto-runs safe commands without pausing for confirmation.Caution
A command is classified as caution when it contains one or more of the following:- A pipe (
|) - Output redirection (
>or>>) - Command chaining (
&&or||) - A subshell (
$(...)or backtick substitution) sudo(privileged execution)mv(moves or renames files)- A package manager install (
brew install,apt install,apt-get install,yum install,dnf install,pacman install, orapk install) chmodorchownwithout the-Rflag
Dangerous
A command is classified as dangerous when it contains one or more of the following:- Any
rmcommand (file removal) - Recursive permission change:
chmod -R - Recursive ownership change:
chown -R - Network output piped directly to a shell (e.g.,
curl ... | shorwget ... | bash) git reset --hard(discards uncommitted local work)
Hard-blocked
A small set of commands are hard-blocked and cannot be executed under any circumstances, regardless of confirmation:rm -rf /variants, includingrm -rf --no-preserve-root- Fork bombs:
:(){ :|:& };: - Filesystem format commands:
mkfs.* - Direct disk writes via
dd:dd ... of=/dev/sd*orof=/dev/disk*

