WatchlampGuidesGet Watchlamp · free

Guide

How to get notified when Claude Code needs you on a Mac

Updated November 21, 2026 · by the maker of Watchlamp

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.

1. The built-in notification

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:

TerminalWhat you get by default
iTerm2A macOS notification, once iTerm2 is set to pass it on (below)
Ghostty, KittyA macOS notification
Terminal (Apple's)A bell, which is silent unless you turn on the audible bell
Other terminalsNothing

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.

2. A Notification hook with a macOS alert

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:

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.

3. A sound when a turn ends

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.

4. A light you can see from across the room

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.

Which one to use

MethodTells you aboutDelayStays on screen
Built-in notificationPermission prompts, idle sessionsAbout 6 s / 60 sNo
Notification hookPermission prompts, idle sessionsAbout 6 s / 60 sNo
Stop hook with a soundFinished turnsNoneNo
WatchlampPrompts, questions, errors, finished turns, for each sessionNoneYes

They combine well: a light to glance at, and a sound for when you are not looking at the screen at all.

Frequently asked questions

Why don't I get notifications in the Mac's Terminal app?

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.

Why does the notification arrive several seconds late?

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.

How do I get told as soon as Claude finishes?

Put your command under the Stop event in your hooks. It runs when Claude finishes responding, though not when you stop a turn yourself.

Do hooks work in the Claude desktop app?

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.

Learn more

More guides

Running several Claude Code sessions at once, and knowing which one needs youClaude Code hooks: which events tell you what a session is doing