Black Friday sale: 85 Claude Code agents for $29 one-time · lifetime updatesGet access →
Setup·Updated ·6 min read

Claude Code Notifications: Know When It Needs Your Input

By Shubhranshu, creator of claudeagents · Last reviewed

Claude Code sends a notification when it finishes a task or pauses for a permission prompt while you're away from the terminal. In Ghostty, Kitty and iTerm2 that's a desktop notification by default; in other terminals, set "preferredNotifChannel": "terminal_bell" or add a Notification hook that plays a sound or shows an alert.

The most common way to lose time with Claude Code is not noticing it's waiting for you. This guide shows the built-in notifications, how to turn them on in your terminal, and how to add custom sounds or desktop alerts with hooks. Checked against Claude Code's terminal and hooks docs on 28 November 2026.

Built-in notifications by terminal

When Claude finishes a task or pauses for a permission prompt, and you appear to be away from the terminal, it fires a notification. What you see depends on your terminal:

Claude Code's built-in notifications
TerminalWhat happensSetup needed
GhosttyDesktop notificationNone
KittyDesktop notificationNone
iTerm2Desktop notificationTurn on iTerm2's alert settings
Apple TerminalBell only if "Audible bell" is onEnable Audible bell, set terminal_bell
VS Code terminal, Warp, othersNothing by defaultUse terminal_bell or a hook

Turn on the terminal bell

If your terminal doesn't show desktop notifications, make Claude Code ring the terminal bell instead. Add this to ~/.claude/settings.json:

  • Apple Terminal: also turn on Audible bell in Settings → Profiles → Advanced.
  • iTerm2 over SSH: enable "Send escape sequence-generated alerts" under Filter Alerts.
  • tmux: add set -g allow-passthrough on to ~/.tmux.conf so notifications reach your terminal.
  • The default value is "auto", which picks the best channel for your terminal.
~/.claude/settings.json
{
  "preferredNotifChannel": "terminal_bell"
}

Play a sound with a Notification hook

Hooks run your own command when something happens in Claude Code, and they run alongside the built-in notification. This example from Claude Code's docs plays a sound on macOS whenever Claude needs you:

Sound on macOS (Notification hook)
{
  "hooks": {
    "Notification": [
      {
        "hooks": [
          { "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" }
        ]
      }
    ]
  }
}

On Linux, swap the command for notify-send 'Claude Code' 'Claude Code needs your attention'. Hooks work in any terminal, including VS Code and Warp.

Desktop alerts only for permission prompts, plus a sound when done

The Notification event has a matcher, so you can choose which notifications trigger your hook. permission_prompt fires when Claude needs approval and has waited about six seconds; idle_prompt fires when Claude finished about 60 seconds ago and you haven't typed. Add a Stop hook to hear when Claude finishes each reply:

Desktop alert + finish sound (macOS)
{
  "hooks": {
    "Notification": [
      {
        "matcher": "permission_prompt|idle_prompt",
        "hooks": [
          {
            "type": "command",
            "command": "osascript -e 'display notification \"Claude Code needs you\" with title \"Claude Code\"'"
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          { "type": "command", "command": "afplay /System/Library/Sounds/Hero.aiff" }
        ]
      }
    ]
  }
}

Save this in ~/.claude/settings.json for all projects, or .claude/settings.json for one project. If the file already has settings, merge the hooks block in. Notification hooks can't block or change the notification; they only run your command.

Stop waiting on permission prompts altogether

Many notifications are Claude asking to run safe commands like your tests or git diff. Pre-approve those with permission rules, and Claude only stops for things that matter. Our permissions generator builds the allow, ask and deny rules for you.

And if you run longer jobs, ready-made workflows help too: claudeagents commands like /start-project or /seo-audit run a whole multi-step job, so you can step away and come back when the notification arrives.

Frequently asked questions

How do I get notified when Claude Code needs input?

Use Ghostty, Kitty or iTerm2 (with alerts on) for built-in desktop notifications, set "preferredNotifChannel": "terminal_bell" in other terminals, or add a Notification hook that plays a sound or shows a desktop alert.

Why am I not getting Claude Code notifications?

Your terminal may not support them, iTerm2's alerts may be off, Apple Terminal's Audible bell may be off, or tmux may be blocking passthrough (add set -g allow-passthrough on). Notifications also only fire when you appear to be away from the terminal.

How do I make Claude Code play a sound when it's done?

Add a Stop hook in settings.json whose command plays a sound, for example afplay /System/Library/Sounds/Hero.aiff on macOS. The Stop event runs each time Claude finishes responding.

Do Claude Code notifications work in VS Code?

The VS Code integrated terminal doesn't show built-in desktop notifications. Use "preferredNotifChannel": "terminal_bell" or a Notification hook, which works in any terminal.

What is the Claude Code Notification hook?

A hook event that runs your command whenever Claude Code sends a notification. Its matcher can target types like permission_prompt and idle_prompt, and the command receives the message and notification type as JSON.

Can I get Claude Code notifications on my phone?

Not built in through these settings, but a hook can run any command, so you can call a push service you already use from a Notification or Stop hook.

Sources

Skip the setup: get 85 ready-made agents

Coding, SEO and marketing kits for Claude Code, with 52 skills and 53 slash commands. $29 one-time, lifetime updates.

See what's included →

Keep reading