COMPARISON

Allowbar vs DIY terminal notifications for coding agents

DIY hook scripts, the terminal bell and osascript alerts compared with Allowbar. What each gives you, setup effort, and when DIY is enough for you.

Short answer

A terminal bell, an osascript alert or a terminal-notifier hook tells you that Claude Code or Codex needs you, and for one session that is often enough. Allowbar goes further by letting you answer the permission prompt from the menu bar, listing every session by state and showing usage with reset times. DIY is free and takes minutes; Allowbar is a paid Mac app currently in private beta.

If you only need to know that Claude Code or Codex is waiting for you, a terminal notification or a five-line hook does the job for free. Allowbar is for the next step: answering the prompt without switching to the terminal, and keeping track of several sessions and your usage limits at once.

This page compares the DIY options (terminal bell, built-in terminal notifications, osascript, terminal-notifier) with Allowbar, a Mac menu bar app for Claude Code and Codex. Both approaches rely on the same mechanism underneath: the agents' own notification settings and hooks.

What do Claude Code and Codex already give you?

Claude Code fires a notification event when it finishes a task or pauses for a permission prompt and you appear to be away from the terminal. In Ghostty, Kitty and iTerm2 it sends a desktop notification (iTerm2 shows it only after you turn on its alert settings). Apple Terminal gets at most a bell character, and other terminals get nothing by default.

You can force the bell in any terminal with one setting:

{
  "preferredNotifChannel": "terminal_bell"
}

Claude Code also reports whether each session is working, waiting on you, or done to terminals that implement the OSC 7501 Program Status Protocol. If your terminal supports it, that is a free session status view.

Codex has its own knobs in ~/.codex/config.toml. tui.notifications turns on terminal notifications (optionally limited to certain event types), tui.notification_method chooses auto, osc9 or bel, and notify runs an external command that receives a JSON payload from Codex. The Codex notifications guide covers the details.

How do you build a DIY notification hook?

On macOS, the simplest DIY setup is a Claude Code Notification hook that calls osascript. This is the example from the official hooks guide:

{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"
          }
        ]
      }
    ]
  }
}

The matcher can be narrowed to notification types such as permission_prompt or idle_prompt. One catch from the docs: osascript notifications go through Script Editor, and if Script Editor lacks notification permission the command fails silently.

If you want a notification you can click, terminal-notifier is a free, MIT-licensed command-line tool for macOS notifications (brew install terminal-notifier). Its -activate option brings an app to the front when you click the notification, -sound default plays the standard sound, and -execute runs a shell command on click.

terminal-notifier -title "Claude Code" -message "Waiting for you" -sound default -activate com.googlecode.iterm2

For sound only, the Claude Code docs show afplay /System/Library/Sounds/Glass.aiff as the hook command. Our guide to Claude Code notifications on Mac walks through each variant.

What does Allowbar add on top?

Allowbar uses the same hooks, but instead of telling you to go back to the terminal, it puts the question in front of you. When an agent asks to run a command or edit a file, a Dynamic Island style panel slides down from the top of the screen with the project, the tool and the exact command, and three buttons: Allow, Block, Terminal.

Beyond the prompt itself:

  • Sessions: every Claude Code and Codex session is listed as working, waiting for you, or done, with waiting sessions at the top. Clicking one opens its terminal tab.
  • Activity log: each message you send becomes a task, with the commands run, files edited and permissions answered underneath. The log stays on the Mac.
  • Usage: Claude, Codex and Cursor usage in one place with the next reset time, and warnings below 50% and 20% remaining.
  • Done notification: when a task finishes.

Allowbar adds its entries to ~/.claude/settings.json and ~/.codex/hooks.json and leaves your other settings and hooks alone. Codex asks you to trust the hook the first time, and Allowbar does not skip that step. Events go to a small local server on the Mac, not to a cloud service.

What does Allowbar not do?

Allowbar never approves anything on its own: no auto approval and no rules that approve for you. If a request times out or the app is closed, the agent asks in the terminal as usual, and a missing answer is never treated as approval. It is Mac only (macOS 14 or later), supports Claude Code and Codex, and is not available for download yet.

Comparison table

When is DIY enough?

DIY is enough when you run one agent at a time and only need a nudge. A bell or an osascript hook costs nothing, works in minutes, and you keep full control of the script. It is also the right choice on Linux, in SSH sessions, or on a machine where you cannot install apps.

DIY starts to feel thin when you run several sessions in parallel. A notification says "something needs you" but not which session or what command, so you still switch windows, find the tab, read the prompt and answer. With three or four agents, that context switching is the real cost.

When does Allowbar fit better?

Allowbar fits if you work on a Mac, run Claude Code and Codex side by side, and want to keep reviewing each command yourself rather than turning prompts off. You see the command, decide, and stay in whatever you were doing. If you prefer to answer every prompt in the terminal anyway, a DIY hook gives you most of the value.

Answering from the menu bar

The core difference is that a notification points you to the terminal, and Allowbar lets you answer where you are. Everything else, the session list, the activity log and the usage gauges, follows from having one place on the Mac that sees all your agents. Allowbar is in private beta. Join the waitlist; the launch price is $9.99 instead of $29.90, one-time purchase.

Sources

Frequently asked questions

Can Claude Code send a macOS notification without any setup?

Yes, in Ghostty, Kitty and iTerm2 Claude Code sends a desktop notification when it detects them, though iTerm2 needs its alert settings turned on. In Apple Terminal and most other terminals you need a Notification hook or preferredNotifChannel set to terminal_bell.

Why does my osascript notification hook do nothing?

The Claude Code docs note that osascript notifications are routed through Script Editor. If Script Editor does not have notification permission, the command fails silently and macOS does not prompt you. Run osascript -e 'display notification "test"' once in a terminal and check System Settings.

Does a notification hook let me approve a command?

No. A Notification hook only reacts to the event; it cannot answer the prompt. Answering from outside the terminal requires a PermissionRequest hook that returns a decision, which is what Allowbar does when you click Allow or Block. See the permission request hook guide.

Do notifications work inside tmux?

They can. Claude Code's docs recommend set -g allow-passthrough on in ~/.tmux.conf so notifications reach Ghostty, Kitty or iTerm2 from a visible pane. Panes in windows you are not viewing send none with that sample config.

Does Allowbar replace my existing hooks?

No. Allowbar adds its own entries to ~/.claude/settings.json and ~/.codex/hooks.json and leaves other settings and hooks untouched, so a sound or terminal-notifier hook keeps working alongside it.

ALLOWBAR FOR MAC

Answer your agents from the menu bar.

Permission requests from Claude Code and Codex slide down from the top of your screen. Allow, Block or send back to the terminal. Allowbar never approves anything on its own.

Launch price $9.99 instead of $29.90, one-time purchase, lifetime license.