From ouroboros
After a tool call (Write|Edit): runs ROOT="${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}"; if [ -z "$ROOT" ]; then printf '…. When a session starts: runs ROOT="${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}"; if [ -z "$ROOT" ]; then printf '…. And 1 more.
3 events · 3 hooks
Ships in ouroboros. Installing the plugin adds it to Claude Code.
Safety signals detected in this hook configuration
Event handlers and matchers — expand Raw configuration for the full JSON
Write|EditROOT="${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}"; if [ -z "$ROOT" ]; then printf '%s\n' 'Ouroboros hook skipped: plugin root is unavailable.' >&2; exit 0; fi; SCRIPT="$ROOT/scripts/drift-monitor.py"; if [ ! -r "$SCRIPT" ]; then printf '%s\n' "Ouroboros hook skipped: $SCRIPT is unavailable." >&2; exit 0; fi; if command -v python3 >/dev/null 2>&1; then PYTHON=python3; elif command -v python >/dev/null 2>&1; then PYTHON=python; else printf '%s\n' 'Ouroboros hook skipped: Python is unavailable.' >&2; exit 0; fi; "$PYTHON" "$SCRIPT" || { STATUS=$?; printf '%s\n' "Ouroboros hook failed open: $SCRIPT exited with code $STATUS." >&2; exit 0; }3s*ROOT="${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}"; if [ -z "$ROOT" ]; then printf '%s\n' 'Ouroboros hook skipped: plugin root is unavailable.' >&2; exit 0; fi; SCRIPT="$ROOT/scripts/session-start.py"; if [ ! -r "$SCRIPT" ]; then printf '%s\n' "Ouroboros hook skipped: $SCRIPT is unavailable." >&2; exit 0; fi; if command -v python3 >/dev/null 2>&1; then PYTHON=python3; elif command -v python >/dev/null 2>&1; then PYTHON=python; else printf '%s\n' 'Ouroboros hook skipped: Python is unavailable.' >&2; exit 0; fi; "$PYTHON" "$SCRIPT" || { STATUS=$?; printf '%s\n' "Ouroboros hook failed open: $SCRIPT exited with code $STATUS." >&2; exit 0; }5s*ROOT="${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}"; if [ -z "$ROOT" ]; then printf '%s\n' 'Ouroboros hook skipped: plugin root is unavailable.' >&2; exit 0; fi; SCRIPT="$ROOT/scripts/keyword-detector.py"; if [ ! -r "$SCRIPT" ]; then printf '%s\n' "Ouroboros hook skipped: $SCRIPT is unavailable." >&2; exit 0; fi; if command -v python3 >/dev/null 2>&1; then PYTHON=python3; elif command -v python >/dev/null 2>&1; then PYTHON=python; else printf '%s\n' 'Ouroboros hook skipped: Python is unavailable.' >&2; exit 0; fi; "$PYTHON" "$SCRIPT" || { STATUS=$?; printf '%s\n' "Ouroboros hook failed open: $SCRIPT exited with code $STATUS." >&2; exit 0; }5sWhere this hook configuration is defined
Defined in hooks/hooks.json
npx claudepluginhub q00/ouroboros --plugin ouroboros52 plugins in 50 repositories ship this exact hooks config · first indexed Nov 28, 2025
Other plugins' hooks for the same job