Files
goclaw/examples/hooks/notify-discord-on-stop.json
viettranx 95bdb23a36 docs(hooks): user guide + example configs + changelog + Make targets
- docs/agent-hooks.md: handler reference, lifecycle events, security model
- examples/hooks/: 5 runnable JSON configs (audit, lint, block-rm-rf,
  Discord notify, context injector)
- docs/17-changelog.md: Wave 0 entry
- Makefile: hooks-specific test targets
- CLAUDE.md: cross-reference
2026-04-16 14:17:47 +07:00

23 lines
646 B
JSON

{
"event": "stop",
"handler_type": "http",
"scope": "tenant",
"matcher": "",
"if_expr": "",
"config": {
"url": "https://discord.com/api/webhooks/REPLACE_ME",
"headers": {
"Content-Type": "application/json"
}
},
"timeout_ms": 3000,
"on_timeout": "allow",
"priority": 1,
"enabled": false,
"source": "seed",
"metadata": {
"notes": "Discord webhook fired on every session stop. Disabled by default — enable after replacing the webhook URL. Discord expects {\"content\":\"...\"} but the hook ships event JSON; consider putting an adapter in front.",
"tags": ["notify", "discord", "session"]
}
}