anotifier for Cursor.
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.
Wired into Cursor itself.
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 my-app · Cursor that says my-app: Task complete, or the same words by phone push or webhook. From 1.8.0 anotifier reads the first workspace folder and the run's status from Cursor's event: a run that ended in an error says Task failed, and a run you aborted sends no alert. Earlier versions titled every Cursor alert just Cursor.One stop hook in ~/.cursor/hooks.json.
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.
What it does, and what it doesn't.
- Finished runs only. anotifier registers
stop, so it tells you a run is over, not that the agent is waiting on you. - Project name and click-to-focus from 1.8.0. anotifier reads
workspace_rootsfrom Cursor's event, so an alert is titledmy-app · Cursorand a Windows click on the toast can focus the window with that folder. Before 1.8.0 a Cursor alert had no project folder, so no project name and no click action. - Usually no bell. The bell rings in the terminal the agent runs in, and the Cursor editor normally has none.
- Cursor CLI. Whether the hook fires under
cursor-agentis untested. - How it's tested. CI checks that setup writes and removes the Cursor hook correctly. Unlike Claude Code, Codex and Gemini CLI, a real Cursor run isn't driven end to end.
Every channel you'd actually use.
Test it, then keep it or remove it.
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/.
Cursor questions, answered.
Does this need a Cursor extension?
No. anotifier hooks Cursor's own agent hook system from the outside — anotifier setup detects Cursor and wires it up automatically.
What does a Cursor notification look like?
A toast titled my-app · Cursor with the text my-app: Task complete (from 1.8.0; earlier versions titled it just Cursor), or the same words by phone push or webhook. A run that ended in an error says Task failed. It doesn't list the edited files.
Will I get an alert when the Cursor agent needs approval?
No. anotifier only hooks the stop event, so you hear about finished runs. The Cursor notifications guide covers the other options.
Can I use it alongside Claude Code and Codex?
Yes — that's the point. One config covers every agent anotifier supports, so all your tools notify through the same channels.
Every option, explained.
- How to get notified when the Cursor agent finishesGet a Cursor notification when the agent is done: the built-in sound and OS alert, a stop hook in hooks.json for a toast, phone push or Slack, and fixes.
- How agent hooks power your notificationsWhich hook events Claude Code, Codex CLI, Cursor and Gemini CLI fire when they finish or need you, where each is configured, and what anotifier writes.
- Notifications not arriving? Work through this listNot getting alerts from Claude Code, Codex, Cursor or Gemini CLI? Check hooks, restarts, snooze, quiet hours, toast backends and ntfy, in that order.
- Claude Code ntfy: push to your phone when the agent finishesClaude Code ntfy setup: install the ntfy app, run npx anotifier setup, or add a Stop hook with curl. Private topics, self-hosting, priority and fixes.
One config, every agent.
Every command and config key is in the docs.
Full feature tour, demo video, and install options on the anotifier home page.