check_command
Analyze shell commands for security risks before execution, returning an allow/ask/deny verdict with blast radius, safer alternatives, and context-aware risk assessment.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "check_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Current working directory | . |
| branch | No | Current git branch (for branch-specific risk) | |
| format | No | Output format | json |
| command | Yes | Shell command to analyze |