Trigv home

Search docs

Getting started
  • Overview
  • How Trigv works
Help
  • Send test
  • API keys
  • Channels
  • Image attachments
Guides
  • All guides
  • cURL
  • Laravel
  • AI coding agents
  • Cursor
  • Claude Code
  • OpenAI Codex
  • Other agents
SDKs
  • All SDKs
  • JavaScript
  • Python
  • PHP
  • Go
  • Ruby
  • CLI
API reference
  • API overview
  • POST /api/v1/events
  • Errors & rate limits
  • API security
More
  • OpenAPI spec
Open in ChatGPT ↗ Ask questions about this page Open in Claude ↗ Ask questions about this page Open Markdown https://trigv.com/docs-md/learn/cursor.md

Cursor

Get a push when Cursor’s Agent finishes a task — set up once per project or globally.

Before you start

  • Shared trigv-notify.sh script installed and tested
  • TRIGV_API_KEY in your shell — add to ~/.zshrc and restart Cursor
  • Cursor with hooks enabled: Cursor Settings → search Hooks

Step 1 — Create the hook script

In your project, create .cursor/hooks/trigv-stop.sh:

Code
#!/usr/bin/env bash
set -euo pipefail

INPUT=$(cat)
WORKSPACE=$(echo "$INPUT" | jq -r '.workspace_roots[0] // .cwd // "project"' 2>/dev/null || echo "project")
BASENAME=$(basename "$WORKSPACE")

"${HOME}/.local/bin/trigv-notify.sh" \
	"Cursor: ${BASENAME} ready" \
	"Agent finished — review in Cursor" || true

exit 0

Run: chmod +x .cursor/hooks/trigv-stop.sh

Step 2 — Register the hook

Create or edit .cursor/hooks.json in your project root:

Code
{
	"version": 1,
	"hooks": {
		"stop": [
			{ "command": ".cursor/hooks/trigv-stop.sh" }
		]
	}
}

Step 3 — Test

  1. Restart Cursor (so it picks up TRIGV_API_KEY).
  2. Run an Agent task and wait for it to finish.
  3. Check your phone — and Cursor’s Hooks output panel if nothing fires.

All projects (optional)

Use ~/.cursor/hooks.json and ~/.cursor/hooks/trigv-stop.sh instead of project files.

Cursor hooks documentation →

Previous AI coding agents Next Claude Code

On this page

    Native push alerts for developers. Send alerts from webhooks, cron jobs, and scripts. We deliver alerts to your devices, but don't keep the message or notification history on our servers.

    Follow @trigvapp →

    Built by Harish Chouhan

    Product

    • Features
    • How it works
    • Pricing
    • Docs
    • Integrations
    • SDKs
    • API
    • Full LLMs text

    Company

    • About
    • Support
    • Changelog

    Legal

    • Terms & Conditions
    • Privacy Policy
    • Cookie Policy
    • API Security
    All systems ok. Get back to coding.

    © 2026 Webtions OU (dba Trigv)