To get notified when an AI coding agent finishes or needs you, start with what the agent has built in: Claude Code, Cursor, Codex and Gemini CLI can each raise a desktop or terminal notification. For your phone, use the vendor's own app where there is one, or a hook that posts to a push service when the agent stops. If the agent needs an answer and not just your attention, give it an MCP tool it can call to ask a question and wait.
The details differ a lot between agents, so this page compares the four and links to the longer guide for each. The Claude Code and Cursor details summarise our own guides, which cite the vendor docs. The Codex and Gemini CLI details were checked against the Codex and Gemini CLI docs on November 23, 2026.
What each coding agent can do today
| Agent | Built in at your desk | What a hook adds | Reaching your phone | Answering from the notification |
|---|---|---|---|---|
| Claude Code | Desktop notification in iTerm2, Ghostty and Kitty; a terminal bell elsewhere if you set it | Notification when it's waiting on you, Stop after every turn |
Remote Control push in the Claude app (paid Claude plans, not API keys), or a hook to a push service | Yes with Remote Control: permission prompts and questions |
| Cursor | Completion Sound and System Notifications; a separate setting for the CLI | stop when the agent loop ends; nothing for "waiting on approval" |
Cursor for iOS (public beta, paid plans); no Android app, so a hook to a push service | Follow-ups in the iOS app; approving single commands isn't spelled out in the docs |
| Codex | TUI notifications, on by default, when the terminal is unfocused; alert settings in the ChatGPT desktop app | notify runs a program when a turn completes, and only then |
ChatGPT mobile app paired with the ChatGPT desktop app, or a notify script to a push service |
Yes over a remote connection: approve commands and other actions |
| Gemini CLI | Experimental notifications, off by default | Notification for system alerts, AfterAgent after each turn |
A hook to a push service | Not covered in the docs linked below |
Two things hold across the table. Built-in notifications are tied to the terminal or the desktop app, so they stop helping once you leave the room. And the native way to answer an agent's own permission prompt from a phone is that vendor's app. All four agents also connect to remote MCP servers, which is the route to a question the agent asks you itself; more on that below.
Claude Code notifications
Claude Code notifies you on the desktop only in some terminals. With default settings it sends a desktop notification in iTerm2, Ghostty and Kitty and does nothing in most others, where the cheapest fix is setting preferredNotifChannel to terminal_bell.
Hooks cover the rest. A Notification hook fires when Claude is waiting on you: about six seconds after a permission prompt appears, or about 60 seconds after Claude finishes, and in a terminal session only when you seem to be away. A Stop hook fires every time Claude finishes a turn. A PermissionRequest hook fires the moment a permission dialog is about to show. Each can run a command, so the same hook can play a sound, show a desktop popup or post to a push service.
There are two routes to your phone. With Remote Control connected, the Claude app installed and the push toggles turned on in /config, Claude Code can push when it judges it worthwhile, or whenever a permission prompt or question is waiting, and you answer the prompt in the app. That needs a Pro, Max, Ultra, Team or Enterprise plan. It doesn't work with API keys, Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry. On those setups, point a Notification hook at a push service instead.
- Hook configs for macOS, Linux and Windows, the timing rules and a phone script: Claude Code notifications.
- Setup, plan rules, limits and alternatives: Claude Code Remote Control.
Cursor notifications
The Cursor editor has two toggles under Cursor Settings > General > Notifications. Completion Sound plays a chime when the agent finishes. System Notifications shows an OS notification when the agent needs your attention, approval prompts included, but only when Cursor isn't the focused window. The Cursor CLI ignores both and has its own notifications setting in ~/.cursor/cli-config.json.
A stop hook in ~/.cursor/hooks.json runs a script when the agent loop ends, with a status of completed, aborted or error. Cursor has no hook for the moment an approval card appears, and stop doesn't fire while the agent is paused on one. A hook can tell you a run ended, but not that it's waiting.
On a phone, Cursor for iOS (public beta on paid plans) pushes when an agent finishes, needs input or is ready for review, according to Cursor's launch post. There's no Android app; Cursor's docs say Android is planned. The mobile docs describe following progress and sending follow-ups, and they don't spell out approving individual commands. On Android, use the stop hook with a push service.
- Settings, a hook script that only pings for runs over two minutes, and the iOS details: Cursor notifications.
Codex notifications
The Codex CLI notifies from its terminal UI by default. tui.notifications in ~/.codex/config.toml is on unless you turn it off, and it accepts a list that limits it to event types such as agent-turn-complete and approval-requested. These fire only when the terminal is unfocused unless you set tui.notification_condition to always. In the default auto mode, Codex prefers OSC 9, an escape sequence some terminals show as a desktop notification, and falls back to the terminal bell (advanced config, sample config).
For anything beyond the terminal, notify runs a program of your choice:
# ~/.codex/config.toml
notify = ["python3", "/path/to/notify.py"]
[tui]
notifications = ["agent-turn-complete", "approval-requested"]
notify currently supports one event, agent-turn-complete. It can tell your phone that a turn finished, but not that Codex is waiting for approval. The program receives a JSON argument that includes last-assistant-message and cwd. Codex ignores notify in a project-level .codex/config.toml, so set it in the user file.
The ChatGPT desktop app has its own settings: turn-completion alerts that appear never, only while the app is in the background, or always, plus separate switches for permission and question notifications. The IDE extension has no notification controls of its own (Codex notifications docs).
For the phone, OpenAI's route is a remote connection: you pair the ChatGPT mobile app on iOS or Android with the ChatGPT desktop app on a Mac or Windows PC. The docs list getting notified when a task completes or needs your attention, and approving commands and other actions. The computer has to stay awake and online. Setup starts in the desktop app, and the docs say you can't set it up from the Codex CLI or the IDE extension.
We don't have a full Codex guide yet. The notify setting sits next to the push services in ntfy vs Pushover vs Slack, and the MCP config for Codex is in our remote MCP server guide.
Gemini CLI notifications
Gemini CLI has built-in notifications, but they're experimental and off by default. Turn on Enable Notifications under /settings > General, or add this to settings.json:
{
"general": { "enableNotifications": true }
}
Per the notifications docs, it then notifies on two events: action required, when the model is waiting for your input or a tool approval, and session complete. It uses OSC 9, which the docs say iTerm2, WezTerm, Ghostty and Kitty support, and falls back to the terminal bell.
Gemini CLI hooks are set under hooks in settings.json: ~/.gemini/settings.json for you, .gemini/settings.json for a project. Two events matter here, and the hooks reference describes both. Notification fires when the CLI emits a system alert such as a tool permission request. It can't block the alert or grant the permission. AfterAgent fires once per turn, after the model's final response, and receives that text as prompt_response. An AfterAgent hook that exits with code 2 rejects the response and triggers a retry, so end a notification script with exit 0.
Those pages describe terminal notifications and hooks, not a phone app. The phone route is a hook that posts to a push service, or an MCP server.
One caveat on scope. Google replaced Gemini CLI with Antigravity CLI on June 18, 2026 for free-tier, Google AI Pro and Ultra users, and this page doesn't cover Antigravity CLI's notification settings. The MCP config for both is in our remote MCP server guide.
One-way ping vs ask-and-wait
A notification is one-way. It says "come look". Sometimes the agent is stopped until you decide, and that takes three things a notification doesn't have: a way to answer from the notification, a path for the answer back to the agent, and an agent that can wait.
Hooks can't do that on their own. They fire after the agent has stopped, so the agent can't use one to ask you something and carry on. There are three ways to close the loop:
| Route | Who starts it | What you answer from your phone | Across agents? |
|---|---|---|---|
| Vendor app (Claude Code Remote Control, Cursor for iOS, ChatGPT app) | The agent's own prompt | The agent's built-in prompts, where the app supports it | No, one app per vendor |
| A loop you build (ntfy action buttons, a Telegram bot) | A script you write | Buttons, read back by a script or bot you run | Yes, and you maintain it |
| MCP ask-and-wait server | The agent, when your instructions say so | Questions the agent asks you | Yes, in any client the server is added to |
With MCP, the question is a tool call and the answer comes back as the tool's result, so the waiting happens inside the agent loop and not in a script you wrote. The catch is that the model has to choose to ask. You tell it when in CLAUDE.md, AGENTS.md or a rules file. It still doesn't see or answer the agent's own permission dialogs.
Decide two things before you wire this up. The first is which actions deserve a question at all, because asking too often teaches you to approve without reading. The second is what happens when nobody answers: every ask needs a deadline and a defined outcome, and silence should never count as a yes. Our guide to human-in-the-loop AI agents covers both. The loop you build yourself is in ntfy vs Pushover vs Slack.
Where AlertMCP fits, and where it doesn't
We build AlertMCP, so weigh this section accordingly. It's a hosted MCP server at https://api.alertmcp.com/mcp. notify sends a one-way alert. ask sends a question with two to four buttons, safest option first, and the agent waits for your tap with get_answer. Each workspace sets a deadline, and you choose what happens when it passes: the agent is told nobody answered, it continues with the first (safest) option, or the ask escalates to your team admins. There's also an HTTP endpoint for hook scripts, which our Claude Code and Cursor guides use.
Where it fits:
- You run more than one agent. The same server goes into Claude Code, Cursor, Codex and Gemini CLI (config for each client), so alerts and questions from all of them land in one place.
- Remote Control isn't available to you. AlertMCP works the same whether Claude Code runs on a subscription, an API key or Bedrock.
- A decision needs a deadline. A Claude Code permission prompt waits until someone answers. An
askhas a timeout and a fallback you picked.
Where it doesn't:
- It doesn't answer built-in permission prompts. If Claude Code, Cursor or Codex stops on its own approval dialog, that dialog still waits where it is. Use the vendor apps above for those.
- The iPhone app is a private beta. The Mac app, the Android app and the web dashboard are public today (download). The iPhone app is in a private TestFlight beta.
- There's no self-hosting yet. A self-hosted server is planned but not released. If you need self-hosting today, build the ntfy or Telegram loop instead.
- It isn't end-to-end encrypted. Alerts are encrypted in transit and at rest, but the relay reads an alert in order to deliver it.
It isn't the only option either. Pushary has its own ask-and-wait tools, and community MCP servers connect agents to ntfy, Telegram or Discord.
Setup in Claude Code is one command, plus a line in CLAUDE.md that says when to use it:
claude mcp add --transport http --scope user alertmcp https://api.alertmcp.com/mcp \
--header "Authorization: Bearer amcp_sk_your_key"
When a task takes longer than 2 minutes, or you need my approval, use alertmcp.notify / alertmcp.ask.
The free plan covers 1,000 alerts a month and 5 devices (pricing).
Which setup to pick
- One agent, and its vendor app runs on your phone: start there. That means Claude Code Remote Control on a subscription plan, Cursor for iOS, or the ChatGPT app paired with the desktop app for Codex. It's built in, and it's the native way to handle the agent's own prompts.
- No vendor app for your setup (Cursor on Android, Claude Code on an API key or Bedrock, Gemini CLI): a hook that posts to a push service. ntfy vs Pushover vs Slack compares the services on price, limits and iOS reliability.
- Several agents, or decisions you want to make away from the desk: an MCP ask-and-wait server, plus an instruction that says when to ask.
These combine. For example, use the vendor app for permission prompts and an MCP server for the decisions the agent should raise itself. If a hook and a vendor app both push, you get two notifications for one event; the Claude Code guide shows how to skip the hook while Remote Control is connected.
Frequently asked questions
- How do I get notified when an AI coding agent finishes?
- Turn on the agent's built-in notification first: a desktop notification or terminal bell in Claude Code, Completion Sound and System Notifications in Cursor, TUI notifications in Codex, or the experimental Enable Notifications setting in Gemini CLI. For anything those miss, add a hook that runs when the agent stops and have it play a sound or post to a push service.
- Can a coding agent send notifications to my phone?
- Yes. Claude Code pushes through the Claude app while Remote Control is connected, Cursor has an iOS app, and Codex pairs the ChatGPT mobile app with the ChatGPT desktop app. Where none of those fits your setup, a hook can post to ntfy, Pushover or another push service when the agent stops.
- Can I approve an agent's permission prompt from my phone?
- Through the vendor's own app. Claude Code Remote Control sends permission prompts to the Claude app, and a Codex remote connection lets you approve commands from the ChatGPT mobile app. Cursor's mobile docs don't spell out approving single commands. An MCP server such as AlertMCP does not answer these built-in prompts.
- What is the difference between a notification and ask-and-wait?
- A notification is one-way: it tells you to come back. With ask-and-wait, the agent calls a tool that sends a question with buttons, waits for your tap and continues with your answer, or with a fallback you chose in advance if nobody answers before the deadline.
- Do I need a different notification tool for each agent?
- Not for the hook or MCP routes. Any agent that can run a command when it stops can post to the same push service, and one remote MCP server can be added to Claude Code, Cursor, Codex and Gemini CLI. The vendor phone apps are one per vendor.
- Does AlertMCP work on iPhone?
- Not publicly yet. The iPhone app is in a private TestFlight beta. The Mac app, the Android app and the web dashboard are available today.