Skip to content
86% off$349 $48.86code BF2026

Guides

Claude Code Notifications on Mac: Hooks, Sounds, Banners

Get a Mac notification when Claude Code needs permission or finishes: copy-paste Notification and Stop hooks, the terminal bell, and banners you can answer.

GuideUpdated 9 min read

On this page

The quickest way to get Claude Code notifications on a Mac is a Notification hook in ~/.claude/settings.json that runs osascript -e 'display notification ...'. Add a Stop hook the same way to get pinged when it finishes. The snippets below are ready to paste.

If you only want a sound, the terminal bell is enough. If you run several agents and want to answer prompts without switching windows, Sledbot (our app) shows banners with Allow once, Deny and Reply… buttons.

Why you miss Claude Code prompts

Claude Code stops and waits when it needs permission to run a tool or edit a file, or when it has a question. Nothing happens until you answer. If the terminal is behind your browser or on another Space, a long task can sit at a permission prompt until you happen to look.

A notification fixes this, but only if it tells you which session is waiting and what it wants.

Built-in Claude Code notifications: the terminal bell

Claude Code can signal through your terminal. Inside a session, type /config and look for the notification option. If your version offers the terminal bell, choose it.

What the bell does depends on your terminal app. Most Mac terminals can play a sound, flash the window, badge the Dock icon or bounce it when a bell rings in a background window. These options are in your terminal's profile settings.

What the bell can't do:

  • It doesn't say which session rang or why.
  • It can't tell a permission prompt apart from a finished task.
  • You still have to switch to the terminal to answer.

For one session in one window, that is often all you need. For anything more, use hooks.

Set up a Claude Code notification hook

Hooks are shell commands Claude Code runs at set points. The Notification event fires when Claude Code needs your permission to use a tool, and when your prompt input has been idle for about a minute.

Quick version: a fixed message

  1. Open ~/.claude/settings.json in a text editor. Create it if it doesn't exist.
  2. Add a hooks block like this. If the file already has content, merge the block into the existing top-level object.
json
{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "osascript -e 'display notification \"Claude Code needs your input\" with title \"Claude Code\" sound name \"Glass\"'"
          }
        ]
      }
    ]
  }
}
  1. Save the file and start a new Claude Code session.
  2. Type /hooks to check that the hook is listed.

This posts a banner with the Glass sound. To undo it, delete the Notification entry.

To apply the hook to one project only, put the same block in .claude/settings.json inside that project instead. Use .claude/settings.local.json if you don't want to commit it.

Better version: show the actual message and the project

Claude Code passes JSON to the hook on standard input. It includes the notification text (message) and the working folder (cwd). A small script can put both in the banner, so you know which session is asking.

The script uses jq to read the JSON. macOS 15 Sequoia and later include it; run jq --version to check. If it's missing, this installs it with Homebrew:

bash
brew install jq
  1. Save this as ~/.claude/notify.sh:
bash
#!/bin/bash
# Reads Claude Code's hook JSON from stdin and posts a macOS notification.
input=$(cat)
msg=$(printf '%s' "$input" | jq -r '.message // "Claude Code needs you"')
dir=$(printf '%s' "$input" | jq -r '.cwd // ""')
project="${dir##*/}"
osascript \
  -e 'on run argv' \
  -e 'display notification (item 1 of argv) with title "Claude Code" subtitle (item 2 of argv) sound name "Glass"' \
  -e 'end run' "$msg" "$project"
  1. Make it executable. This command marks the file as runnable:
bash
chmod +x ~/.claude/notify.sh
  1. Point the hook at it:
json
{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          { "type": "command", "command": "~/.claude/notify.sh" }
        ]
      }
    ]
  }
}

The script hands the text to AppleScript as arguments instead of splicing it into the script, so a message containing quotes can't break the command.

Get notified when a task finishes

The Stop event fires when Claude Code finishes responding. Add it next to Notification:

