1 hour ago · Tech · hide · 0 comments

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" } ] } ] } } Then, my _claude-hook is a lightweight wrapper: #!/usr/bin/env bash source ~/.secrets/claude-hook claude-hook notification This is then a very small CLI which allows me to call the Pushover API given a set of inputs. In its first iteration,…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.