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
3261 skill3 hooks

Claude Code

> /plugin marketplace add gendigitalinc/sage
> /plugin install sage@sage

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
@gendigitalinc
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.

Stars on GitHub

Momentum

stars in total
326
Star history of gendigitalinc/sage on GitHub, a chart by star-history.com

More plugins that ship hooks.

watermarks-remover

watermarks-remover

Agent skill + stdlib Python service to strip multi-vendor AI provenance marks from text and files, for privacy and hygiene on content you own. The skill is a thin client: it drives the machinery over HTTP, so the agent host needs no Python.

2 skills1 hook27k
@guillaumemeyer@guillaumemeyer
Install Plugin
agentic-bug-hunter

agentic-bug-hunter

Runs recon on a target, tests it for real, reportable vulnerabilities, checks each finding against a strict validation gate, and writes a report ready to submit to bug bounty platforms. It also remembers patterns across targets and resumes unfinished sessions.

25 skills+35.9k
@awarexone@awarexone
Install Plugin
agentic-bug-hunter

agentic-bug-hunter

A Claude Code plugin for bug bounty hunters, bundling skills for reconnaissance, vulnerability hunting such as IDOR, SSRF and XSS, black-box audits of deployed AI agents, and CI/CD pipeline security.

25 skills+35.9k
@shuvonsec@shuvonsec
Install Plugin
cc-safety-net

cc-safety-net

A pre-execution guard that blocks destructive Git and file system commands, and common attempts to read sensitive files, before a tool call runs. Works with several AI coding agents, including Claude Code.

2 skills1 hook1.9k
@kenryu42@kenryu42
Install Plugin
claude-code-safety-net

claude-code-safety-net

A pre-execution guard that blocks destructive Git and file system commands, plus common attempts to read sensitive files, before an AI coding agent runs a tool call. Works with Claude Code and several other agent CLIs.

2 skills1 hook1.9k
@kenryu42@kenryu42
Install Plugin
pentest-agents

pentest-agents

A bug bounty agent framework for Claude Code that automates reconnaissance, vulnerability hunting and exploit chaining, with skills for analyzing recon output, running autonomous hunt loops and correlating findings into attack chains.

39 skills+31.1k
@h-mmer@h-mmer
Install Plugin
vestige

vestige

Vestige is a fail-closed runtime firewall for AI agents. The model proposes, a deterministic gate decides, and every action leaves a receipt. When something breaks, causal_walk finds the real cause.

3 agents+1660
@samvallad33@samvallad33
Install Plugin
cti-expert

cti-expert

A cyber threat intelligence and OSINT analysis toolkit that runs structured investigations and produces analyst-style reports with sourced, trust-scored findings. Built for security analysts working OSINT and CTI cases in Claude Code.

1 skill+2624
@7onez@7onez
Install Plugin

Questions about the hooks in sage.

Which coding agents can use the hooks in sage?
The hooks in sage install in Claude Code and Cursor: each runs Claude Code hooks from .claude/settings.json, so copy the hooks there.