Developer adds cat sound alerts to Claude Code using shell script hooks
A developer has shared a method to add custom audio notifications to Claude Code, Anthropic's AI coding assistant, using shell scripts and MP3 files. The setup uses two hook events configured in ~/.claude/settings.json: one that plays a sound when Claude finishes a response, and another when Claude is waiting for user approval. Both hooks run asynchronously, meaning the audio plays in the background without interrupting Claude's workflow. The solution works across macOS and Windows via Git Bash, using native audio tools like afplay and PowerShell's MediaPlayer. The practical benefit is that users can switch between tabs freely while Claude runs commands, relying on audio cues instead of manually monitoring the terminal.
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