Agent Standup

Codex notifications: know when Codex is done or needs you

Codex can work for minutes on one task. You switch to another window, and then you either check back too often or come back long after it stopped to ask you something. Codex has two settings for this, and they cover different cases. This page shows both, with a script you can copy, and a way to watch every Codex session at once without setting anything up.

1. The built-in terminal notifications

The Codex CLI can notify you itself, from the terminal it runs in. In ~/.codex/config.toml:

[tui]
notifications = true

Three keys control it, from the official configuration reference (https://developers.openai.com/codex/config-reference):

If nothing shows up, your terminal probably treats OSC 9 as nothing, or the bell as silent: try notification_method = "bel" and turn on your terminal's bell or "visual bell" setting.

2. Your own program, with notify

For a real desktop notification in any terminal, a sound, or a message to your phone or a chat, Codex can run a program of yours. In the user-level ~/.codex/config.toml (Codex ignores notify in a project's own .codex/config.toml):

notify = ["python3", "/Users/you/.codex/notify.py"]

Codex runs it with one argument: a JSON object with type, thread-id, turn-id, cwd, input-messages and last-assistant-message (https://developers.openai.com/codex/config-advanced). Today notify only fires on agent-turn-complete, the end of a turn, not when a command waits for your approval: use tui.notifications above for that.

A small script for macOS and Linux, with nothing to install on a Mac (it uses osascript; on Linux, notify-send):

#!/usr/bin/env python3
import json, platform, subprocess, sys

event = json.loads(sys.argv[1])
if event.get("type") != "agent-turn-complete":
    sys.exit(0)
title = "Codex is done"
text = (event.get("last-assistant-message") or "Turn complete")[:180]

if platform.system() == "Darwin":
    subprocess.run(["osascript", "-e", "on run argv",
                    "-e", "display notification (item 1 of argv) with title (item 2 of argv)",
                    "-e", "end run", text, title])
else:
    subprocess.run(["notify-send", title, text])

On macOS, the notification comes from "Script Editor" the first time: allow it in System Settings → Notifications if it does not appear. The official page has the same idea with terminal-notifier, in Python, TypeScript, Go and more.

3. Every Codex session at once, with no setup

Notifications tell you about one session at a time. If you run several Codex sessions, or Codex next to Claude Code, Agent Standup shows them all together as a live team call: who is working (and on what command), whose turn is over, and the real output of what each agent ran.

Agent Standup showing a Codex session: the agent shares its screen with the failing test and the fix

Try it

Questions

Do I need both settings? tui.notifications is enough if you work in a terminal that shows OSC 9 notifications. Add notify for anything else: a sound, your phone, a chat channel, or a notification that does not depend on the terminal.

Why does nothing happen when the terminal is in front? tui.notification_condition defaults to unfocused. Set it to "always" to be notified even then.

Does Agent Standup send my sessions anywhere? No. It reads them on your computer and shows them there. See the privacy page: https://agent-standup.com/privacy/