Guide
Get Notified When Claude Code Needs Input on Mac
Built-in terminal alerts, a hook that works in any terminal, and how to answer a blocked agent without hunting for its tab.
Updated by Pulkit
The short answer
Claude Code already sends a desktop notification in Ghostty, Kitty and iTerm2 when it finishes or stops for a permission prompt while you are away from the terminal. In other terminals, add a Notification hook to ~/.claude/settings.json that plays a sound or posts a macOS notification. Once you run several agents at once, a notification is only half the answer, and a board such as Edith's Agents extension shows which one is blocked and lets you answer it.
Method 1: the notifications Claude Code sends by default
Built into Claude Code
Terminal notifications and the bell
According to Anthropic's terminal configuration guide, Claude Code fires a notification event when it finishes a task or pauses for a permission prompt and you appear to be away. What you see depends on the terminal:
- Ghostty, Kitty and iTerm2 get a desktop notification. iTerm2 shows it only after you turn on Notification Center Alerts and escape sequence alerts in its profile settings.
- Apple Terminal gets a bell character at most, which can flash the window or bounce the Dock icon if the profile allows it.
- Other terminals get nothing by default.
To force the bell in any terminal, set preferredNotifChannel to "terminal_bell" in your settings file. Inside tmux, turn on allow-passthrough or notifications never reach the outer terminal.
Method 2: a Notification hook
Hooks run a command of your choice on Claude Code events. The Notification event can be filtered by type, such as permission_prompt or idle_prompt, and the Stop event fires when Claude finishes responding. A hook works in every terminal, including the VS Code terminal, and runs next to the built-in notification rather than replacing it. Add this to ~/.claude/settings.json to hear a sound on every notification:
{ "hooks": { "Notification": [ { "hooks": [ { "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" } ] } ] } }Swap the command for osascript -e 'display notification "Claude needs you" with title "Claude Code"' to get a banner in Notification Center instead.
Method 3: agent view and the desktop app
claude agents opens agent view, which lists Claude Code background sessions with the ones that need input first, and notifies you while it is open. The Claude desktop app sends a system notification when a session finishes and you are not looking at it. Both are free and good at what they cover. Terminals built for agents, such as cmux, also highlight the pane that needs input.
Where notifications fall short
- They tell you, they do not take you there. A banner that says "Claude needs your permission" does not say which of six tabs it came from.
- One agent at a time. Hooks and terminal alerts are per tool. Codex, OpenCode or Gemini need their own setup, if they have one at all.
- Nothing for a stuck agent. An agent that goes quiet without asking anything never fires a notification.
- Other machines are silent. An agent running on a server over SSH can only ring a terminal you happen to have open.
The Edith way: one board that tells you and lets you answer
Agents shows every coding agent on this Mac and on the machines you added in Machines, grouped as blocked, working, done or idle, with blocked first. Notifications are built in: when an agent needs approval or has a question, when it finishes, and when it hits an error. An optional fourth one fires when an agent looks stuck, after a quiet spell you set between 2 and 120 minutes, 10 by default. The Agents card in the notch shows who is waiting, and says No agent needs you right now when nobody is.
- 1
Install Agents
Open Library in Edith's sidebar, find Agents and press Install. The first time you open it, Edith offers to install herdr, the open source terminal manager it runs agents in.
- 2
Connect Claude Code's hooks
In the Agents settings, under Session activity, turn on Observe session activity for Claude Code and press Review hook setup. Edith shows the exact changes it will make to
~/.claude/settings.jsonbefore writing them, keeps unrelated hooks, and saves a private backup first. Remove hooks takes them out again. - 3
Answer permission prompts from Edith
Turn on Handle permission requests in Edith. Each request then shows the tool and the command with Allow once and Deny, in the app or the notch. A request waits up to two minutes for you, then Claude Code's own approval prompt takes over. Codex prompts can be answered the same way.
- 4
Choose your notifications
In the Notifications settings, pick Notify when an agent needs you, Notify when an agent finishes and Notify when an agent hits an error. Turn on Notify when an agent looks stuck and set Treat as stuck after, or Open the diff when an agent finishes to land straight on its changes.
- 5
Queue the next instruction
Choose Send message… from an agent's menu, write the instruction, and set When to send to When done. The button reads Send when it finishes, and Edith types it in the next time that agent finishes a turn. Later and At time schedule it instead.
From the terminal
The same activity and follow-ups are available as commands, for scripts or for another agent to call:
ed agent activity statused agents ls --machine localed agents send w1:p2 "run the tests again" --when-finishedComparing the options
- Terminal notifications: free, built in, one session per banner, no answer from the banner.
- Notification hooks: free, any terminal, Claude Code only, you maintain the script.
- Agent view and the desktop app: free, Claude Code only, the desktop app notifies on finish.
- Edith Agents: part of a paid app, covers Claude Code, Codex and other agents on this Mac and your SSH machines, with stuck alerts and answers from one place.
Common questions
Why do I get no notification in Apple Terminal?
Apple Terminal does not receive Claude Code's desktop notification. Set preferredNotifChannel to "terminal_bell" and turn on Audible bell in the Terminal profile, or add a Notification hook.
Does Edith change my Claude Code settings?
Only when you turn on session activity, and it shows the hook entries before writing them. You can remove them again from the same settings.
Can I get notified about usage limits too?
Yes. Edith's Usage extension can alert you when a session or weekly window is nearly used up, or when your pace would reach the cap before it resets.
Do notifications work with the lid closed?
Only if the Mac is awake. Pair the board with Lid Awake for runs that continue after you close the MacBook.
Go further
Read how to run multiple Claude Code agents for the worktree setup behind a busy board, and how to keep your Mac awake while Claude Code runs for long runs. The Claude Code on Mac page lists everything Edith does with Claude Code. Agents is part of every Edith license; see pricing.