Skip to content
Development
Hook

Hooks

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

From plugin
awesome-claude-notes
264125 skills29 agents60 commands7 hooks
Install
> /plugin marketplace add loulanyue/awesome-claude-notes
> /plugin install awesome-claude-notes@awesome-claude-notes

Ships with awesome-claude-notes. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • MatchesBashnpx block-no-verify@1.1.2
  • MatchesBashnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/auto-tmux-dev.js"
  • MatchesBashnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "pre:bash:tmux-reminder" "scripts/hooks/pre-bash-tmux-reminder.js" "strict"
  • MatchesBashnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "pre:bash:git-push-reminder" "scripts/hooks/pre-bash-git-push-reminder.js" "strict"
  • MatchesWritenode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "pre:write:doc-file-warning" "scripts/hooks/doc-file-warning.js" "standard,strict"
  • MatchesEdit|Writenode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "pre:edit-write:suggest-compact" "scripts/hooks/suggest-compact.js" "standard,strict"
  • Matches*bash "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags-shell.sh" "pre:observe" "skills/continuous-learning-v2/hooks/observe.sh" "standard,strict"
  • MatchesBash|Write|Edit|MultiEditnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "pre:insaits-security" "scripts/hooks/insaits-security-wrapper.js" "standard,strict"
  • MatchesBash|Write|Edit|MultiEditnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "pre:governance-capture" "scripts/hooks/governance-capture.js" "standard,strict"
  • MatchesWrite|Edit|MultiEditnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "pre:config-protection" "scripts/hooks/config-protection.js" "standard,strict"
  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "pre:mcp-health-check" "scripts/hooks/mcp-health-check.js" "standard,strict"

PreCompact

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "pre:compact" "scripts/hooks/pre-compact.js" "standard,strict"

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.

  • Matches*bash -lc 'input=$(cat); for root in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME/.claude/plugins/awesome-claude-notes" "$HOME/.claude/plugins/awesome-claude-notes@awesome-claude-notes" "$HOME/.claude/plugins/marketplace/awesome-claude-notes" "$HOME/.claude/plugins/everything-claude-code" "$HOME/.claude/plugins/

PostToolUse

  • MatchesBashnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "post:bash:pr-created" "scripts/hooks/post-bash-pr-created.js" "standard,strict"
  • MatchesBashnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "post:bash:build-complete" "scripts/hooks/post-bash-build-complete.js" "standard,strict"
  • MatchesEdit|Write|MultiEditnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "post:quality-gate" "scripts/hooks/quality-gate.js" "standard,strict"
  • MatchesEditnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "post:edit:format" "scripts/hooks/post-edit-format.js" "strict"
  • MatchesEditnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "post:edit:typecheck" "scripts/hooks/post-edit-typecheck.js" "strict"
  • MatchesEditnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "post:edit:console-warn" "scripts/hooks/post-edit-console-warn.js" "standard,strict"
  • MatchesBash|Write|Edit|MultiEditnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "post:governance-capture" "scripts/hooks/governance-capture.js" "standard,strict"
  • Matches*bash "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags-shell.sh" "post:observe" "skills/continuous-learning-v2/hooks/observe.sh" "standard,strict"

PostToolUseFailure

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "post:mcp-health-check" "scripts/hooks/mcp-health-check.js" "standard,strict"

Stop

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "stop:check-console-log" "scripts/hooks/check-console-log.js" "standard,strict"
  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "stop:session-end" "scripts/hooks/session-end.js" "minimal,standard,strict"
  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "stop:evaluate-session" "scripts/hooks/evaluate-session.js" "minimal,standard,strict"
  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "stop:cost-tracker" "scripts/hooks/cost-tracker.js" "minimal,standard,strict"

SessionEnd

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js" "session:end:marker" "scripts/hooks/session-end-marker.js" "minimal,standard,strict"
Read hooks/hooks.json
Ships withawesome-claude-notes

Community-maintained distribution of reusable AI coding agents, commands, skills, hooks, and cross-harness workflows.

Get the whole plugin