json
{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          { "type": "command", "command": "~/.claude/notify.sh" }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "osascript -e 'display notification \"Finished\" with title \"Claude Code\" sound name \"Hero\"'"
          }
        ]
      }
    ]
  }
}

Use a different sound for each event so you can tell them apart without looking. The sound names match the files in /System/Library/Sounds/ (Glass, Hero, Ping, Submarine and so on).

Two things to know about Stop:

  • It fires at the end of every response, not only when a big task is done. In a back-and-forth session, you get a ping after each reply.
  • For a sound without a banner, use afplay /System/Library/Sounds/Hero.aiff as the command. afplay ignores notification settings and Focus (it still follows your volume).

What hooks can't do

A hook posts a notification and nothing more. Clicking the banner doesn't take you to the right terminal, and you can't approve or deny from it. The quick version gives every session identical banners. The script version names the folder, but two sessions in the same folder still look alike.

Answer prompts from the banner in Sledbot

Sledbot runs Claude Code and other CLI agents in real terminals inside one Mac app (macOS 14 Sonoma or later). It starts Claude Code with its own hooks for each launch: SessionStart, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, Notification and Stop. That is how it knows when each agent is working, blocked or done. These hooks live in per-launch settings files, so your own Claude config isn't changed.

Sledbot posts a banner when an agent you aren't looking at needs attention:

