Skip to content

How do I get notified when a coding agent finishes or needs me?

In Claude Code, turn on its own phone push, or add a hook that runs your command when it finishes or waits. Codex runs one at the end of a turn. Point a hook at a push service or chat bot. Homing is different: a note with the plan, log and files, sent when you ask.

Facts as of November 2026.

Side by side

The client's own phone pushA session hookA notification tool the agent callsHoming
What triggers itClaude Code, while Remote Control is on for the session. A push can arrive when a long-running task finishes or when Claude needs a decision from you, and you can ask for one in the prompt. There are two switches and no per-event setting.The client, every time. Claude Code's Stop hook runs when the agent finishes responding. Its Notification hook runs when a permission prompt has waited about six seconds, or about a minute after the agent finished with nothing typed since. Codex's notify setting runs a program when a turn completes.The model, when its instructions say to or you ask. Nothing guarantees the call.The agent, when you ask it to send. It shows you the note and sends on your yes, so it is not an unattended alert.
What reaches youA push notification from the Claude app. The same app continues the session, which keeps running on your machine.What your script sends. The hook's input carries the session id and the working directory; on Stop it also carries the text of the agent's last message, and on Notification the notification's text and type.A short text the agent writes, plus whatever the service behind the tool supports.A message with a subject, a body that renders Markdown, named details and up to ten files of 10 MB each.
Where it reaches youThe Claude app for iOS or Android, signed in to the account Claude Code uses.Anywhere a command or an HTTP request can reach: a desktop notification, a push service, a chat bot.The app of the service behind the tool, usually on your phone.Your Homing inbox in a browser, on a laptop or a phone. Homing sends no push notification of its own. A Telegram, Slack, Discord or Teams integration posts each note to a chat that does.
When the agent waits for permissionCovered, by the "Push when actions required" switch, for permission prompts and questions.Covered. The Notification hook's permission_prompt type exists for this.Not covered. An agent that is waiting for your approval makes no tool calls.Not covered, for the same reason. Use the hook.
When the run fails or is interruptedIts documentation does not say. Pushes are skipped while you are typing in or focused on the connected terminal.In Claude Code, Stop does not run after a user interrupt, and an API error runs a separate StopFailure hook. A script on Stop alone misses both.Nothing is sent. The agent has stopped.Nothing is sent. The notes you asked for earlier are still in your inbox.
The record it leavesThe session itself, which the app shows.What the destination keeps.The service's own history, if it has one.A thread under Notes in your inbox, found by search. A later note on the same subject joins the first one's thread.
Picking the work up from itYou answer in the same session from the phone or a browser.It sends you back to the terminal.It sends you back to the session.A new session signed in to Homing reads the note back, or you copy the thread into one as Markdown.
SetupThe Claude app, Remote Control on for the session and the push switches in /config. It needs a Claude subscription; API keys are not supported.A few lines in the client's settings file and a script or a URL.The tool or its MCP server, the service's credential in the environment, and a line in the agent's instructions saying when to call it.One remote MCP server and a sign-in. One integration for the ping on your phone.

The push and hook facts are from Claude Code's and Codex's own documentation; other clients differ. The middle column describes notification tools in general, so check the one you use.

What a note to self carries

One note at both ends: as the agent sends it from the session, and as it sits in your inbox with its details and the log attached.

To your own inbox Normal

Retry the export upload on a 503

The nightly export fails about once a day when the storage API answers 503. A retry with backoff would cover it instead of failing the whole run. Picking this up Monday.

Intent
Pick this up Monday
Where
export/upload.ts
Seen
About once a day, always a 503
export-error.log 6 KB · Log
Saved 14:02:08
From you Normal

Retry the export upload on a 503

The nightly export fails about once a day when the storage API answers 503. A retry with backoff would cover it instead of failing the whole run. Picking this up Monday.

Intent
Pick this up Monday
Where
export/upload.ts
Seen
About once a day, always a 503
export-error.log 6 KB · Log
Sent 14:02:07

Choose by what you need to know

  • The client's own phone push

    Choose it when you use Claude Code on a Claude subscription and want the ping and the session in one app, with no script to write.

  • A session hook

    Choose it when you want to know the moment the agent stops or asks for permission, every time, without relying on the model. It is the right tool for "tell me when it is done".

  • A notification tool the agent calls

    Choose it when the agent should judge what is worth a ping, such as a failed deploy but not every finished turn, and a short text is enough.

  • Homing

    Choose it when you want the substance on your phone or in a later session: the plan, the decision, the error log, with files, kept where you can search it. Use it beside a hook, since it does not fire when the session stops.

