← Blog

Codex notifications on Mac

2026-11-14 · 4 min read

Codex finishes and a banner appears. Where a click lands depends on your terminal and how the banner was made, and with many sessions across terminals it is not guaranteed to be the right one. Codex can notify you for free. The part that costs time is getting back to the exact session.
  • Free: tui.notifications or a notify script tells you Codex is done.
  • Where a click lands depends on the terminal and how the banner was made. It cannot pick a tmux pane.
  • back2vibing free tier adds live status and a chime. Pro returns you to the exact tab or pane.

Free: built-in TUI notifications

Codex has terminal notifications in its TUI. Set them under [tui] in ~/.codex/config.toml. tui.notifications can filter by event, such as agent-turn-complete and approval-requested.
In auto mode Codex prefers OSC 9, an escape sequence some terminals turn into a desktop notification, and falls back to the bell. Set the condition to unfocused so it only fires when you are elsewhere.
[tui]
notifications = ["agent-turn-complete", "approval-requested"]
notification_method = "auto"
notification_condition = "unfocused"

Free: a notify script

The notify setting runs a program on a supported event. Today that is only agent-turn-complete. Put it in your user-level ~/.codex/config.toml, because Codex ignores notify in a project-local .codex/config.toml and prints a startup warning.
Codex passes your script one JSON argument with fields such as type, thread-id, cwd, and last-assistant-message. The script can post a banner with osascript or terminal-notifier, or play a sound with afplay.
notify = ["python3", "/path/to/notify.py"]

Where both fall short

The banner depends on your terminal supporting it, such as iTerm2 or kitty. From tmux or herdr, a pane you are not looking at can finish with no signal.
Where a click lands depends on the terminal and how the banner was made. We did not test Codex banners or notify scripts, and a banner never picks a tmux pane. Banners are not dismissed when you go to the terminal yourself, so they pile up. They are read-only, so you still switch to the terminal to answer. A notify script also never hears about approval requests.

What back2vibing changes

Codex has a lifecycle integration. Each session appears on the Session Rail with a status color that stays until the state changes. The free tier also gives you a completion chime and macOS notifications.
With Pro, Command+Return jumps to the next agent that needs you, landing on the exact tab or pane in Ghostty, iTerm2, cmux, WezTerm, kitty, Warp, Apple Terminal, tmux, Zellij, and others. It never moves your keyboard focus on its own.
StatusMeaning
Amber, pulsingNeeds you: a question or a permission request
Purple spinnerCodex is working
Green dotFinished with a new response
Red exclamation markBlocked or failed, not yet seen
The back2vibing mini chat showing the recent conversation with a reply composer
Read & reply: answer Codex from the mini chat (Pro).

Codex Desktop and tmux

Codex Desktop is a Pro integration that returns to the exact thread. Keep the thread open while the agent runs, or back2vibing falls back to the captured app window.
If you run Codex in tmux, set Multiplexer to tmux under Launch (tmux 3.0 or newer). back2vibing then returns to the exact pane.

Try it

Run brew tap builtby-win/back2vibing, then brew install --cask back2vibing. Open the app and grant Accessibility access so it can return to the right window. New installs include a 14-day Pro trial. Pro is a one-time $19 lifetime license.
Start Codex, send a short prompt, switch apps, and wait. The session should appear on the rail. If not, check that the integration shows Active on the Agents page, repair it, and start a new session.
brew tap builtby-win/back2vibing
brew install --cask back2vibing

Try back2vibing

Every new install includes a 14-day Pro trial, and Pro is a one-time $19 lifetime license.
Download Free
$ brew tap builtby-win/back2vibing https://github.com/builtby-win/back2vibing && brew install --cask back2vibing
Install via Homebrew macOS

Frequently asked questions

How do I get Codex notifications on Mac for free?

Turn on tui.notifications in ~/.codex/config.toml, optionally with notification_condition set to unfocused. Or set notify to a script that shows a banner on agent-turn-complete.

Does clicking a Codex notification take me to the right session?

It depends on the terminal and how the banner was made. We did not test Codex banners, and a banner never picks a tmux pane. With back2vibing Pro, a jump returns you to the exact tab or pane. The free tier notifies but does not return.

Why do Codex TUI notifications not work in tmux or herdr?

They come from the terminal, not the multiplexer, so a pane inside tmux or herdr often gets no usable alert. back2vibing tracks the session itself.

Where does the Codex notify setting go?

In your user-level ~/.codex/config.toml. Codex ignores it in a project-local .codex/config.toml and prints a startup warning.

Does the notify script tell me when Codex needs approval?

No. The docs list agent-turn-complete as the only supported notify event. The tui.notifications setting can also filter on approval-requested.

Can I reply to Codex without switching windows?

Yes, with Pro. Read & reply opens the recent conversation with a composer and a mic.

Does it work with Codex Desktop?

Yes, with Pro. It returns to the exact thread. Keep the thread open while the agent runs.

Is there a free version?

Yes. The free tier has live status, completion sounds, and macOS notifications. Jumping back and the inbox are Pro, with a 14-day trial.

Keep reading