Feature request: notifications when codex is done with a task

It would be great to have the option to receive notifications when Codex completes a task. Especially when managing tasks concurrently, it is annoying to have to constantly check if codex is done.

26 Likes

This is extremely necessary. Please add web notification. Jules already have it.

4 Likes

+1 for that feature. Its not really a “background agent” if i have the tab open all the time checking if its done already.

1 Like

I want this too. +1 from me!

2 Likes

+1 just copy claude code CLI

+1. I need a Lark notification when the task is finished or intervene is asked.

It is possible to get notified via Codex configuration and a little scripting, though. I have had this running the last days and it really helped my workflow. I have written a blogpost on how this works here: https:// kanman .de/en/posts/codex-desktop-notifications/

Codex supports “notify” in its config and you can set up a command it should invoke. That command receives a JSON payload with the user and assistant prompts. If you set up a little scripting you can use that info to show a desktop notification or send push messages to your phone. This also works in WSL environments. I also use pushover to get the notifications to my phone when my laptop is locked (which I do when I leave the desk with Codex working). Works pretty good for me.

Would love this for the VSCode extention too, seriously missing this compared to things like antigravity.

This is an ugly stop-gap solution, but until OpenAI adds support for bespoke notifications, you could use the notify hook to trigger a system sound like so on macOS:

notify = [
  "bash",
  "-lc",
  "osascript -e 'display notification \"Task finished\" with title \"Codex\"'; afplay /System/Library/Sounds/Glass.aiff",
]

I’ve created a skill for this here. Should run automatically whenever agent completes a job. Note that it currently only works for mac