Skip to content
Agent Orchestration
Hook

Hooks

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

From plugin
nights-watch
3691 agent6 commands3 hooks1 MCP
Install
> /plugin marketplace add aniketkarne/claudenightswatch
> /plugin install claude-nights-watch@claude-nights-watch-marketplace

Ships with nights-watch. 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.

  • ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/check-daemon-status.sh

SessionEnd

  • ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-end-prompt.sh

PostToolUse

  • MatchesWrite|Edit${CLAUDE_PLUGIN_ROOT}/hooks/scripts/log-file-changes.sh
Read hooks/hooks.json
Ships withnights-watch

๐Ÿš€ NEW: Now available as a Claude Code Plugin! ๐ŸŽ‰ Autonomous task execution system for Claude CLI that monitors your usage windows and executes predefined tasks automatically.

Get the whole plugin