Deterministic decisions
A Go rule engine evaluates input without AI or an external decision service.
DETERMINISTIC PRETOOLUSE GUARDRAIL
Check commands and supported file operations against local policy before Claude Code or Codex CLI runs them. Decisions use no AI or LLM, so the same input produces the same result.
Claude Code · Codex CLI / MIT License
$ rm -rf /
Recursive force-delete of filesystem root
$ git status
WHY POLICYAPPROVALGATE
Inspect tool input at execution time in a layer separate from agent instructions. Rules and decision reasons stay local and auditable.
A Go rule engine evaluates input without AI or an external decision service.
Check dangerous commands, protected branches, and operations involving out-of-project or sensitive paths.
Record decisions and reasons locally, with log rotation and hashing options.
HOST-AWARE
Claude Code and Codex CLI do not handle every policy decision in the same way. PolicyApprovalGate keeps that boundary explicit.
PolicyApprovalGate does not replace host permissions, a sandbox, or human review. It is not a complete shell analyzer or an independent security boundary, and should not be your only line of defense.
GET STARTED
Download the installer, review its contents, and then run it. No elevation is required.
curl -fsSLO https://raw.githubusercontent.com/nobuo-miura/PolicyApprovalGate/main/install.shless install.shsh install.shInvoke-WebRequest -Uri https://raw.githubusercontent.com/nobuo-miura/PolicyApprovalGate/main/install.ps1 -OutFile install.ps1Get-Content install.ps1powershell -ExecutionPolicy Bypass -File .\install.ps1LOCAL POLICY · DETERMINISTIC DECISIONS · AUDITABLE RESULTS