AI;DR – Extending these scripts and writing this blog post were done mostly by Claude Code. If you don’t want to read “AI slop”, stop reading now.
Gabriel Moraru wrote about a problem I know well: you leave Claude Code working on something, come back an hour later, and find that it has been waiting for an answer since two minutes after you left. His solution, described in his post My Claude Code calls me back to the computer, plays a sound and shows a Windows notification that stays on screen until you close it.
I liked the idea and built on his scripts. The result is Claude Alarms 1.0:
- A voice instead of sound files. A Windows voice says what happened and in which session, e.g. “GExperts needs your input.” With several sessions running, I know at once which one to look at.
- Every alarm names the session, whether a hook raised it or Claude itself: the name given with
/rename, or else Claude Code’s automatic title. Claude Code does not pass the name on, so the scripts read it from the session’s transcript. - Hooks raise most of the alarms, so they do not depend on Claude remembering a rule: when a turn ends, when Claude waits for input, when auto mode blocks an action, when the conversation was compacted, and when a turn ends with an error. Claude raises an alarm itself only before it asks a question in the middle of a turn, and for critical problems.
- Everything is configurable in one file,
alarms.json: the voice, every spoken text and notification, and which alarms are on. So it works in any language Windows has a voice for. The download comes with English and German texts.
It needs Windows 10 or 11 and nothing beyond what Windows already has: the scripts use Windows PowerShell 5.1 and the voices built into Windows. I use it with Claude Code in WSL; the README also describes the setup for Claude Code running natively on Windows.
To install it, unzip it and ask Claude Code to read the README and set it up. The README contains the steps, the hook entries for Claude Code’s settings, the rule for CLAUDE.md, and how to change the voice and the texts.
Download: ClaudeAlarms-1.0.zip
Thanks to Gabriel for the original idea and scripts.
Discussion about this in the corresponding post in the international Delphi Praxis forum.