Claude Corner

Missing When Claude Needs You? Make Claude Code Ring a Bell.

By ยท 24 Nov 2026

A flat diagram at a gentle tilt of a small pale frost gray dot with three open concentric rings spreading from it, on a bright citron field, with no people or text.

At a glance

  • Claude Code fires a notification event when it finishes a task or a permission prompt waits while you are away, but in many terminals nothing reaches you.
  • One setting makes it ring the terminal bell in any terminal, and iTerm2 can show real desktop alerts.
  • A Notification hook can play a sound or show a desktop banner, and you can aim it at permission prompts only.

Here is an example, not a case from the docs: you start a long refactor, switch to a ticket, and come back to find Claude waiting on one shell approval. In many terminals the default is silence.

Why it matters

Anthropic's terminal configuration guide says Claude Code fires a notification event when Claude finishes a task or pauses for a permission prompt and you appear to be away. Ghostty, Kitty and iTerm2 get a desktop notification when detected, though iTerm2 needs its alert settings on. Apple Terminal gets a silent bell at most, and other terminals get nothing, including Warp and the VS Code integrated terminal. Our advice: pick one alert path today and test it.

How to get pinged when Claude needs you

We have not run these steps in a live session.

  1. Ghostty or Kitty may already show a desktop notification. iTerm2 users go to step 2. Everyone else can start with step 3.
  2. In iTerm2, open Settings, Profiles, Terminal, check Notification Center Alerts, click Filter Alerts, and turn on the option that sends alerts generated by escape sequences.
  3. For a bell in any terminal, set preferredNotifChannel to terminal_bell. The settings reference says this appears in /config as Local notifications. In Apple Terminal, also turn on Audible bell under Settings, Profiles, Advanced.
  4. For a sound or banner, add a Notification hook, which runs alongside the built in notification. The hooks guide shows osascript on macOS and notify-send on Linux.
  5. To hear only about approvals, set the matcher to permission_prompt, which the hooks reference says fires after a tool approval has waited about six seconds. idle_prompt fires when Claude finished about 60 seconds ago and you have not typed since. Option B is our pairing of the guide's osascript command with permission_prompt.
# We have not run this script end to end on every platform.
# Type this inside a Claude Code session to find Local notifications.

/config

# Option A: a bell in any terminal. Add to ~/.claude/settings.json
{
  "preferredNotifChannel": "terminal_bell"
}

# Option B on macOS, our combination: a banner only when an approval waits.
# Add to ~/.claude/settings.json (on Linux, use notify-send from the hooks guide)
{
  "hooks": {
    "Notification": [
      {
        "matcher": "permission_prompt",
        "hooks": [
          {
            "type": "command",
            "command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"
          }
        ]
      }
    ]
  }
}

Gotchas

  • The macOS banner never shows up. The hooks guide says osascript routes through Script Editor and fails silently without notification permission. Run the guide's test command once, then allow notifications for Script Editor.
  • Linux over SSH stays quiet. The guide says notify-send needs a desktop notification daemon, which headless servers, SSH sessions and most containers lack.
  • Apple Terminal went silent after setup. The terminal guide says /terminal-setup and the first run prompt turn off audible bell. Turn it back on under Settings, Profiles, Advanced. Hooks still run when preferredNotifChannel is notifications_disabled.

For a first hook, see Formatting Nits on Every Claude Diff? Let a Hook Run Prettier After Each Edit.

Sources:

Recommended AI prompt

Copy this paragraph into ChatGPT, Claude, Gemini, Grok, or whatever AI you use.

Prompt

I keep missing when Claude Code finishes a task or stops for permission. Using only Anthropic's docs on terminal configuration, hooks and preferredNotifChannel, help me choose the built in desktop notification, the terminal bell or a Notification hook, and whether to match permission prompts, idle prompts or both. Ask which OS and terminal I use, whether I work over SSH or in tmux, and whether I want a sound or a banner.