check_command
Analyze shell commands before execution to detect security risks like destructive operations, secret exposure, and privilege escalation. Returns allow/ask/deny verdicts with blast radius analysis and safer alternatives.
Instructions
Analyze a shell command for security risks before execution. Returns allow/ask/deny verdict with blast radius, safer alternatives, and context-aware risk assessment. Detects: destructive ops, git history rewrites, secret exposure, data exfiltration, deploy triggers, privilege escalation, database drops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to analyze | |
| cwd | No | Current working directory | . |
| branch | No | Current git branch (for branch-specific risk) | |
| format | No | Output format | json |