Skip to content

Instantly share code, notes, and snippets.

@amondnet
Created October 24, 2025 14:37
Show Gist options
  • Select an option

  • Save amondnet/0acdd010cca00a7f0aa18904dee8602c to your computer and use it in GitHub Desktop.

Select an option

Save amondnet/0acdd010cca00a7f0aa18904dee8602c to your computer and use it in GitHub Desktop.
Slack Notify + Claude Code
#!/bin/bash
WEBHOOK_URL="https://hooks.slack.com/services/YOUR/WEBHOOK/URL"
curl -X POST -H 'Content-type: application/json' \
--data '{
"text": "⚠️ Claude Code needs attention!",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "⚠️ *Claude Code* needs your attention!\n_Check your terminal_"
}
}
]
}' \
"$WEBHOOK_URL" > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment