HOL Guard Plugin

May 16, 2026 ยท View on GitHub

Codex plugin for HOL Guard, the local AI security layer from hol-guard.

HOL Guard protects local AI harnesses before tools run. It can inspect Codex, Claude Code, Copilot CLI, Cursor, Gemini, Hermes, OpenClaw, OpenCode, and Antigravity surfaces, then route risky changes through local approvals and receipts.

What this plugin adds

  • A public Codex skill at skills/hol-guard/SKILL.md.
  • Guard setup guidance for Codex, Claude Code, Copilot CLI, Cursor, Gemini, Hermes, OpenClaw, OpenCode, and Antigravity.
  • Scanner guidance for Codex plugins, Claude Code project surfaces, skills, MCP servers, and marketplace packages.
  • Helper script for common hol-guard and plugin-scanner workflows.
  • Validation test for the plugin manifest, skill, assets, and script paths.

Install HOL Guard locally

Recommended:

pipx install hol-guard

Fallback:

python3 -m pip install --user hol-guard

Verify:

hol-guard status
hol-guard detect --json

Use from Codex

Install this plugin in Codex, then ask:

Use HOL Guard to protect this workspace before running agent tools.

or:

Use HOL Guard to scan this plugin before release.

Local helper

bash scripts/hol-guard-plugin status
bash scripts/hol-guard-plugin harnesses
bash scripts/hol-guard-plugin protect claude-code
bash scripts/hol-guard-plugin protect codex
bash scripts/hol-guard-plugin scan-system claude .
bash scripts/hol-guard-plugin scan-system codex .
bash scripts/hol-guard-plugin scan .
bash scripts/hol-guard-plugin evidence

The helper does not read .env files. It only calls hol-guard and plugin-scanner commands already exposed by the upstream package.

Supported harness systems

SystemHelper commandGuard command
Codexbash scripts/hol-guard-plugin protect codexhol-guard install codex
Claude Codebash scripts/hol-guard-plugin protect claude-codehol-guard install claude-code
Copilot CLIbash scripts/hol-guard-plugin protect copilothol-guard install copilot
Cursorbash scripts/hol-guard-plugin protect cursorhol-guard install cursor
Gemini CLIbash scripts/hol-guard-plugin protect geminihol-guard install gemini
Hermesbash scripts/hol-guard-plugin protect hermeshol-guard hermes bootstrap
OpenClawbash scripts/hol-guard-plugin protect openclawhol-guard install openclaw
OpenCodebash scripts/hol-guard-plugin protect opencodehol-guard install opencode
Antigravitybash scripts/hol-guard-plugin protect antigravityhol-guard install antigravity

Validation

npm test

No runtime dependencies are required for the validation test.

Source projects