Developer uses Claude Code's Stop hook to play a sound alert when AI tasks finish
A developer building jo4.io discovered that Claude Code would silently wait for input after completing tasks, causing long idle periods when attention drifted elsewhere. To fix this, they configured Claude Code's built-in Stop hook in ~/.claude/settings.json to trigger the macOS 'Funk' system sound whenever Claude finishes responding or needs user input. The one-line shell command uses macOS's native afplay utility, requiring no third-party tools or complex setup. The developer reports the change roughly halved their task turnaround time by eliminating the habit of forgetting to check the terminal. The approach can be extended to play different sounds based on task outcome, and equivalent commands exist for Linux and Windows WSL users.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in