How each is set up

  • Claude Code's own phone push

    1. Install the Claude app for iOS or Android and sign in with the account and organization you use for Claude Code.
    2. Allow notifications when the phone asks.
    3. Turn on Remote Control for the session: run claude remote-control, or /remote-control inside a session.
    4. Run /config and enable Push when Claude decides, Push when actions required, or both.
  • A hook in Claude Code

    1. Open ~/.claude/settings.json for all your projects, or .claude/settings.json for one.
    2. Add a Stop hook and a Notification hook. A command hook runs a shell command; an HTTP hook posts the event's JSON to a URL.
    3. Have it call a desktop notifier, a push service or a chat bot. On Stop, take the text from last_assistant_message in the hook's input.
    4. Match the Notification hook on permission_prompt and idle_prompt to hear only when the session waits on you.
    5. Add a StopFailure hook if you want to hear about rate limits and other API errors.
  • A hook in Codex

    1. In config.toml, set notify to a program.
    2. Codex runs it when a turn completes and passes one JSON argument, which includes the working directory and the last assistant message.
    3. Send that on from the program.
  • A notification tool the agent calls

    1. Create an account, a topic or a bot with the service and install its app on your phone.
    2. Give the agent a way to call it: an MCP server or a command it may run, with the credential in the environment and never in the prompt.
    3. Say in the agent's instructions when to notify, in plain terms.
  • Homing

    1. Add Homing to your client as a remote MCP server and sign in. In Claude Code that is one command and a sign-in in the browser.
    2. Before you step away, ask the agent for a note to self: the plan, what is open, the log. It shows you the note and sends it on your yes.
    3. For a ping on your phone, add a Telegram or Slack integration to your inbox. The free plan includes three integrations.
    4. Open Notes in the app, in a browser on your phone. There is nothing to install.

Limits and failure modes

  • The client's push is one client's

    Claude Code's push needs Remote Control, the Claude app and a Pro, Max, Ultra, Team or Enterprise plan. API keys are not supported, and on Team and Enterprise an owner enables Remote Control first. In another client, use a hook.

  • A hook fires on every turn

    Stop runs each time the agent finishes responding, including the turns where it only answered a question. Filter in the script, or the pings become noise.

  • Stop is not every ending

    In Claude Code a user interrupt runs no Stop hook, and a turn that ends in an API error runs StopFailure instead. Codex's documentation lists one notify event, the end of a turn.

  • The waiting notices are delayed

    Claude Code's idle notice comes about a minute after the agent finished, and its permission notice after the prompt has waited about six seconds. Neither is instant.

  • A push topic can be the only secret

    Some push services need no account: whoever knows the topic's name can publish to it. Choose a name that cannot be guessed and keep secrets out of the text.

  • A tool call depends on the model

    Nothing enforces an instruction to "notify me when done". A run that ends in an error sends nothing.

  • Homing has no push of its own

    A note lands in the inbox and stays there. The ping comes from the integration you add, and that post is a copy: the note is in the inbox whether or not the post went through.

When Homing is the wrong choice

  • You only need to know it stopped

    The client's own push or a hook does that with no second tool.

  • Nobody is at the session

    Homing's rule for agents is to show you the note and send on your yes. A hook needs no one at the keyboard.

  • You want a sound or a banner on this machine

    A hook that runs a desktop notifier is the shortest path.

Questions

How do I get Claude Code to notify me when it's done?

For a push on your phone, turn on Remote Control and enable Push when Claude decides in /config. For anything else, add a Stop hook in ~/.claude/settings.json that runs a command or posts to a URL. Claude Code runs it each time the agent finishes responding and passes the text of its last message. Send that to a desktop notifier, a push service or a chat bot.

Claude Code: hooks reference
How do I get a message on my phone when Claude Code needs my input?

With Remote Control on, run /config and enable Push when actions required: the Claude app on your phone gets a push for permission prompts and questions. Without Remote Control, use the Notification hook, matched on permission_prompt and idle_prompt, and have it call a push service or a chat bot whose app is on your phone.

Claude Code: mobile push notifications
Does Codex have a notification hook?

Yes. The notify setting in config.toml runs a program when a turn completes, with a JSON argument that includes the working directory and the last assistant message. Its documentation lists that one event.

Codex: advanced configuration
Can Homing tell me when my session finishes?

Not by itself: Homing does not watch the session. A Claude Code hook can send a note to your own inbox each time Claude finishes a reply or waits for you; the guide Get a note when Claude Code finishes or waits sets one up. Homing also carries what you want to read afterwards: a note with the plan, the log and the files.

Does Homing send push notifications to my phone?

No. The inbox is a web app you open in a browser. For a ping, add a Telegram, Slack, Discord or Teams integration to your inbox: each note is posted to that chat with a link back to it.

The Telegram integration
How do I send myself the plan and the log from a Claude Code session?

Ask the agent for a Homing note to self. It writes the plan in Markdown, attaches the log if you approve (up to ten files of 10 MB each), shows you the note and sends it on your yes. It lands under Notes in your inbox.

Send yourself a note from a session
Should a hook send the notification, or should the agent call a tool?

A hook, when the event is the session stopping or waiting: the client runs it every time. A tool call, when the event is something only the agent can judge, such as a test run going red. A tool call depends on the model making it.

Checked against

What this page says about a named product, client or protocol was read in its own documentation in November 2026.

Read next

Connect an agent, then send yourself a note.

Works in Claude Code, ChatGPT, Codex and other MCP clients. Free accounts.

Or paste this into your agent

Set me up with Homing in this session. Read https://tryhoming.com/setup-instructions.md and follow it. I'll sign in or set up a key when you ask.