You kick off a Cursor agent, switch to something else, and check back… too late or too often. anotifier hooks Cursor's agent lifecycle and tells you the moment the run is over.
Comparing options first? How to get notified when the Cursor agent finishes covers every method, built-in and DIY.
Setup adds one hook to Cursor's own hook file, ~/.cursor/hooks.json, so the alert fires when the agent stops, not when you happen to look.
stopThe Cursor agent run endedA toast titled Cursor that says Task complete, or the same words by phone push or webhook. anotifier doesn't read the project or the run's status from Cursor's event, so every Cursor alert looks the same, however the run ended.Setup wires Cursor when a ~/.cursor folder exists. It backs up ~/.cursor/hooks.json to ~/.anotifier/backups/, then writes one entry in Cursor's hook format:
{
"version": 1,
"hooks": {
"stop": [
{
"command": "node \"/path/to/anotifier/src/notify.mjs\" --source cursor --event stop"
}
]
}
}Your other Cursor hooks stay as they are. Cursor can fire stop twice for one run; anotifier drops a repeat of the same event from the same session within 1.5 seconds, so you get one alert.
stop, so it tells you a run is over, not that the agent is waiting on you.cwd, not workspace_roots, from Cursor's event, so a Cursor alert has no project folder. Click-to-focus (Windows only) finds the window by that folder.cursor-agent is untested.npx anotifier@latest test # fire a test alert on every channel
npx anotifier@latest status # show which agents and channels are set up
npx anotifier@latest doctor # diagnose a channel that stays quiet
npx anotifier@latest uninstall # remove the hooks setup addedtest sends straight to your channels without going through Cursor, so it proves the channels work. uninstall removes only the entries anotifier added and restores your statusline (1.5.0 and later), and setup keeps a copy of every file it changes in ~/.anotifier/backups/.
No. anotifier hooks Cursor's own agent hook system from the outside — anotifier setup detects Cursor and wires it up automatically.
A toast titled Cursor with the text Task complete, or the same words by phone push or webhook. It doesn't name the project or list the edited files.
No. anotifier only hooks the stop event, so you hear about finished runs. The Cursor notifications guide covers the other options.
Yes — that's the point. One config covers every agent anotifier supports, so all your tools notify through the same channels.
Every command and config key is in the docs.
Full feature tour, demo video, and install options on the anotifier home page.