From vbw
After every Claude response: runs bash "${CLAUDE_PLUGIN_ROOT}/hooks/stop.sh" 2>/dev/null || true. Before a tool call (Bash): runs ulimit -t 5 2>/dev/null; s="${CLAUDE_PROJECT_DIR:-$PWD}"; p="$s"; while [ "$p" !…. And 6 more.
5 events · 8 hooks
Ships in vbw. 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
bash "${CLAUDE_PLUGIN_ROOT}/hooks/stop.sh" 2>/dev/null || trueBashulimit -t 5 2>/dev/null; s="${CLAUDE_PROJECT_DIR:-$PWD}"; p="$s"; while [ "$p" != / ] && [ -n "$p" ] && [ ! -e "$p/.git" ]; do case "$p" in */*) p="${p%/*}"; p="${p:-/}" ;; *) p=/ ;; esac; done; [ -e "$p/.git" ] || p="$s"; u="$p"; while [ "$u" != / ] && [ -f "$u/.git" ] && [ ! -f "$u/.vbw/record.json" ]; do l=; read -r l < "$u/.git" || :; case "$l" in */modules/*) ;; *) break ;; esac; case "${l##*/worktrees/}" in "$l" | */*) ;; *) break ;; esac; case "$u" in */*) u="${u%/*}"; u="${u:-/}" ;; *) u=/ ;; esac; while [ "$u" != / ] && [ ! -e "$u/.git" ]; do case "$u" in */*) u="${u%/*}"; u="${u:-/}" ;; *) u=/ ;; esac; done; done; [ -f "$u/.vbw/record.json" ] && [ -e "$u/.git" ] && p="$u"; r="$p/.vbw/record.json"; g=/dev/null; d="$p/.vbw/runtime/glance.json"; [ -f "$r" ] && [ -f "$d" ] && [ -r "$d" ] && [ "$d" -nt "$r" ] && g="$d"; o=0; [ -e "$p/.vbw/runtime/run-open" ] && o=1; jq -nrc --rawfile glance "$g" --arg root "$p" --arg dir "$s" --arg open "$o" -f "${CLAUDE_PLUGIN_ROOT}/hooks/guard-bash.jq" - "$r" "${CLAUDE_PLUGIN_ROOT}/hooks/end.json" --args "$p"/.vbw/runtime/auto.*.json 2>/dev/null | { . "${CLAUDE_PLUGIN_ROOT}/hooks/read.sh"; } || { [ $? -eq 4 ] || [ "$o" = 1 ] && { echo "VBW guard: the guard failed while a run is open, so this call is blocked. Next: run vbw doctor to see why, then retry" >&2; exit 2; }; true; }AskUserQuestionjq -c -f "${CLAUDE_PLUGIN_ROOT}/hooks/approve-ask.jq" 2>/dev/null | { IFS= read -r in && bash "${CLAUDE_PLUGIN_ROOT}/hooks/approve-ask.sh" "$in"; } 2>/dev/null || trueRead|Write|Edit|MultiEdit|NotebookEdit|Grepulimit -t 5 2>/dev/null; s="${CLAUDE_PROJECT_DIR:-$PWD}"; p="$s"; while [ "$p" != / ] && [ -n "$p" ] && [ ! -e "$p/.git" ]; do case "$p" in */*) p="${p%/*}"; p="${p:-/}" ;; *) p=/ ;; esac; done; [ -e "$p/.git" ] || p="$s"; u="$p"; while [ "$u" != / ] && [ -f "$u/.git" ] && [ ! -f "$u/.vbw/record.json" ]; do l=; read -r l < "$u/.git" || :; case "$l" in */modules/*) ;; *) break ;; esac; case "${l##*/worktrees/}" in "$l" | */*) ;; *) break ;; esac; case "$u" in */*) u="${u%/*}"; u="${u:-/}" ;; *) u=/ ;; esac; while [ "$u" != / ] && [ ! -e "$u/.git" ]; do case "$u" in */*) u="${u%/*}"; u="${u:-/}" ;; *) u=/ ;; esac; done; done; [ -f "$u/.vbw/record.json" ] && [ -e "$u/.git" ] && p="$u"; r="$p/.vbw/record.json"; g=/dev/null; d="$p/.vbw/runtime/glance.json"; [ -f "$r" ] && [ -f "$d" ] && [ -r "$d" ] && [ "$d" -nt "$r" ] && g="$d"; o=0; [ -e "$p/.vbw/runtime/run-open" ] && o=1; jq -nrc --rawfile glance "$g" --arg root "$p" --arg dir "$s" --arg open "$o" -f "${CLAUDE_PLUGIN_ROOT}/hooks/guard-file.jq" - "$r" "${CLAUDE_PLUGIN_ROOT}/hooks/end.json" 2>/dev/null | { . "${CLAUDE_PLUGIN_ROOT}/hooks/read.sh"; } || { [ $? -eq 4 ] || [ "$o" = 1 ] && { echo "VBW guard: the guard failed while a run is open, so this call is blocked. Next: run vbw doctor to see why, then retry" >&2; exit 2; }; true; }ulimit -t 5 2>/dev/null; jq -c 'select((.agent_type // "") | test("^vbw:(architect|lead|dev|qa|scout|debugger|docs)$"))' 2>/dev/null | { IFS= read -r in || exit 0; s="${CLAUDE_PROJECT_DIR:-$PWD}"; p="$s"; while [ "$p" != / ] && [ -n "$p" ] && [ ! -e "$p/.git" ]; do case "$p" in */*) p="${p%/*}"; p="${p:-/}" ;; *) p=/ ;; esac; done; [ -e "$p/.git" ] || p="$s"; u="$p"; while [ "$u" != / ] && [ -f "$u/.git" ] && [ ! -f "$u/.vbw/record.json" ]; do l=; read -r l < "$u/.git" || :; case "$l" in */modules/*) ;; *) break ;; esac; case "${l##*/worktrees/}" in "$l" | */*) ;; *) break ;; esac; case "$u" in */*) u="${u%/*}"; u="${u:-/}" ;; *) u=/ ;; esac; while [ "$u" != / ] && [ ! -e "$u/.git" ]; do case "$u" in */*) u="${u%/*}"; u="${u:-/}" ;; *) u=/ ;; esac; done; done; [ -f "$u/.vbw/record.json" ] && [ -e "$u/.git" ] && p="$u"; r="$p/.vbw/record.json"; g=/dev/null; d="$p/.vbw/runtime/glance.json"; [ -f "$r" ] && [ -f "$d" ] && [ -r "$d" ] && [ "$d" -nt "$r" ] && g="$d"; o=0; [ -e "$p/.vbw/runtime/run-open" ] && o=1; printf '%s\n' "$in" | jq -nc --rawfile glance "$g" --arg root "$p" --arg dir "$s" --arg open "$o" -f "${CLAUDE_PLUGIN_ROOT}/hooks/guard-tools.jq" - "$r" "${CLAUDE_PLUGIN_ROOT}/hooks/end.json" 2>/dev/null || exit $((3 + o)); } || { [ $? -eq 4 ] && { echo "VBW guard: the guard failed while a run is open, so this call is blocked. Next: run vbw doctor to see why, then retry" >&2; exit 2; }; true; }AskUserQuestionout=$(jq -c -f "${CLAUDE_PLUGIN_ROOT}/hooks/approve-answer.jq" 2>/dev/null); [ -z "$out" ] || bash "${CLAUDE_PLUGIN_ROOT}/hooks/approve-answer.sh" "$out" 2>/dev/null || truebash "${CLAUDE_PLUGIN_ROOT}/hooks/stop.sh" 2>/dev/null || truebash "${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh"Where this hook configuration is defined
Defined in hooks/hooks.json
npx claudepluginhub swt-labs/vibe-better-with-claude-code-vbw --plugin vbwOther plugins' hooks for the same job