Claude Code notifications: when done or waiting for input
Updated 24 October 2026
Claude Code can tell you when it needs permission or has finished, so you can work on something else while it runs. Depending on your terminal you get a desktop notification, a bell, or nothing until you set it up. Here’s every option, and how to answer without going back to the terminal.
The short answer
| Option | Works in | Answer from it? |
|---|---|---|
| Built-in desktop notification | Ghostty, Kitty, iTerm2 | No, it sends you back to the terminal |
| Terminal bell | Any terminal | No |
| Notification hook | Any terminal, macOS, Linux, Windows | No |
| Agent Pets | Chrome, Arc, Brave, Edge on macOS (auto-start); Linux and Windows via npx getagentpets start | Yes: Allow, Always, Deny and reply from any tab |
Waiting on Claude Code in Chrome? Options 1 to 5 tell you something happened, then send you back to the terminal. Agent Pets lets you approve and reply from the tab you are in. It is a one-time purchase with a 7-day refund, and everything runs on your computer.
When Claude Code notifies you
Claude Code fires a notification event when it’s waiting on you and you appear to be away from the terminal. The two you’ll see most:
- Permission prompt (
permission_prompt): Claude wants to run a tool, such as a Bash command or a file edit, and you haven’t typed for about six seconds. - Waiting for you (
idle_prompt): Claude finished responding about 60 seconds ago and you haven’t typed since.
That delay is deliberate: if you’re at the keyboard, you don’t need an alert. It’s why a notification can arrive a few seconds after the prompt appears.
1. Built-in desktop notifications in Ghostty, iTerm2 and Kitty
Claude Code sends a desktop notification by itself only in Ghostty, Kitty and iTerm2. Ghostty and Kitty pass it to your system’s notification center with no setup, even over SSH. iTerm2 needs one setting:
- Open iTerm2 Settings → Profiles → Terminal.
- Check Notification Center Alerts, click Filter Alerts and enable Send escape sequence-generated alerts.
Still nothing? Make sure your terminal app is allowed to show notifications in your system settings, or work through Claude Code notifications not working.
2. The terminal bell, for VS Code, Warp and other terminals
In any other terminal, including Warp and the VS Code integrated terminal, you can have Claude Code ring the terminal bell instead. Add this to ~/.claude/settings.json:
~/.claude/settings.json{
"preferredNotifChannel": "terminal_bell"
}
Many terminals bounce their Dock icon or flash the tab on a bell, which is easy to miss when you’re in another window.
In the VS Code extension and the desktop app, Claude Code sends permission_prompt about six seconds after it asks, whether or not you’re typing. Before v2.1.233 it didn’t fire there at all, so update if your VS Code notification never shows up.
3. A Notification hook for macOS and Linux
Hooks are shell commands Claude Code runs at set moments. A Notification hook runs every time Claude needs you, in any terminal, alongside the built-in notification. Add it to ~/.claude/settings.json; if the file already has a hooks key, add Notification next to the events already in it.
macOS
~/.claude/settings.json{
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"
}
]
}
]
}
}
No notification? osascript notifications come from the Script Editor app. If Script Editor isn’t allowed to send notifications, the command fails silently. Run osascript -e 'display notification "test"' once and check System Settings → Notifications → Script Editor.
Linux
~/.claude/settings.json{
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [{ "type": "command", "command": "notify-send 'Claude Code' 'Claude Code needs your attention'" }]
}
]
}
}
notify-send needs a desktop notification daemon, which SSH sessions, headless servers and most containers don’t have.
Only for permission prompts
An empty matcher runs the hook for every notification type. Set it to permission_prompt to be alerted only when Claude is waiting for approval, or idle_prompt for when it’s waiting for your next message. Type /hooks in Claude Code to check that your hook is registered.
Using tmux?
tmux swallows notifications unless you let them through. Add set -g allow-passthrough on to ~/.tmux.conf and run tmux source-file ~/.tmux.conf.
4. Get a notification when Claude Code is done
The idle_prompt notification only comes about 60 seconds after Claude finishes. For an alert the moment it’s done, use a Stop hook, which runs every time Claude finishes responding. On macOS:
~/.claude/settings.json{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude Code is done\" with title \"Claude Code\"'"
}
]
}
]
}
}
On Linux, swap the command for notify-send 'Claude Code' 'Claude Code is done'. Stop takes no matcher. It also runs while you’re sitting at the terminal, so you may want it only for long tasks. For a sound instead of a banner, see Claude Code sound when done.
5. Get notified when Claude Code is waiting for input
“Waiting for input” covers two cases. When Claude needs approval to run a tool, it sends permission_prompt. When it has finished and is waiting for your next message, it sends idle_prompt. Point a Notification hook at just the second one with "matcher": "idle_prompt", or leave the matcher empty to hear about both.
6. Approve from your browser with Agent Pets
Every option above only tells you to go back to the terminal. If you spend the wait in Chrome, reading docs, reviewing a PR or testing the app your agent is building, Agent Pets brings the prompt to you:
- Each Claude Code, Codex, OpenCode and omp session becomes a pet that walks along the bottom of every page you visit.
- When an agent wants to run a command or edit a file, its pet starts bouncing. Click it to see exactly what it wants, and answer Allow, Always or Deny right there.
- A capsule over each pet says Thinking, Your Turn or Done, and the toolbar badge counts the sessions waiting on you, so several sessions at once stay manageable.
- Read the agent’s latest answer and send its next message without switching windows.
- In another app, a desktop notification names the pet that needs you, with Allow and Deny on it.
It installs with one command, npx getagentpets init, which adds the Claude Code hooks for you. It runs entirely on your computer: your code and prompts never leave your machine. The prompt in your terminal keeps working as usual, so you can answer in either place.
Get Agent Pets — was $25, now $6Get Agent Pets — $25
Questions
Why don’t I get Claude Code notifications in the VS Code terminal or Warp?
Claude Code sends its built-in desktop notification only in Ghostty, Kitty and iTerm2. In other terminals, such as Warp or the VS Code integrated terminal, set preferredNotifChannel to terminal_bell or add a Notification hook.
Why does the Claude Code permission notification arrive a few seconds late?
In the terminal, Claude Code only notifies you when you appear to be away: the permission_prompt notification fires once you haven’t typed for about six seconds, and idle_prompt about 60 seconds after Claude finishes responding.
How do I get notified only when Claude Code needs permission?
Give your Notification hook the matcher permission_prompt. Use idle_prompt for when Claude is waiting for your next message, or an empty matcher for every notification type.
How do I get a Claude Code notification when it’s done?
Add a Stop hook that runs a notification command, such as osascript on macOS or notify-send on Linux. Stop runs every time Claude finishes responding, so you hear about it right away instead of after the 60-second idle_prompt wait.
Is there a Claude Code notification plugin?
Claude Code plugins can bundle hooks, so a notification plugin is usually a Notification or Stop hook packaged for you. Check which command it runs before you install it. Agent Pets is one option: npx getagentpets init adds its hooks to your settings and lets you answer prompts from Chrome.
Can I approve Claude Code permission prompts without going back to the terminal?
Not with the built-in notifications, the bell or a plain hook: they only tell you to go back. Agent Pets shows each session as a pet on every Chrome page and puts Allow, Always and Deny on the pet and on its desktop notification, so you can answer from wherever you are. The terminal prompt keeps working too.
Sources: Claude Code’s documentation on terminal configuration, hooks and plugins.
More guides
- Claude Code notifications not working? Fixes
- Claude Code multiple sessions: run and track agents in parallel
- How to get OpenCode notifications
- Codex notifications: get notified when Codex is done
- Claude Code sound when done: play a sound when it finishes or needs you
- Claude Code notifications on your phone (ntfy, Pushover, Telegram)
- Claude Code notifications on Windows and WSL
- Claude Code hooks: a practical guide
- Notifications for Claude Code, Codex, OpenCode and omp compared