After the code generation is complete, notify my phone, send me an email, etc. Is that possible? How can it be implemented?

Feature request for product/service

Cursor IDE

Describe the request

After the code generation is complete, notify my phone, send me an email, etc. Is that possible? How can it be implemented?

Hey, good question. This is partly available already, and there’s a solid workaround for the rest.

What’s already built in:

  • Sound notifications: Settings > Sound Notifications
  • Desktop notifications v1.5.x+: shows when the agent finishes or needs confirmation
  • Orange dot indicator on chat tabs

For phone and watch notifications:

Cursor supports Hooks: Hooks | Cursor Docs
These are custom scripts that run on agent events. There’s a stop event that fires when the agent finishes. You can use it to send any notification you want.

A community member already built this. It sends push notifications via ntfy to your phone or watch when the agent stops:

Install:

npx cursor-hook install beautyfree/cursor-ntfy-on-stop-hook

For email, you can write a similar hook using the stop event that calls an email API like SendGrid or Mailgun. The hooks docs include examples to get you started.

Related thread: Push Notifications (Mobile/Desktop) When Agent Needs User Input or Approval