Adding Pushover notifications to Claude Code

A screenshot of a Pushover notification on Jamie's Android phone. It has a title 'Amp is waiting: Dependency dashboard config object', with a description: 'Waiting for your next prompt, from path `...`. The icon for it is one of Mend's logos, as this is Jamie's work machine's Amp notifying him, which is different to the logo used on his personal devices' Amp. There's an 'Open thread' button, which opens in the web UI the Amp Thread being worked on

There are times that you're away from your machine - or you've got so many terminal sessions you've not seen a notification - to say that your agent is waiting for input.

Although there are ways to get first-class support for this - for instance Claude Code's Remote Control (which only works if using a Claude Code subscription, i.e. Bedrock users don't get access to it) - I wanted to write a tiny bit of Go code today, and thought I'd hand-roll some notifications.

Given the Notification hook, this is actually fairly straightforward.

To get a notification, you need to wire in the hook i.e. my ~/.claude/settings.json looks like:

{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "~/bin/_claude-hook notification"
          }
        ]
      }
    ]
  }
}

Then, my _claude-hook is a lightweight wrapper:

#!/usr/bin/env bash

# NOTE that the env vars will need to be `export`'d
source ~/.secrets/claude-hook
claude-hook "$@"

This is then a very small CLI which allows me to call the Pushover API given a set of inputs.

In its first iteration, it echoes the message from Claude - but I'll follow-up to add some more insight into what session it's coming from.

As of 2026-11-03 this now looks like:

A screenshot of a Pushover notification on Jamie's Android phone. It has a title "Claude Opus 5.5 is waiting: Bucket-definitions.md open PR labels", with a description: "Claude is waiting for your input Type: idle_prompt, from path .... The icon for it is one of Mend's logos, as this is Jamie's work machine's Claude Code notifying him, which is different to the logo used on his personal devices' Claude Code

For now, I'm using a single CLI for Claude Code. If I get back to using multiple harnesses again (especially now crush has at least started to add hooks), I'll probably amend this to be i.e.

-claude-hook notification
+agent-hook claude notification

So then I can share the same underlying codebase for the multi-agent setup - but there's no point in prematurely optimising when that's not the case!

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

This blog post is 100% human-written, and has nothing derived from LLMs (be it code, editorial support or prose).

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.