Skip to content

Instantly share code, notes, and snippets.

@tebeka
Last active March 16, 2026 11:41
Show Gist options
  • Select an option

  • Save tebeka/b9720624946a0ddf7d7457e56932eca3 to your computer and use it in GitHub Desktop.

Select an option

Save tebeka/b9720624946a0ddf7d7457e56932eca3 to your computer and use it in GitHub Desktop.
Claude voice notifycation when waiting for input

Let Claude Notify You When It Needs You

Instead of letting claude wait for me patiently, I've created a Notification hook that plays a sound to alter me.

The hook is defined in ~/.claude/settings.json

{
  // ...
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "~/.claude/notify.sh"
          }
        ]
      }
    ]
  }
}

notify.sh is using TTS (festival for me on Linux, say on Mac)

#!/bin/bash

msg='Claude hey'

if [ "$(uname -o)" == "Darwin" ]; then
	say "$msg"
else
	(echo "$msg" | festival --tts) &
fi

Now when Claude needs me, it tells me right away instead of waiting for me - productivity gain :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment