Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that pings you on Discord when a session is blocked waiting for you — so a session never sits hung while you are away from the terminal.
Claude Code stops and waits whenever it needs a human: a tool needs your approval, Claude asks you a question, a subagent needs input, an MCP server opens an elicitation dialog. If you have stepped away, that wait costs you the whole time until you happen to look back at the terminal.
This plugin registers a Notification hook that fires on exactly those
blocking events and sends one short Discord webhook message:
Waiting for your permission Claude Code is blocked and cannot continue until you respond. Project:
myapp/home/you/work/myapp · a1b2c3d4
This is not a progress reporter. It fires only when the session is
genuinely stuck on you. Completion notices, progress updates, and idle
notifications are deliberately out of scope — if you want the agent to tell
you when work finishes, use the separate discord-notify plugin.
The hook is registered with a * matcher, so Claude Code hands it every
notification type it emits, and the filtering happens inside the script. That
placement is deliberate: when the matcher did the filtering, a type outside the
list never reached the script and left no trace at all, which made "no alert
arrived" and "no such notification is emitted" impossible to tell apart.
These are the types in the default allowlist:
| Type | Meaning | Alert title |
|---|---|---|
permission_prompt | A tool call is waiting for your approval | Waiting for your permission |
permission_prompt + question marker | Claude asked you a question | Claude has a question for you |
agent_needs_input | A subagent needs input from you | A subagent needs your input |
elicitation_dialog | An MCP server is asking for input | An MCP server is asking for input |
elicitation_url_dialog | An MCP server is asking you to open a URL | An MCP server is asking you to open a URL |
Anything else is logged as ignored (<type>) and nothing is sent. Change the
list with DISCORD_HANG_ALERT_TYPES — no need to edit hooks.json. For a type
with no title of its own, the alert uses Claude Code's own notification text
from the payload's message field.
Claude Code reports the AskUserQuestion tool as permission_prompt with the
message "Claude needs your permission", exactly like a tool awaiting
approval — the notification payload carries nothing that separates the two.
So a second hook supplies what the payload cannot. A PreToolUse hook matching
the AskUserQuestion tool drops a marker file for the session; the
Notification handler consumes a marker younger than 15 seconds and titles the
alert "Claude has a question for you" instead.
The marker hook only writes that file. It never touches the network and writes
nothing to stdout, because PreToolUse is awaited before the tool runs and its
stdout is a decision channel — a stray line there could block the tool call.
Sending stays entirely with the Notification handler, so a question produces
one alert, not two. The marker is consumed even when the alert is suppressed by
the cooldown, so it can never leak onto a later permission prompt, and the log
records these as sent (permission_prompt/question).
Excluded from the default list on purpose: idle_prompt (fires while you are
simply reading the terminal) and agent_completed (that is a completion
notice, and it would fire on every turn).
Create an incoming webhook for the channel you want pinged (Discord → Server Settings → Integrations → Webhooks → New Webhook → Copy Webhook URL), then make it available in any one of these ways:
export DISCORD_HANG_ALERT_WEBHOOK_URL="https://discord.com/api/webhooks/..."
or reuse the shared DISCORD_WEBHOOK_URL variable, or write the URL into a
file — useful because a hook only sees the environment Claude Code itself was
launched with:
mkdir -p ~/.config/discord-hang-alert
printf '%s\n' "https://discord.com/api/webhooks/..." > ~/.config/discord-hang-alert/webhook
chmod 600 ~/.config/discord-hang-alert/webhook
Until a webhook resolves, the plugin is completely inert — it logs
no webhook configured and does nothing.
Requires curl and jq.
~/.claude/plugins/.../discord-hang-alert/scripts/discord-hang-alert-hook.sh --self-test
It prints the state directory, the cooldown, which config source won, and the webhook host (never the full URL), then sends one test notification and reports the result.
A hook fires automatically with no model in the loop, so the limits are mechanical rather than advisory:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub rishubil/skills --plugin discord-hang-alertPlugins from other owners that cover similar ground