Get notified when Claude Code needs your input
Claude Code fires a Notification event whenever it waits for your input or a permission. Ghostty, Kitty and iTerm2 turn it into a desktop notification by themselves. In Terminal, VS Code's terminal or Warp, add a hook: a few lines in ~/.claude/settings.json, free, two minutes.
Checked against Claude Code's documentation on 16 October 2026.
Why a session goes quiet
When Claude needs a permission, asks you to pick an option, or finishes, it stops and waits. If you're on your phone, in the browser or in Notion, nothing tells you, and the session sits idle while you think it's still working. Claude Code's own docs say: "By default Claude Code sends a desktop notification only in Ghostty, Kitty, and iTerm2" (terminal configuration).
Fix 1: let the terminal ring
In other terminals, Claude Code can ring the terminal bell instead. Add this to ~/.claude/settings.json:
{
"preferredNotifChannel": "terminal_bell"
}
Whether you hear the bell depends on your terminal's own bell setting. If you use Ghostty, Kitty or iTerm2 and see nothing, give the terminal app notification permission in System Settings → Notifications.
Fix 2: a Notification hook (any terminal)
A hook is a shell command Claude Code runs at a set moment. This one shows a macOS notification when Claude needs you, and another when it finishes. Add it to ~/.claude/settings.json; if the file already has a "hooks" block, merge the two events into it.
{
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude Code finished\" with title \"Claude Code\"'"
}
]
}
]
}
}
If nothing appears: osascript shows notifications through the Script Editor app, and "if Script Editor doesn't have notification permission, the command fails silently" (hooks guide). Run osascript -e 'display notification "test"' once in Terminal, then open System Settings → Notifications → Script Editor and turn on Allow Notifications.
Two details from the docs worth knowing:
Stop"fire[s] whenever Claude finishes responding, not only at task completion", so you'll get one after every answer. Leave it out if that's too much.- The empty
matcherfires on every notification type. To narrow it, usepermission_prompt(a permission prompt has waited about six seconds),idle_prompt(Claude finished about 60 seconds ago and you haven't typed) orelicitation_dialog(an MCP server is asking you something). Source: the hooks guide.
Where a notification falls short
A banner tells you that something happened. With one session that's enough. With four or five sessions open, it isn't:
- Every banner says the same thing, so you don't know which session wants you.
- The banner leaves after a few seconds. If you missed it, nothing shows the session is still waiting ten minutes later.
- Clicking it doesn't take you to the right terminal tab.
| Notification hook | Bellpip | |
|---|---|---|
| Shows which session needs you | Not unless you script it | Yes, a row per session in the notch |
| Still visible after you look away | Until the banner leaves | Yes, until the state changes |
| Different sound per state | One sound per event, if you add one | Needs you, done and error each have their own chime |
| Takes you to the terminal | No | Click the row: Terminal, iTerm2, Ghostty, tmux, VS Code, Cursor, JetBrains IDEs or the Claude app |
| Cost | Free | Free for 7 days of use, then pay what you want, even $0 |
Bellpip keeps every Claude Code session in your MacBook's notch with its state (working, needs you, done, error, idle) and rings with its own chime when one needs you, finishes or fails. Your music dips under the chime, and clicking a row brings that exact terminal forward. macOS only. Free for 7 days of use, then pay what you want, even $0.
Questions
Why don't I get Claude Code notifications on my Mac?
Either your terminal isn't Ghostty, Kitty or iTerm2 (use Fix 1 or Fix 2), the terminal app has no notification permission, or you use the osascript hook and Script Editor has no notification permission (see the note under Fix 2).
Does the hook work in VS Code's terminal?
Yes. Hooks run in any terminal; the docs name "the VS Code integrated terminal" as a place to use one. See Claude Code notifications in VS Code and Cursor.
Can I get a sound when Claude Code is waiting for input?
Yes: swap the command for afplay, for example afplay /System/Library/Sounds/Glass.aiff. See Play a sound when Claude Code is done or needs you.
Why does the notification come late, or not at all?
Claude Code only notifies when you seem to be away: a permission prompt after about six seconds without typing, a finished turn after about 60 seconds. See Claude Code notifications not working for that and the other usual causes.
Do I have to remove my hook to use Bellpip?
No. Bellpip reacts to the same Claude Code events; your own hooks keep running alongside it.