Codex Extension: Play sound when work is done

Codex Done Sound – Get Notified When Codex Is Done

If you use OpenAI Codex in Visual Studio Code, you probably know how boring it can be to sit around waiting for it to finish a task. Especially when working on larger projects where a single task can take several minutes.

I wanted a simple solution to this, so I had Claude create a small VS Code extension called Codex Done Sound.

It does pretty much what the name suggests. It plays a sound when Codex finishes a task. You can do something else while Codex is working instead of constantly checking if it’s done.

The extension comes with a built-in sound, but you can also use your own WAV file.

It’s tiny and only does what it’s supposed to do. No unnecessary features or complicated settings.

You can download it here: Codex Done Sound.

How to Install Codex Done Sound

  1. Download the Codex Done Sound ZIP and extract the VSIX file.
  2. Open Visual Studio Code.
  3. Press Ctrl + Shift + X to open Extensions.
  4. Click the three dots at the top of the Extensions panel.
  5. Select Install from VSIX…
  6. Select the downloaded VSIX file.
  7. Click Install Hook when prompted.

Next, open PowerShell or the terminal in VS Code and enter:

codex

Once Codex has started, enter:

/hooks

Find the Codex Done Sound Stop hook and select Trust.

Restart Visual Studio Code, and you should be good to go.

What If the Codex Command Is Not Recognized?

If you’re using Codex through the VS Code extension, you might not have the standalone Codex CLI installed. This was the case on my computer.

You might get an error like this:

The term 'codex' is not recognized as the name of a cmdlet, function, script file, or operable program.

To fix this, open PowerShell and run:

npm install -g @openai/codex

You need to have Node.js and npm installed. If you don’t have them, you can download Node.js from nodejs.org.

Once the installation is complete, run codex again, sign in if needed, enter /hooks and trust the Stop hook.

You don’t need to keep the Codex CLI running afterward. Just continue using Codex in VS Code as usual.

How to Test the Sound

Press Ctrl + Shift + P in VS Code and search for:

Codex Done Sound: Test Sound

If you hear a sound, the audio playback is working. Give Codex a small task to check that the sound also plays when it finishes.

How to Use Your Own Sound

Open the VS Code settings and search for:

codexDoneSound.soundFile

Enter the full path to your own WAV file. Leave the setting empty if you prefer the built-in sound.

How to Uninstall Codex Done Sound

Before uninstalling the extension, open the Command Palette with Ctrl + Shift + P and run:

Codex Done Sound: Remove Hook

You can then uninstall it like any other VS Code extension.

Is It Safe?

I also had ChatGPT review the source code and the VSIX file before installing it. No malicious code or suspicious network activity was found.

The extension works locally, has no external npm dependencies and uses Codex’s own Stop hook to trigger the sound.

It’s a tiny extension that solves a tiny but rather annoying problem.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.