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.

Install
$ npx -y skills add gendigitalinc/sage --agent claude-code

Ships with sage. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

PostToolUse

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.

  • Runs 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, auto-invoked
Stats
261
Stars
0
Views
26
Forks
Maintained
Maintenance
TypeScript
Language
Apache-2.0
License
1mo ago
Last commit
5mo ago
Created

Repo: gendigitalinc/sage