VelvetShark

TIL: Get a sound notification in Claude Code when a task is complete

Updated 2026-11-08: the claude config set command from the original version of this post no longer exists in Claude Code. Use the settings below instead.

Claude Code is a powerful tool, but if you're running a long task, you have to keep checking back to see if it's finished. Other AI coding assistants, like Cursor, have sound notifications to let you know when a task is done, which is a small but incredibly useful feature.

Turns out, you can get a sound in Claude Code too. There are two ways to do it.

Option 1: the terminal bell

Add this to ~/.claude/settings.json (on Windows: %USERPROFILE%\.claude\settings.json). If the file doesn't exist yet, create it:

{
"preferredNotifChannel": "terminal_bell"
}

Or do it from inside Claude Code: run /config and set Local notifications to the terminal bell.

This tells Claude Code to ring your terminal's built-in bell when it needs you: when a permission prompt has been waiting for a few seconds, or about a minute after Claude finishes, if you haven't typed anything since.

Two things to know:

  • Apple Terminal: also turn on Settings → Profiles → Advanced → Audible bell. Claude Code's /terminal-setup turns it off, so you may hear nothing without it.
  • iTerm2, Ghostty and Kitty: you might not need this at all. Claude Code already sends desktop notifications in these terminals by default.

Option 2: a sound the moment Claude finishes

The bell waits until it looks like you've walked away. If you want a sound right when Claude stops working, use a Stop hook. This one plays a macOS system sound:

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

Swap Glass for any other sound in /System/Library/Sounds, like Ping, Hero or Submarine. On Linux, use something like paplay /usr/share/sounds/freedesktop/stereo/complete.oga instead. The hook plays after every response, short ones included.

If your settings file already has other settings, add the new key inside the existing curly braces instead of pasting a second block.

It's not as fancy as Cursor's sounds, but it's a game-changer for productivity. You can kick off a build, a test suite, or a code generation task, switch to another window, and wait for the ding. No more constant context-switching to check on progress.

My job is done here. 🔔

If you liked this, you'll find more on X (@velvet_shark), YouTube, or via RSS.

VelvetShark

by Radek Sienkiewicz

Shark footer