Do you have the same problem I do, where the audible terminal beep never seems to work on OS X when Claude code is waiting for input? I fixed this by replacing the terminal beep with randomly chosen audio samples, in this case 1-3 seconds long “songs” by Bill Wurtzª.

Coding is so much more enjoyable now.

Instructions follow. This only works on a mac because it relies on the built in afplay tool.

Step 1
Create a ~/.claude/alerts/ folder and load it up with your audio samples.
I strongly recommend this set of 8 bill-wurtz-alerts composed by the inimitable Bill Wurtz.

Step 2
Ask Claude to integreate this hook into your ~/.claude/settings.json

"hooks": {
  "Notification": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "files=(~/.claude/alerts/*.mp3);afplay \"${files[RANDOM % ${#files[@]}]}\""
        }
      ]
    }
  ]
},

ª If you’ve never heard of Bill Wurtz before, start with his famous history of Japan video, and I’ll see you in 8 minutes or when your head explodes, whichever comes first.