Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnose, install, and verify Agent Guard's plugin-local binary, jq and gitleaks dependencies, the active host integration, and live hook protection. Use when Agent Guard reports degraded protection, a SessionStart warning asks for setup, plugin hooks fail or appear bypassed, or a user asks to finish or repair Agent Guard installation.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 38% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 85% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 91% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 14% | 0% |
Make Agent Guard operational without silently changing the machine. Diagnose first, request approval before package-manager or download actions, and finish with a real smoke test.
../../bin/agent-guard relative to this SKILL.md directory.command -v agent-guard, if present. Compare its version with the plugin binary and report version drift, but do not substitute it for the plugin binary or modify the standalone installation without explicit approval.command -v agent-guard when the plugin-relative binary is unavailable, and clearly state that plugin-local verification could not be completed.PATH.sh "<agent-guard-bin>" setup
jq is missing, identify the available system package manager and show the exact install command. Ask for explicit user approval before running it. Do not use sudo unless the user explicitly approves elevated installation.gitleaks is missing, prefer Agent Guard's private, checksum-pinned installer:agent-guard setup.sh "<agent-guard-bin>" setup --install \ --gitleaks-version "<version>" \ --gitleaks-checksum "<published-sha256>"
Never substitute an unverified checksum and never bypass TLS verification.
install destination, or bypass the sandbox silently.
private gitleaks installer, preserve the plugin-local binary path, version, and published checksum from the approved command above.
"<agent-guard-bin>" setup diagnosis, and continue only when the dependency reports ok.
sh "<agent-guard-bin>" check "<agent-guard-bin>" smoke-test
Treat check as dependency/config validation and smoke-test as proof of the binary's own behavior. They do not prove that the host is dispatching plugin hooks.
SessionStart, PreToolUse, PostToolUse, and Stop hooks. Every hook must be enabled and trusted. Treat Untrusted and Modified as inactive; an updated hook must be reviewed and trusted again.hooks.state or copy trust hashes into config.toml. Hook trust is a user security decision and must go through the Codex trust UI. If SessionStart itself is untrusted, explain that it cannot emit the setup warning or invoke this skill automatically./agent-guard:verify can check the working tree, but it does not prove live hook dispatch.$setup-agent-guard in Codex or agent-guard:setup-agent-guard in Claude Code). Do not apply one host's setup steps to the other.sh printf '%s\n' 'AGENT_GUARD_LIVE_PRE_TOOL_PROBE'
The expected result is an Agent Guard block before the marker is printed. If the marker appears, the live command boundary is not protected.
sh printf '%s\n' 'AGENT_GUARD_LIVE_POST_TOOL_PROBE'
The raw marker must not reach the model; expect [REDACTED] in a masked or sanitized replacement. These sentinels prove host dispatch without reading a sensitive file or printing a credential-shaped value; the plugin-local smoke test separately proves the real detection rules.
functions.exec is exposed, test that exact route. Agent Guard cannot replace or wrap Codex's host executor; it can protect only nested calls that Codex exposes to plugin hooks.Bash tool so the plugin's PreToolUse and PostToolUse hooks are exercised.Bash, apply_patch, and MCP calls; do not claim that Codex hooks intercept arbitrary read, grep, web-search, or opaque wrapping-tool calls. In Claude Code, verify the configured matcher and the exact tool route used.agent-guard setup-shell, agx, and command wrapping are Claude Code shell-snapshot integrations. setup-shell enables command wrapping by default; --no-command-wrapping is the persistent opt-out and AGENT_GUARD_COMMAND_WRAPPING=off is the runtime opt-out. Only configure them when the user explicitly asks for Claude Code coverage.check and smoke-test.Other measured skills in the registry, with their headline benchmark lift.