To get a phone notification when a coding agent finishes, run it through something that knows when the task ends and why. In Sidefleet, open the bell and turn on Notify me. Your phone then gets a push when a task starts waiting for you, whether it finished, failed, hit a usage limit or needs an approval.
That covers Claude Code, Codex and opencode on every connected machine. A hook script works too, for one agent on one machine, and it's worth knowing where it stops being enough.
Can you do it yourself with Claude Code hooks?
For one session on one machine, yes. Claude Code runs hooks on events, and its Stop event fires when it finishes responding. A hook that calls your own notify script looks like this in ~/.claude/settings.json:
{
"hooks": {
"Stop": [
{ "hooks": [{ "type": "command", "command": "~/bin/notify-phone.sh" }] }
]
}
}
The script sends the push through whichever service you use. The limits show up once you run more than one agent. You set up a hook per machine and per agent, it fires whenever the agent stops responding without saying why, and it knows nothing about tasks on your other machines.
What makes a Sidefleet task wait for you?
| Reason | What happened |
|---|---|
| Finished | The agent is done and waiting for your reply |
| Failed | The run ended with an error |
| Usage limit | The agent's account hit its limit and no other machine could take the task (what to do) |
| Machine dropped | Its machine stopped responding (how to avoid it) |
| Needs approval | A held command or an "Ask me" prompt is waiting for Approve or Deny |
| Signed out | The agent's sign-in expired on that machine |
| Approval expired | Nobody answered a held command in time, so it didn't run |
These come from the control plane, not from the agent, so they work the same for all three agents.
How do you turn on phone notifications?
- Open Sidefleet on your phone. On iPhone, add the page to the Home Screen first with Share, then Add to Home Screen, and open it from there. iOS only allows web push for Home Screen apps.
- Tap the bell and turn on Notify me.
- Allow notifications when the browser asks.
Browsers only allow push on HTTPS pages or localhost. The hosted control plane is HTTPS. A self-hosted control plane reached over plain HTTP won't offer push until you serve it over HTTPS.
When self-hosting, sidefleet serve creates the VAPID key that signs push messages in ~/.sidefleet/server.env. In a container, set SIDEFLEET_VAPID_PRIVATE_KEY as a secret instead, or browsers have to turn push on again after every redeploy.
What does a notification contain?
Only the task's title and the reason, such as "Needs approval". Never agent output, code or command text. Tapping it opens the task.
How do the bell and the sidebar work?
The bell lists every task that needs you, with the reason and how long it has waited, and each of those tasks gets a marker in the sidebar. A task leaves the list when you open it, reply or dismiss it. Sidefleet keeps what you've seen on the control plane, so the list matches on your phone and your laptop.
On a team, the bell and push only cover your own tasks.
Can you snooze a task?
Yes. Snooze it from its menu until Tomorrow morning, or any date and time, and it leaves the list and the bell until then. It comes back early if it finishes, fails or asks you something. Edit the snooze choices in Settings.
Can you answer approvals from the notification?
A notification opens the task, where Approve and Deny are one tap away. You can also answer on the Approvals page, or from a chat app if you've connected one over MCP with updates in chat on.
Questions
Does it work for Codex and opencode, or only Claude Code?
All three. The reasons come from the control plane's view of each task, not from a hook inside one agent.
Do I need the Mac app?
No. Notifications come from the web page through your browser's push service, on Android, iPhone or a desktop browser.
Can I get a notification only when approval is needed?
Notify me covers every reason in the table. To cut the noise, snooze tasks you don't need to hear about, or set fewer commands to wait for approval under Policies.