Skip to content
Development
Hook

Hooks

What swarm 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 DheerG/swarms --agent claude-code

Ships with swarm. Installing the plugin gets these hooks.

What fires, and when

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 "${CLAUDE_PLUGIN_ROOT}".

PreToolUse

  • Runs confirm-shutdown.sh".
Read hooks/hooks.json
Ships withswarm

Describe what you want. Get a reviewed, ship-ready PR โ€” without babysitting the agent.

Get the whole plugin, auto-invoked