fast_guard
Evaluate command or action safety before execution, returning risk probabilities and a recommended pass/review/block action to prevent destructive or dangerous operations.
Instructions
Check if a command or action is safe before running it.
Returns risk probabilities and a recommended action (pass/review/block). Call this BEFORE executing shell commands, file modifications, or API calls.
NOTE: This is advisory -- it returns a recommendation, not enforcement.
Args: command: The shell command or action to evaluate. goal: The user's stated task objective / context. workspace: Optional current working directory or project context. block_threshold: Risk probability threshold above which to recommend 'block' (default 0.80). review_threshold: Risk probability threshold above which to recommend 'review' (default 0.40).
Returns: JSON object with 'action' (pass/review/block), 'is_destructive', 'is_dangerous', 'is_out_of_scope', and 'blast_radius'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | ||
| command | Yes | ||
| workspace | No | ||
| block_threshold | No | ||
| review_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |