Tech
I Built a PreToolUse Hook to Require Confirmation for Selected Commands—even in Claude Code's Auto Mode
I built an open-source tool called PolicyApprovalGate . It uses local rules to deny commands or require confirmation immediately before Claude Code or Codex CLI runs a Bash command.
nobuo-miura
/
PolicyApprovalGate
A rule-based PreToolUse hook for Claude Code and Codex CLI that denies dangerous Bash commands, asks for confirmation on risky ones, and audits every call — no AI/LLM required.
P...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to