Skip to content

hookWorkflow

Stop Bell

Sounds a bell in your terminal at the end of every Claude turn, which lets you look away while a long task runs in the background.

npx workspacetemplates add stop-bell --tool claude-code

Writes 1 file to .claude/

.claude/settings.jsonmerge into your file15 lines · 485 BFile
{
  "hooks": {
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node -e \"let d='';process.stdin.on('data',c=>d+=c).on('end',()=>{let j={};try{j=JSON.parse(d)}catch(e){}const B=String.fromCharCode(7);const w=process.platform==='win32';try{require('fs').writeFileSync(w?'CON':'/dev/tty',B)}catch(e){try{process.stderr.write(B)}catch(x){}}process.exit(0)})\"",
            "timeout": 5
          }
        ]
      }
    ]
  }
}

What it does

Waiting on a long refactor wastes attention. This Stop hook writes the bell character straight to your terminal when Claude ends its turn, which most terminals turn into a sound or a flashing tab.

It writes to the terminal device directly, because hook output is otherwise captured, and falls back to standard error when no terminal is available. It reads no files and has no side effects.

Example

you › Migrate every test from Jest to Vitest.

agent › You switch to your browser, and a few minutes later the terminal beeps because Claude has finished the migration.

Questions

I hear nothing. What now?
Check that your terminal has the bell enabled. Some set it to visual only, and a muted tab shows nothing.
Does it ring for every reply?
It rings when each turn ends, including short answers. Use the Notification variant if you only want to hear about permission prompts.
  • Inject Current Date

    HookWorkflow

    Free
  • Log Bash Commands

    HookWorkflow

    Free
  • Log Session End

    HookWorkflow

    Free