From Duplikate
Before a tool call (Bash): runs grep -Eq 'gh[[:space:]]+pr[[:space:]]+(create|new)' || exit 0; m="Duplikate coul…, grep -Eq 'gh[[:space:]]+pr[[:space:]]+(create|new)' || exit 0; m="Duplikate coul…. And 11 more.
3 events · 15 hooks
Ships in Duplikate. 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
Bashgrep -Eq 'gh[[:space:]]+pr[[:space:]]+(create|new)' || exit 0; m="Duplikate could not check this action, so it is blocked: set the hook key from Duplikate's Connections screen, or try again."; r=$(printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- 'https://duplikate.io/api/gate?action=open_pull_request&event=pre') || { echo "$m" >&2; exit 2; }; case $r in '{'*'}') printf '%s\n' "$r" ;; *) echo "$m" >&2; exit 2 ;; esac15sgrep -Eq 'gh[[:space:]]+pr[[:space:]]+(create|new)' || exit 0; m="Duplikate could not check this action, so it is blocked: set the hook key from Duplikate's Connections screen, or try again."; r=$(printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- 'https://duplikate.io/api/gate?action=open_pull_request&event=pre') || { echo "$m" >&2; exit 2; }; case $r in '{'*'}') printf '%s\n' "$r" ;; *) echo "$m" >&2; exit 2 ;; esac15s^mcp__.+__create_pull_request$m="Duplikate could not check this action, so it is blocked: set the hook key from Duplikate's Connections screen, or try again."; r=$(printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- 'https://duplikate.io/api/gate?action=open_pull_request&event=pre') || { echo "$m" >&2; exit 2; }; case $r in '{'*'}') printf '%s\n' "$r" ;; *) echo "$m" >&2; exit 2 ;; esac15s^mcp__.*[Gg]mail__(send_message|reply|forward)$m="Duplikate could not check this action, so it is blocked: set the hook key from Duplikate's Connections screen, or try again."; r=$(printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- 'https://duplikate.io/api/gate?action=send_mail&event=pre') || { echo "$m" >&2; exit 2; }; case $r in '{'*'}') printf '%s\n' "$r" ;; *) echo "$m" >&2; exit 2 ;; esac15s^mcp__.+__slack_(send_message|schedule_message)$m="Duplikate could not check this action, so it is blocked: set the hook key from Duplikate's Connections screen, or try again."; r=$(printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- 'https://duplikate.io/api/gate?action=post_message&event=pre') || { echo "$m" >&2; exit 2; }; case $r in '{'*'}') printf '%s\n' "$r" ;; *) echo "$m" >&2; exit 2 ;; esac15sBashgrep -Eq 'gh[[:space:]]+pr[[:space:]]+(create|new)' || exit 0; printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=open_pull_request&event=done'15sgrep -Eq 'gh[[:space:]]+pr[[:space:]]+(create|new)' || exit 0; printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=open_pull_request&event=done'15s^mcp__.+__create_pull_request$printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=open_pull_request&event=done'15s^mcp__.*[Gg]mail__(send_message|reply|forward)$printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=send_mail&event=done'15s^mcp__.+__slack_(send_message|schedule_message)$printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=post_message&event=done'15sBashgrep -Eq 'gh[[:space:]]+pr[[:space:]]+(create|new)' || exit 0; printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=open_pull_request&event=done'15sgrep -Eq 'gh[[:space:]]+pr[[:space:]]+(create|new)' || exit 0; printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=open_pull_request&event=done'15s^mcp__.+__create_pull_request$printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=open_pull_request&event=done'15s^mcp__.*[Gg]mail__(send_message|reply|forward)$printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=send_mail&event=done'15s^mcp__.+__slack_(send_message|schedule_message)$printf 'Authorization: Bearer %s\n' "$CLAUDE_PLUGIN_OPTION_HOOK_KEY" | curl -sSf --max-time 10 -X POST -H @- -o /dev/null 'https://duplikate.io/api/gate?action=post_message&event=done'15sWhere this hook configuration is defined
Defined in hooks/hooks.json
npx claudepluginhub the-traide/duplikate-plugin --plugin duplikate8 plugins ship this exact hooks config · first indexed Sep 30, 2026
Other plugins' hooks for the same job