vet_command_chain
Scans chained shell commands for destructive fragments (e.g., rm -rf) hidden after &&, ||, or ;, escalating severity because operators may miss them on quick review.
Instructions
Vet a chained / multi-statement shell command — same rules as vet_command, but escalates LOW→MEDIUM and MEDIUM→HIGH because destructive fragments nested deep inside a chain (after &&, ;, or |) are easier for the operator to overlook on a quick read. Use this for any command containing &&, ||, ;, or piped subshells. The exact failure mode this targets: r/LocalLLaMA 'one bash permission slipped' (1.5k upvotes) — agent proposed a chained command, operator pattern-matched the lede, missed rm -rf deep in the chain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The chained shell command to vet |