Guide
Claude Code stops and waits more often than it seems: a permission prompt before a command, a question, a plan to approve. If you have switched to another window, each of those waits can cost minutes. Here are four ways to find out in time, from the built-in option to a light you can see from across the room, with what each one catches.
Claude Code can notify you through your terminal. The setting is preferredNotifChannel in ~/.claude/settings.json; its default, "auto", uses the terminal's own notifications where Claude Code recognises it:
| Terminal | What you get by default |
|---|---|
| iTerm2 | A macOS notification, once iTerm2 is set to pass it on (below) |
| Ghostty, Kitty | A macOS notification |
| Terminal (Apple's) | A bell, which is silent unless you turn on the audible bell |
| Other terminals | Nothing |
In iTerm2, open Settings → Profiles → Terminal, tick Notification Center Alerts, click Filter Alerts, turn on Send escape sequence-generated alerts and restart iTerm2. In Terminal, turn on Audible bell under Settings → Profiles → Advanced. Either way, macOS has to allow notifications for the terminal app in System Settings → Notifications. To ring the bell in every terminal instead, set:
{
"preferredNotifChannel": "terminal_bell"
}
It costs nothing, but a notification slides away after a few seconds, and nothing stays on screen to say a session is still waiting.
Hooks are commands Claude Code runs at fixed moments, whatever terminal you use, and in the desktop app's Code tab too. The Notification event runs when Claude Code wants your attention. This is the example from Claude Code's documentation, for ~/.claude/settings.json:
{
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"
}
]
}
]
}
}
Notifications sent with osascript come from Script Editor, so allow Script Editor in System Settings → Notifications. The empty matcher catches every kind of notification; the two that matter here are:
permission_prompt: a permission prompt has waited about six seconds. Every keystroke restarts the wait.idle_prompt: Claude finished about 60 seconds ago and you have not typed since.If you run several sessions, the message does not say which one is waiting; this guide shows how to put the project's name in it.
For a sound, use this command instead:
afplay /System/Library/Sounds/Glass.aiff
Under Notification it plays with the delays above. To hear it the moment Claude finishes, add the same command under the Stop event, which runs when Claude finishes responding. It does not run when you interrupt a turn yourself.
Notifications and sounds are over a moment later. Watchlamp, our free app, keeps a lamp on screen for every session instead: it glows while Claude works, blinks red with a raised hand as soon as a permission prompt appears (it listens to PermissionRequest, which runs at once rather than after six seconds), and goes dark when the turn is done. It can also make the edges of your screens glow and play its own sounds, up to 400% volume. Click a lamp to jump to the app that session runs in.
| Method | Tells you about | Delay | Stays on screen |
|---|---|---|---|
| Built-in notification | Permission prompts, idle sessions | About 6 s / 60 s | No |
| Notification hook | Permission prompts, idle sessions | About 6 s / 60 s | No |
| Stop hook with a sound | Finished turns | None | No |
| Watchlamp | Prompts, questions, errors, finished turns, for each session | None | Yes |
They combine well: a light to glance at, and a sound for when you are not looking at the screen at all.
Claude Code sends Apple's Terminal only a bell character, and that bell is silent unless Audible bell is turned on (Terminal → Settings → Profiles → Advanced). For a real notification, use a Notification hook, or iTerm2, Ghostty or Kitty.
Claude Code waits about six seconds before it reports a permission prompt, and each keystroke restarts the wait. It reports an idle session about 60 seconds after Claude finishes. A PermissionRequest hook runs the moment the prompt appears.
Put your command under the Stop event in your hooks. It runs when Claude finishes responding, though not when you stop a turn yourself.
Yes. Hooks in ~/.claude/settings.json run for Claude Code sessions in the desktop app's Code tab as well as for claude in a terminal.
Watchlamp is a free Mac app that puts one lamp per Claude Code session on your screen: it glows while Claude works, blinks when Claude needs you, and goes dark when the turn is done. For the desktop app and claude in the terminal.