Local-first runtime and approvals
HOL Guard is built so the whole safety loop works on one machine first. Shared history, team policy, and managed controls are optional layers added later through Guard Cloud.
What works without signing inDirect link to What works without signing in
Everything below runs locally with no account:
- detecting supported harnesses and installing Guard into them
- reviewing shell commands, file access, package installs, and MCP tool calls before they run
- artifact inventory, snapshots, and diffs for plugins, skills, MCP servers, and agent config
- local policy from the home config, a per-workspace override, and saved decisions
- approvals through the agent's own prompt, the local approval center, or the terminal
- local receipts, event history, and
explainoutput - the local dashboard
- supply-chain checks against the advisory data already on the machine, with optional pull-only sync of newer data
Guard does not meter local safety features.
What Guard Cloud addsDirect link to What Guard Cloud adds
Cloud features are optional:
- synced receipts and history across devices
- fleet posture and device inventory
- shared team policy and delegated approvals
- managed Control Sets for supported Team and Enterprise devices
- curated advisories and watchlists
- billing and entitlements
hol-guard connect pairs a machine with Guard Cloud, and hol-guard sync pushes local state. Neither is required for protection. See Local-first and optional cloud.
How Guard decidesDirect link to How Guard decides
Every action and artifact resolves to one of these actions: allow, warn, block, sandbox-required, or require-reapproval, plus review for items that need a decision before they can proceed.
Guard resolves the effective action from these sources, strongest first:
- saved decisions, from
hol-guard allow,hol-guard deny, and remembered approvals - the project override in
<workspace>/.hol-guard.toml - the home config in
~/.hol-guard/config.toml - Guard's built-in recommendation
The default mode is prompt. prompt and enforce both enforce policy. observe records decisions without stopping anything, which matches the Watch posture. The protection posture (protected, extra-careful, watch) sets how much Guard asks about; see Guard get started for the commands.
What happens when Guard stops an actionDirect link to What happens when Guard stops an action
By default Guard does not interrupt you with a prompt. An action that needs review is denied, the agent receives the reason and guidance to continue with a permitted alternative, and Guard saves the denial in the Inbox. Hard blocks and sandbox-required actions stay enforced in every setting.
To get approval prompts instead, choose Ask me for approval under Settings, Approval gate, When Guard blocks a request in the dashboard. The equivalent setting in the home config is:
blocked_request_mode = "ask"
The default value is "safe-alternative". A workspace config cannot switch a machine to prompts.
Where approvals appearDirect link to Where approvals appear
With ask, Guard shows the request in the most direct place the harness supports:
- Native harness approval. The agent's own prompt, where the harness exposes one. Codex asks inline through MCP elicitation in the interactive CLI and the Codex app. Claude Code uses its permission dialog.
- Local approval center. A browser page served by the local daemon on
127.0.0.1. It is the Inbox tab of the dashboard and lists pending requests with the action, the reason, changed fields, and receipt evidence. Open it withhol-guard approvals openorhol-guard dashboard. - Terminal. List and resolve requests from any shell:
hol-guard approvals
hol-guard approvals approve <request-id>
hol-guard approvals deny <request-id> --reason "unexpected network call"
approve and deny accept --scope artifact|publisher|workspace|harness|global and --remember to save the decision for later matches. hol-guard approvals wait <request-id> blocks until a request is resolved.
Guard also sends desktop notifications on macOS and Windows so a paused action reaches you outside the terminal. Turn them off with desktop_notifications = false in the home config or HOL_GUARD_DESKTOP_NOTIFICATIONS=0.
Headless sessions, such as codex exec, have no interactive prompt, so Guard queues the request in the approval center. approval_wait_timeout_seconds (120 by default) sets how long an inline approval waits for an answer.
After you approve, Guard resumes the Codex thread or replays the action where the harness supports it. Per-harness behavior is listed in the harness support matrix.
Everyday loopDirect link to Everyday loop
- Install Guard and run
hol-guard init. - Work in your agent as usual.
- Review denials in the Inbox or
hol-guard approvals. Withaskenabled, approve in the agent prompt when one appears. - Review
hol-guard receiptsor the dashboard Evidence tab when something changes.