DEV Community

Cover image for Get a notification when Claude Code is waiting for input (VS Code, Cursor, terminal)
Viswa Jagadeesan
Viswa Jagadeesan

Posted on

Get a notification when Claude Code is waiting for input (VS Code, Cursor, terminal)

Claude Code is great at working on its own, until it needs you. Then it waits silently. In VS Code there is no alert outside the panel, and with three chats open you check each tab by hand.

There are two ways to fix this: a small hook you write yourself, or a ready-made player. I'll show both.

Option 1: a small hook (one machine, one alert)

Claude Code runs a Notification hook when it waits for you. In ~/.claude/settings.json:

{
  "hooks": {
    "Notification": [
      { "hooks": [ { "type": "command", "command": "powershell -c \"[console]::beep(880,300)\"" } ] }
    ]
  }
}
Enter fullscreen mode Exit fullscreen mode

On macOS use osascript -e 'display notification "Claude needs you"', on Linux notify-send "Claude needs you". It works, but it only beeps: it doesn't say which chat, and you can't answer from the alert.

Option 2: Mirror for Claude (every chat, answer from the alert)

I built Mirror for Claude because I wanted the alert and the answer in one place.

The player showing Claude needs you

  • A list of every Claude Code chat with a live state: needs your OK, working, compacting, finished, failed. The most urgent is on top.
  • Alerts your way: sound, desktop notification, taskbar flash, phone push, ntfy, Slack, Discord or Teams, with quiet hours.
  • Answer right there: Allow / Deny, Claude's multiple-choice questions, or type a reply.
  • Works with the terminal, VS Code, Cursor, Windsurf, JetBrains and WSL.

It runs fully on your computer: plain Node, no npm packages, hooks that return at once when no player is open.

Set it up

  1. Install the Mirror add-on from the VS Code Marketplace or Open VSX, or download the zip and double-click the installer.
  2. Click Mirror in the status bar.
  3. In Settings, pick your alerts.

Free for personal use, in beta: https://github.com/viswa-jagadeesan-personal/mirror-for-claude

Mirror for Claude is an independent project, not made by Anthropic.

Top comments (0)