Claude Code has introduced a new feature called hooks which lets you run a script during different events.
One of the event is Stop, which runs when the main Claude Code agent has finished responding.
We can make the use of this hook to play a notification sound.
You can download this notification sound (downloads automatically) from mixkit
Paste this JSON into .claude/settings.json, either project or global .claude folder.
Make sure to update the path of the script.