# How to know when Codex is done on your Mac

Codex can run a command when a turn ends. Set that up yourself, or let TapNoise connect Codex in Settings > Agents and play a sound when it finishes.

By [Rudra Satani](https://tapnoise.com/about/#maker), who makes TapNoise · 9 October 2026 · Updated 8 November 2026

In this post

Codex works on a task while you do something else, and the hard part is knowing when a turn has ended. Codex has a built-in way to run a command at that moment. You can use it directly, or let TapNoise set it up and play a sound for you.

## The built-in route: the notify setting

Codex reads its configuration from `~/.codex/config.toml`. Its `notify` setting names a program to run each time Codex finishes a turn. The program receives a JSON string describing the turn as its argument.

That means you need a small program of your own, usually a script, that reads the argument and does something: plays a sound, or posts a macOS notification. I have not written a working script for this post, and the exact JSON fields can change between Codex versions. Check OpenAI’s Codex configuration reference for the current format before you rely on it.

Two cautions. Codex’s configuration is a TOML file, so keep the syntax exact. And if you already have a `notify` setting, back up the file and fold its existing command into your script, rather than adding a second `notify` line.

## The easier route: TapNoise

[TapNoise](https://tapnoise.com/download/) is a menu bar app that can connect Codex for you. When Codex finishes a turn, TapNoise plays a short cue in the sound theme you picked, and Tappy on your desktop reacts.

1. Open TapNoise Settings and go to **Agents**.

1. Under **Connect your agents**, click **Connect** next to Codex.

1. Restart Codex if it was already running, so it picks up the change.

Here is what TapNoise does to the file. It puts its own `notify` command at the top of `~/.codex/config.toml`. If you already had a `notify` command, TapNoise keeps it after `--then`, so your command still runs. It backs up the file first to `~/Library/Application Support/TapNoise/Agent hook backups`. **Remove** in the same place takes TapNoise’s entry out again.

The hook passes only three things: the agent’s name, whether it is done, needs you or hit an error, and the app it runs in. It does not pass your prompts or the text Codex wrote.

## What the cue covers

TapNoise’s cues are for three kinds of event: done, needs you, and error. Codex’s notify route is for the end of a turn, so that is the cue you will reliably get from it. I have not confirmed that Codex sends the same signal for every kind of waiting, so do not rely on the cue to tell you about an approval request.

TapNoise also connects Claude Code and Cursor from the same Agents page. For Claude Code, see [how to get a sound when Claude Code finishes](https://tapnoise.com/blog/claude-code-sound-when-done/).

## Things to check

- **Play agent sounds** on the Agents page must be on for any cue to play.

- **Sounds on** in General must be on, or TapNoise stays quiet.

- **Quiet during calls** silences the cue while a call is using your microphone, which is usually what you want.

- **Knock twice to answer** can bring a waiting agent’s window forward. Knocks need an Apple silicon MacBook.

The Agents page is part of the TapNoise license. A one-time purchase is US$14.99 for one Mac or US$20.99 for two, plus tax, with a 7-day money-back guarantee for standard purchases. [Diwali Solo offer orders are final sale](https://tapnoise.com/refunds/#diwali), subject to statutory rights and Dodo buyer terms.

## The short version

If you want to script it, Codex’s `notify` setting will run your program at the end of each turn. If you want a sound without writing anything, connect Codex in TapNoise’s Agents page and restart it. Either way, you stop checking the window every few minutes.

**About the author**

Rudra Satani makes TapNoise. Spotted a mistake? Email [support@tapnoise.com](mailto:support@tapnoise.com?subject=Blog%20correction), or reach out at [@rudraxx13](https://x.com/rudraxx13).

## Related guides

- [**Connect Claude Code, Codex and Cursor**Connect Claude Code, Codex or Cursor in Settings › Agents to hear when they finish or need you. TapNoise backs up each agent's settings first.](https://tapnoise.com/docs/connect-coding-agents/)

## Hear TapNoise on your Mac

Every sound is made by TapNoise itself. Try the sounds on the homepage first, then download the app.

[Download TapNoise](https://tapnoise.com/download/) · [Try the sounds](https://tapnoise.com/#try)

## More from the blog

- [**Agent sounds not working on Mac? Check these layers**Separate audio playback, quiet mode, connection state and agent event delivery before editing hook files or reconnecting every coding tool.](https://tapnoise.com/blog/debug-missing-agent-sounds-mac/)

- [**An agent done sound does not mean the code is correct**Interpret coding-agent completion cues as a signal to review, then check the diff, tests and remaining work before treating a turn as successful.](https://tapnoise.com/blog/agent-done-sound-vs-success/)

- [**Different Terminal sounds for success and failure on Mac**Save a command's exit status, play a distinct local cue for each outcome and return the original status so the notification cannot disguise a failed build.](https://tapnoise.com/blog/terminal-sound-success-failure/)

- [**How to choose agent alert sounds you can recognise**Give completion, permission requests and failures distinct meanings, preview them at a modest level and avoid alerting on every small agent action.](https://tapnoise.com/blog/choose-agent-notification-sound/)

Source: https://tapnoise.com/blog/know-when-codex-is-done/
