guard_exec
Executes shell commands in an isolated local process, masks API keys, credentials, database URIs, and PII in RAM, then sends sanitized output to the LLM while enabling safe local restoration.
Instructions
Zero-Trust Agentic Guard: Safely executes a shell/terminal command locally in isolated process, sanitizes stdout and stderr in volatile RAM, tokenizes any API keys, credentials, database URIs, or PII before sending output to LLM. Maps original values in memory for safe local restoration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. Defaults to current workspace root. | |
| sector | No | Optional alias for 'profile'. The industry sector or compliance vertical to apply (e.g. 'medical', 'finance', 'legal', 'dev', 'hr', 'accounting', 'security', 'compliance', 'underwriting', 'telecom'). | |
| command | Yes | The shell command to execute (e.g. 'cat .env', 'git diff', 'docker logs web', 'env'). | |
| profile | No | Detection profile. Available: 'Dev' (default for code/secrets), 'General', or any of the 30 specialized industry profiles (e.g. 'Security', 'Finance', 'Medical'). Defaults to 'Dev'. | |
| session_id | No | Optional session ID for multi-agent isolation. Defaults to 'default'. | |
| timeout_ms | No | Execution timeout in milliseconds. Defaults to 15000 (15s). |