Use these settings and machine-readable contracts to make agent tool calls predictable and recoverable.
Environment variables
JSON output contract
With --json, stdout contains one JSON document:
Errors include a semantic exit code and a machine-readable payload that agents can use to choose a recovery action.
Exit codes
Diagnose setup
doctor reports platform, architecture, CLI and protocol versions, credential presence, keychain availability, API reachability, latency, and video-transcription prerequisites.
If a paid call returns INVOCATION_ADMISSION_UNKNOWN, the agent must rerun
only the exact original tool and payload with the supplied idempotency key.