What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
To get an alert when Claude Code finishes a response, add a command hook under the Stop event in your settings JSON. On macOS, the command can use osascript to display a notification. A Stop hook runs on ordinary completion of the main agent’s response—not when you interrupt it, and not when an API error triggers StopFailure.
Choose the event that matches the alert you want
Use Stop when you want to know that Claude Code’s main agent has finished responding. Anthropic’s Hooks reference says the event “Runs when the main Claude Code agent has finished responding. Does not run if the stoppage occurred due to a user interrupt. API errors fire StopFailure instead.”
| Event | Use it for |
|---|---|
Stop |
The main agent has finished its response. |
Notification |
Claude is waiting for input or permission, rather than simply finishing a response. |
StopFailure |
API errors; it is distinct from ordinary completion. |
For a basic completion alert, there is no need to inspect hook input or parse the last assistant message.
Add a Stop command hook to settings
For a personal alert that applies across projects, edit ~/.claude/settings.json. Project-level or local settings are alternatives when the behavior should be limited to a repository or a particular local setup. The official hooks guide shows hooks configured in settings JSON and advises adding an event key alongside existing keys, not replacing the whole hooks object.
Free tools Windows power users keep installed
One-click scans. No signup required.
#1 Best Overall
- External computer speaker in Black (set of 2) for amplifying PC or laptop audio
- USB-Powered from USB port of PC or Laptop
- In-line volume control for easy access
- Blue LED lights; metal finish and scratch-free padded base
- Bottom radiator for “springy” bass sound
-
Open
~/.claude/settings.jsonin a text editor. If it already has a top-levelhooksobject, keep its existing contents. -
Add a
Stopentry with a command hook. Replace the command below with a notification command appropriate for your operating system:Rank #2
Computer Speakers for Desktop PC Monitor, USB Plug-in, Wired, Computer Soundbar for PC, Laptop Speakers with Adaptive-Channel-Switching, Loud Sound, Deep Bass, USB C Adapter, Easy to Clip on Monitor- [COMPATIBLE WITH USB DEVICES] - Our USB Speakers are compatible with Windows, macOS, ChromeOS, and Linux, making them ideal for PC, laptop, and desktop computer. Incompatible Devices: Monitors TVs and Projector.
- [COMPATIBLE WITH USB-C DEVICES] - Thanks to the built-in USB-C to USB Adapter, our USB-C speakers are now compatible with devices that only have USB-C interface, such as the latest MacBook, Mac mini, iMac, iPad, Android phones, and tablets.
- [INCREDIBLE LOUD SOUND WITH RICH BASS] - Our small computer speaker is equipped with dual ultra-magnetic drivers and dual passive radiators, providing high-quality stereo sound with powerful volume and deep bass for an incredible audio experience.
- [ADAPTIVE-CHANNEL-SWITCHING WITH G-SENSOR] - Ensures the left and right sound channels remain correctly positioned whether the speaker is clamped to the top or bottom of your monitor.
- [CONVENIENT TOUCH CONTROL] - Three intuitive touch buttons on the front allow for easy muting and volume adjustment.
{ "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "<desktop notification command for your OS>" } ] } ] } } -
Save the JSON, preserving valid commas and brackets and any other settings already in the file.
macOS command
Anthropic’s guide gives this macOS notification command as an example for a Notification hook. For a completion alert, change the message and place it under Stop as shown above:
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesRank #3
- Surge Stereo Sound - 4 large amplifier IC horns! Computer speakers achieved Distortion Free and Noiseless in stunning sound. Immersive cinema effect for movies, videos, games and music.
- Touch Angular Game Lights - Unique Dynamic Angular Game Atmosphere design! Desktop speaker with latest One Touch to turn on/off lights, avoid the traditional cumbersome button design.
- All In One Compact - Fits any desktop computer! Perfectly under the monitor without taking up any extra desktop space. Cables are glued together to avoid desktop clutter.
- Plug And Play - No need for any driver! Must Plug in the USB powered cable and 3.5mm audio cable to enjoy now! Top volume knob for easier volume adjustment.
- Type C Adapter Included & Compatibility - USB speakers match computers, desktops, PCs, laptops. Suitable for windows(Vista/7/8/10), Mac OS, Chrome OS, etc.
osascript -e 'display notification "Claude Code has finished" with title "Claude Code"'
The command is specific to macOS. The cited guide presents platform-specific command examples; use the appropriate command for Linux or Windows rather than copying the macOS example there. The guide’s example text “Claude Code needs your attention” is for a waiting/input notification, which is a different event.
Check that the hook works
-
In Claude Code, open the
/hooksbrowser and confirm the command appears underStop.Rank #4
SaleLogitech Z207 2.0 Stereo Computer Speakers with Bluetooth- Versatile setup with speakers that connect easily to computers and other devices via Bluetooth wireless or 3.5mm cable
- Logitech Easy-Switch technology lets you seamlessly switch between audio devices Just by pausing the Audio on one device and pressing play on the other
- Each speaker has one active/powered driver that delivers full range Audio and ONE passive radiator that provides bass extension.
- On-speaker headphone jack Plus convenient controls for easy access to Bluetooth wireless pairing, power and Volume adjustments, Bluetooth version: 4.2
- Works with Bluetooth enabled devices and any device with a 3.5mm input including a computer, television, smartphone, tablet and music player
-
Let the main agent complete a normal response, then check whether the operating system displays the notification. An interruption is not a valid completion test because user interrupts do not fire
Stop.
If no macOS notification appears
Anthropic notes that osascript routes notifications through the built-in Script Editor app and may fail silently if Script Editor does not have notification permission. Run this once in Terminal:
Recommended Free Tools
Best Value
- USB-powered (5V) speakers plug directly into your computer for portable convenience
- Turn the speakers on and adjust the volume using one simple control (located on the front of the speakers); volume control includes On/Standby
- Simple plug-and-play setup (no drivers needed); can be used with headphones via the 3.5mm jack connector
- Frequency range of 103 Hz - 20 KHz; 2.2 watts of total RMS power (1.1 watts per speaker)
- Measures 2.76 by 3.55 by 5.3 inches (LxWxH); weighs approximately 1.4 pounds;
osascript -e 'display notification "test"'
If it still does not appear, check macOS notification settings for Script Editor. This is a macOS-specific permission check, not a general fix for other operating systems.
If the hook does not appear or run
-
Check that the entry is nested under the top-level
hooksobject and namedStop. -
Confirm you edited the settings file intended for your use: user settings for a personal cross-project hook, or project/local settings for narrower behavior.
-
Verify that the command exists and is valid for your operating system, and check that the operating system permits notifications.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Review the command before enabling it
A command hook executes a shell command with your user’s permissions. Anthropic warns that hooks can access, modify, or delete files available to that user. Review the command before saving it; keep a notification command simple and avoid inserting untrusted values into it.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




