macOS desktop notification helper for Codex CLI's notify hook. It pops a native notification, plays a sound, and appends the received payload to payload-log.jsonl so you can inspect events later.
- Parses the JSON passed in via
argv[2], using thetypefield to build the notification title/body - Leverages
osascriptto raise a system notification and plays/System/Library/Sounds/Glass.aiff - Appends every payload to
payload-log.jsonl(JSON Lines) for debugging
- macOS (requires
osascriptand the system sound path) - Node.js ≥ 24 (relies on the built-in TypeScript execution support)
pnpm(recommended for consistent installs using the provided lockfile)
git clone https://github.com/heydong1/codex-notify.git ~/codex-notify
cd ~/codex-notify
pnpm install- Decide the script path, e.g.
~/codex-notify/notify.tsor/Users/<your-username>/codex-notify/notify.ts - Update the Codex config:
notify = ["node", "/Users/<your-username>/codex-notify/notify.ts"]
- Restart Codex; every event will now trigger a notification, sound, and payload logging
Payloads are appended to payload-log.jsonl in the repo root for auditing.
MIT License — see LICENSE for details.