Skip to content
Security
Hook

Hooks

What sage runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
sage
3101 skill3 hooks
Install
> /plugin marketplace add gendigitalinc/sage
> /plugin install sage@sage

Ships with sage. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • MatchesBash|WebFetch|Write|Edit|Read

PostToolUse

  • MatchesBash|WebFetch|Write|Edit|Read

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • node "${CLAUDE_PLUGIN_ROOT}/packages/claude-code/dist/session-start.cjs"
Read hooks/hooks.json
Ships withsage

Safety for Agents — Agent Detection & Response for AI coding assistants Sage is a lightweight security layer that protects AI agents from executing dangerous actions.

Get the whole plugin
Stats
311
Stars
31
Forks
Active
Maintenance
TypeScript
Language
Apache-2.0
License
6d ago
Last commit
7mo ago
Created

Repo: gendigitalinc/sage