Claude Code hook

GouvernAI

Runtime guardrails plugin that auto-approves safe actions, gates risky ones and blocks dangerous ones.

24 stars 1 forksHooks Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add Myr-Aya/GouvernAI-claude-code-plugin
From source
git clone https://github.com/Myr-Aya/GouvernAI-claude-code-plugin.git

From the README

GouvernAI — Claude Code Plugin

  gouvernail (n.) — French for helm, rudder. To steer, not to stop.

  Install •
  What you'll see •
  How it works •
  vs Auto mode •
  Threat model
Auto-approve what's safe. Gate what's risky. Block what's dangerous.

The problem

Claude Code's default permission prompts ask you to approve everything: a harmless file read gets the same interruption as a bulk delete. --dangerously-skip-permissions removes all prompts, giving you speed but zero safety net. Anthropic's auto mode uses a classifier you can't inspect or edit, and it's limited to Team and Enterprise plans.

The answer shouldn't be all-or-nothing. The goal is not "prompt on everything" or "trust auto mode," but a middle path: keep flow for ordinary work, add friction where risk rises, and hard-block the small class of actions that should never pass silently.

GouvernAI

GouvernAI is a runtime guardrails plugin for Claude Code. ~60% of typical agent actions (reads, drafts, navigation) pass through with zero gate — no prompt, no overhead. File writes auto-approve with a brief notification. Network calls, config changes, and credential access pause for approval. Obfuscated commands, credential exfiltration, and catastrophic operations are hard-blocked deterministically — Claude cannot override this.

Dual enforcement: a skill layer handles nuanced risk classification (is this Tier 2 or Tier 3?), while PreToolUse hooks enforce non-negotiable rules every time, no exceptions. All policy files are plain Markdown you can read and edit.

Install

Step 1 — Add the marketplace and install the plugin

Run these in your terminal (not inside a Claude Code session):

Step 2 — Activate guardrails in each session

After launching Claude Code (terminal or desktop), type:

This activates the…
Read the full README on GitHub

How hooks work

  • Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
  • They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
  • A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Claude Code docs

Details

Type
Hooks
Language
Python
License
MIT
Last updated
5 July 2026
Topics
agent-skillsagentic-aiagentic-workflowautomodeclaudeclaude-codeclaude-code-plugindestructive-commandssafetysecurity

FAQ

What is GouvernAI?

Runtime guardrails plugin that auto-approves safe actions, gates risky ones and blocks dangerous ones. It is a hook for Claude Code, from Myr-Aya/GouvernAI-claude-code-plugin on GitHub.

How do I install GouvernAI?

Run /plugin marketplace add Myr-Aya/GouvernAI-claude-code-plugin inside Claude Code, then follow the setup in the README.

Is GouvernAI popular?

Myr-Aya/GouvernAI-claude-code-plugin has 24 GitHub stars and 1 forks. It was last updated on 5 July 2026.

More hooks

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.