Claude Code hook
GouvernAI
Runtime guardrails plugin that auto-approves safe actions, gates risky ones and blocks dangerous ones.
Install
/plugin marketplace add Myr-Aya/GouvernAI-claude-code-plugingit clone https://github.com/Myr-Aya/GouvernAI-claude-code-plugin.gitFrom 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…
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.
Details
- Repository
- Myr-Aya/GouvernAI-claude-code-plugin
- Type
- Hooks
- Website
- gouvernai.ai
- 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
Claude Code Mastery
40alperhankendi/claude-code-mastery
Claude Code guides, hooks, MCP and workflow reference
Few Word
37sheeki03/Few-Word
Claude Code plugin that offloads large outputs to filesystem and retrieves when required.
Claude Code Security Hooks
39slavaspitsyn/claude-code-security-hooks
7 layers of defense against prompt injection in Claude Code. Security hooks, read guards, canary files, and self-protection.
claude-notify
22jamez01/claude-notify
Multi-OS notification tool designed to be called from Claude Code hooks.
Claude Brain
38mikeadolan/claude-brain
Persistent memory for Claude Code. Local SQLite + MCP + hooks.
Claude Brainlab
35Vepricov/claude-brainlab
A research lab's Claude Code setup: 67 skills, hooks and rules, plus a knowledge base in plain git — GitHub for ideas. A question goes in, knowledge comes out.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.