Codex starts
The panel drops
You send Codex a prompt and the game panel drops from the notch. It doesn't take your keyboard, so you can keep typing in the terminal.
IdlePal for Codex adds five hooks to ~/.codex/hooks.json, then you trust them once in /hooks. Send Codex a prompt and a game panel from IdlePal, a Mac app with short games and Pip, a desktop pet, drops from your MacBook notch. It flags permission requests and tucks away when Codex stops, is interrupted or ends the session.
Signals from Codex: started, finished and needs you. Nothing else leaves the hook.
Install in Terminal, then trust the hooks in Codex
curl -fsSL https://raw.githubusercontent.com/initiums/idlepal-integrations/main/codex/install.sh | sh/hooksCodex runs a new hook only after you trust it once. Open /hooks and approve the IdlePal entries.
Full setup guideThe installer uses Codex's own hooks file. Codex runs a new hook only after you trust it, so there is one extra step.
Paste the command above into Terminal. It adds five hook groups to ~/.codex/hooks.json and keeps your other hooks.
Open /hooks in Codex and approve the IdlePal entries. Until you do, Codex skips them. Then answer Yes when IdlePal asks "Open when your agent works?".
Send a prompt and the panel drops from the notch without taking your keyboard. It tucks away when Codex stops or you interrupt it.
Every step and file, for when you want the details or something doesn't work.
Install IdlePal from the Mac App Store.
IdlePal is a Mac app. Open this page on your Mac, or send yourself the link.
Run in Terminal.
curl -fsSL https://raw.githubusercontent.com/initiums/idlepal-integrations/main/codex/install.sh | shTrust the hooks in Codex.
/hooksThat's it.
Codex runs a new hook only after you trust it once. Open /hooks and approve the IdlePal entries.
Each Codex event runs open -g "idlepal://…" on your Mac with one signal and a session ID. Nothing goes over the network, and the hook never reads your prompts, code or output.
| Codex event | IdlePal hears | What happens |
|---|---|---|
UserPromptSubmit | started | You sent Codex a prompt. The panel drops from the notch without taking your keyboard. |
PermissionRequest | needs you | Codex wants approval to run something. If the panel is open, an orange banner appears. It never opens the panel just for this. |
Stop | finished | Codex finished its turn. If you never clicked the panel, it closes. |
Interrupt | finished | You stopped Codex mid-run, so the session doesn't stay marked as working. |
SessionEnd | finished | The Codex session ended. |
~/.codex/hooks.json~/.codex/hooks.json.bak-idlepal~/.codex/hooks/idlepal-signal.shCodex hooks are new, and their format has changed before. If a Codex update stops Pip waking up, run the install command again: it replaces the IdlePal entries in place.
Codex is the one agent where IdlePal hears interrupts. Stop a run and the Interrupt hook sends finished straight away, so Pip doesn't sit awake waiting for a Stop that never comes. Each Codex session sends its own session_id, so two terminals count as two agents and the panel stays down until the last one is done.
curl -fsSL https://raw.githubusercontent.com/initiums/idlepal-integrations/main/codex/install.sh | sh -s uninstallIdlePal keeps working without it: press ⌥⌘G or click the menu bar icon and Pip is there.
Five Codex events become three signals. Here is what each one does on your Mac.
Codex starts
You send Codex a prompt and the game panel drops from the notch. It doesn't take your keyboard, so you can keep typing in the terminal.
Codex asks permission
Codex wants approval to run something. If the panel is open, an orange banner appears. It never opens the panel just for this.
Codex stops or you interrupt it
A finished turn, an interrupt or the end of the session all send finished. If you never clicked the panel, it closes.
The minutes between sending a prompt and reading the result.

Codex works through a big task. Play a round instead of watching the terminal scroll.

Codex stops to ask before running a command. The orange banner tells you to go back to the terminal.

Interrupt Codex and the panel tucks away straight away, instead of waiting for a Stop that never comes.

Each Codex session counts on its own, so the panel stays down until the last one is done.
The hook reads Codex's input only to find the session_id, runs one command on your Mac and exits.
Codex can already notify you in the terminal with tui.notifications. Here is how that compares with the IdlePal hooks.
| tui.notifications | IdlePal hooks | |
|---|---|---|
| Setup | A setting in config.toml | One install command, then trust in /hooks |
| Fires on | Event types such as agent-turn-complete and approval-requested | Prompt sent, permission request, stop, interrupt and session end |
| What you get | A terminal notification (OSC 9 or the bell) | A game panel, Pip and a banner |
| Trust step | None, it's a setting | Approve the IdlePal entries in /hooks once |
| Use both? | Yes | Yes. The installer only touches the hooks folder and hooks.json, never config.toml. |
IdlePal sits in your menu bar or MacBook notch. The hooks are only the trigger: the games, Pip and the banners are all in the app, and they work without an agent too.
Codex doesn't run a new hook until you approve it. Open /hooks in Codex once after installing and approve the IdlePal entries. Until you do, Codex skips them and Pip stays asleep.
Yes, if the panel is open. Codex's PermissionRequest hook sends needs you, and IdlePal shows an orange banner. If the panel is closed, IdlePal leaves it closed.
The Interrupt hook sends finished right away, so the panel tucks away (or shows a banner if you were playing) instead of waiting for the next prompt.
No. The hook reads Codex's input only to find the session_id, then runs open -g on your Mac. Nothing is sent over the network, and IdlePal never sees prompts, files or output.
Codex hooks are new and their format has changed before. Run the install command again: it replaces the IdlePal entries in place. If /hooks lists them for review again, trust them once more.
Yes. The installer is free and open source, in the initiums/idlepal-integrations repository on GitHub. IdlePal itself is free with five games, and the unlock opens all ten.
A small plugin with five hooks, installed with two commands.
One install command adds two hooks to ~/.cursor/hooks.json.
Where Codex hooks live, the events, and a sound when done.
Twelve causes, from trust in /hooks to the Stop hook's JSON output.
Five games are free for good. One $9.99 unlock opens the rest, plus every game we add later.
IdlePal is a Mac app. Open this page on your Mac, or send yourself the link.
macOS 14 or later. No subscription, no account.
Last updated .