About Sound Notification for Claude Code

If you work with Claude Code and want to get a sound notification whenever a task is finished on MacOS, create ~/.claude/settings.json with the following content:

{
  "hooks": {
    "Stop": [
      {
        "matcher": "",
        "hooks": [
          { 
            "type": "command",
            "command": "afplay /System/Library/Sounds/Tink.aiff"
          }
        ]
      }
    ]
  }
}

Here are the sound-making commands for all common platforms:

Platform Command
macOS afplay /System/Library/Sounds/Tink.aiff
Linux paplay /usr/share/sounds/freedesktop/stereo/complete.oga
Windows powershell.exe '[console]::beep(1000,500)'

Tips and Tricks Development Developer Experience Artificial Intelligence Vibe Coding Claude Code