Other AI tools
If a tool can run a shell command when work finishes, it can call Trigv — no special SDK.
Quick test (any terminal)
Code
curl -sS -X POST https://api.trigv.com/api/v1/events \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TRIGV_API_KEY" \
-d '{"channel":"agents","title":"Agent done","level":"success"}' Or use trigv-notify.sh for nicer titles.
By tool
| Tool | What to do |
|---|---|
| Windsurf | When a Cascade flow ends, run trigv-notify.sh from a post-step shell command. |
| Aider | Wrap your session: aider …; trigv-notify.sh “Aider session ended” |
| Gemini CLI | Chain commands in one shell script — notify on exit code 0 or 1. |
| Custom agents | Call Trigv from your agent’s completion handler — same JSON as event ingest. |
Wrapper pattern
Works when the tool has no hooks yet — run any command, notify on exit:
Code
#!/usr/bin/env bash
set -e
"$@"
STATUS=$?
if [ $STATUS -eq 0 ]; then
trigv-notify.sh "Success" "$*"
else
TRIGV_LEVEL=error trigv-notify.sh "Failed ($STATUS)" "$*"
fi
exit $STATUS