Stats
Actions
Tags
From agent-flow
On session start, checks that a required command-line binary is available. After each Bash tool invocation, runs a script to prompt or guide the user. Executes bash commands.
2 events · 4 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
Bashjq -r '.tool_input.command // empty' | { read -r cmd; case "$cmd" in backlog\ *|backlog) BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null); if [[ -n "$BRANCH" && "$BRANCH" != "HEAD" ]]; then git add backlog/ && git commit -m "Backlog auto-sync [skip ci]" 2>/dev/null; attempt=0; while [[ $attempt -le 4 ]]; do git push -u origin "$BRANCH" 2>&1 && break; attempt=$((attempt+1)); [[ $attempt -le 4 ]] && { echo "backlog-sync: push failed, retrying in $((2**attempt))s..." >&2; sleep $((2**attempt)); }; done; fi;; esac; } || trueSkilljq -r '.tool_input.skill // empty' | grep -qiF backlog && { BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null); if [[ -n "$BRANCH" && "$BRANCH" != "HEAD" ]]; then git add backlog/ && git commit -m "Backlog auto-sync [skip ci]" 2>/dev/null; attempt=0; while [[ $attempt -le 4 ]]; do git push -u origin "$BRANCH" 2>&1 && break; attempt=$((attempt+1)); [[ $attempt -le 4 ]] && { echo "backlog-sync: push failed, retrying in $((2**attempt))s..." >&2; sleep $((2**attempt)); }; done; fi; } || truemcp__*backlog*BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null); if [[ -n "$BRANCH" && "$BRANCH" != "HEAD" ]]; then git add backlog/ && git commit -m "Backlog auto-sync [skip ci]" 2>/dev/null; attempt=0; while [[ $attempt -le 4 ]]; do git push -u origin "$BRANCH" 2>&1 && break; attempt=$((attempt+1)); [[ $attempt -le 4 ]] && { echo "backlog-sync: push failed, retrying in $((2**attempt))s..." >&2; sleep $((2**attempt)); }; done; fi || true${CLAUDE_PLUGIN_ROOT}/.claude-agent-flow/scripts/session-start.shnpx claudepluginhub timgranlundmarsden/claude-agent-flow