BannerWhen
"(agent) needs you"The agent is blocked: a permission prompt, a question, a login or a usage limit
"(agent) wants to"An approval is waiting
"(agent) asks"The agent asked a question
"(agent) is done"The agent finished (a passive banner that doesn't interrupt)
"(agent) hit an error"The agent reported an error

Banners have action buttons, so you can answer without opening the app:

  • Allow once and Deny for approvals.
  • Reply… opens a Your answer field with Send, for questions.
  • Up to 3 option buttons when the question offers choices.
  • Later (1 h) sets the item aside for an hour.

Clicking the banner itself focuses that agent's terminal.

Claude Code is also one of the agents Sledbot can actually hold back. Through its PreToolUse hook, risky actions such as a git push to main, a deploy command or anything run with sudo wait as approval cards until you answer. Other CLI agents are detect-and-answer only: Sledbot mirrors their on-screen prompt and answers it, but it can't stop an action they run without asking. The full rule list is in Needs you and approvals.

To set it up:

  1. Install Sledbot and add a project folder. Onboarding walks you through it.
  2. Start Claude Code on a task with New agent (⌘T, Command-T).
  3. Allow notifications when macOS asks. The prompt appears at the first agent launch.
  4. Open Sledbot's settings (⌘,), choose Notifications, and check that Show banners on this Mac, When an agent needs you and When an agent finishes are on. All three are on by default.

Sledbot doesn't remove your own hooks. If you keep Notification and Stop hooks in ~/.claude/settings.json, you may get two alerts for the same prompt, so remove them or move them into projects you run outside Sledbot.

Sledbot is part of MacSuite ($349 one-time as of November 2026), and you can try it free for 7 days.

Sounds, quiet hours and Focus

Banners alone are easy to miss. Sledbot plays a sound per event, set in Settings ▸ Notifications under Sounds:

  • Events include "Agent finished", "Long task finished", "Needs your approval", "Asked a question", "Error or crash" and "Hit a usage limit".
  • Each event can be None, Built-in, System or Custom…. Custom files can be aiff, aif, wav, caf or m4a, up to 5 seconds long.
  • Long task means longer than sets the threshold for "Long task finished". The default is 2 minutes.
  • No sound plays while you're looking at the agent, unless you turn on Play even when I'm looking at it.

To keep things quiet:

  • Quiet hours: off by default. Set From and To (default 22:00 to 08:00). During quiet hours sounds stop and banners don't interrupt. Turn on Still play error sounds to keep error alerts audible.
  • Quiet while the microphone or camera is in use: on by default, so a video call doesn't get a chime.
  • Focus modes are respected.
  • Mute Sounds (⌃⌘M, Control-Command-M) silences everything. It's also in the bell icon's menu in the menu bar.
  • For one noisy agent, right-click its tab and choose Mute sounds for this agent.

With plain hooks, Focus decides whether the osascript banner shows, and afplay plays regardless.

Across several agents: one Needs you list

With more than two or three agents, banners alone get hard to follow. Sledbot also collects everything waiting on you on the Needs you page in the sidebar. Items are listed oldest first: approval and question cards, then blocked agents.

From the keyboard:

KeyAction
⌘JJump to the next agent that needs you (anywhere in the app)
↑ / ↓Move between items
⌘↩Allow once
⌥⌘↩Always allow (saves a rule so it isn't asked again)
EEdit the command before it runs
⌘⌫Deny, with an optional note to the agent
LLater (1 hour)

If you answer by mistake, an Undo bar stays up for 10 seconds. When Sledbot answers by typing into an agent's terminal, it waits 5 seconds before sending, which gives Undo a chance to catch it.

The bell icon in the menu bar shows the needs-you count and lists each waiting item, and the Dock icon shows the same count as a badge. Both are on by default under Settings ▸ General ▸ Badges.

Sledbot Needs you page with two approval cards, oldest first, and one blocked agent below them
Approvals and blocked agents wait here, oldest first.

Which method to use

Terminal bellHooks + osascriptSledbot banners
SetupA setting in Claude Code and your terminalEdit settings.jsonInstall the app
Says which sessionNoYes, with the script versionYes
Shows what it wantsNoYes (message)Yes
Answer from the bannerNoNoAllow once, Deny, Reply
Different sounds per eventNoYes, one per hookYes, 11 events
Quiet hours, mute during callsNoOnly through FocusYes
CostFreeFreePart of MacSuite

Pick the bell if you run one session and sit near it. Pick hooks if you want real banners for free and don't mind switching to the terminal to answer. Pick Sledbot if you run several Claude Code agents in parallel and want to answer from wherever you are.

If it doesn't work

The hook runs but no banner appears. Notifications from osascript are usually listed under Script Editor. Open System Settings, search for "Notifications" and make sure Script Editor is allowed to show them. Also check that a Focus mode isn't on.

The hook never runs. Check settings.json for a JSON error, such as a missing comma or an unescaped quote inside the command string. Hooks are read when a session starts, so start a new one, then run /hooks to see what Claude Code loaded.

The script version does nothing. Make sure the script is executable (chmod +x ~/.claude/notify.sh). Then feed it sample JSON by hand; this should post a test banner:

bash
echo '{"message":"test","cwd":"/tmp/demo"}' | ~/.claude/notify.sh

If you see jq: command not found, install jq or use the quick version.

The banner comes late. The idle notification only fires after the prompt has waited about a minute. Permission prompts fire right away.

Too many Stop pings. Stop fires after every response. Switch it to a quiet afplay sound, or remove it and rely on the Notification hook.

Sledbot shows no banners. Banners only appear for agents you aren't looking at. If you denied the permission, open System Settings, search for "Notifications", select Sledbot and allow alerts. Then check Show banners on this Mac in Sledbot's Notifications settings, and that quiet hours aren't active.

FAQ

Can I get Claude Code notifications on my phone? A hook can run any command, so you can forward alerts through any push service that accepts an HTTP request. As of November 2026, Sledbot's alerts can't be set up to reach your phone from the app, so use a hook for that.

Does Sledbot change my Claude Code settings? No. It passes its hooks in a separate settings file for each launch, and your own Claude config isn't touched.

Can I approve a permission prompt without switching to the terminal? Not with hooks, because they only post a notification. In Sledbot you can answer from the banner or from the Needs you page.

Is it safe to just skip the prompts instead? Skipping all of them means nothing stops an agent from pushing to main or running a deploy. See a safer alternative to --dangerously-skip-permissions for rule-based approvals.

If you want agents that keep working, and keep notifying you, after you close the window, see keep Claude Code running after you close the terminal.

Every app.
One purchase.