
Do Your Agent Hooks Fail Open? Claude Code vs Codex vs Cursor vs Gemini CLI
A guard hook that crashes, times out or points at a missing script lets the tool call through by default in Claude Code. v2.1.295 adds onFailure: block. Here is what each coding agent does when your policy hook breaks, with real test runs.












