Free installer · open source

IdlePal for Cursor

IdlePal for Cursor adds two hooks to ~/.cursor/hooks.json with one install command. Send Cursor's agent a prompt and a game panel from IdlePal, a Mac app with short games and Pip, a desktop pet, drops from your MacBook notch. When the agent stops, the panel tucks away.

Signals from Cursor: started and finished. Nothing else leaves the hook.

Install it with one command in Terminal

curl -fsSL https://raw.githubusercontent.com/initiums/idlepal-integrations/main/cursor/install.sh | sh

It adds two hooks to ~/.cursor/hooks.json and keeps your other hooks. Quit Cursor with ⌘Q and open it again so it loads them.

Full setup guide
How it works

How IdlePal connects to Cursor

The installer uses Cursor's own hooks file in your home folder. Setup takes about a minute.

  1. Run the installer

    Paste the command above into Terminal. It adds two hooks and keeps your other ones. Then quit Cursor with ⌘Q and open it again so it loads them.

  2. Say yes in IdlePal

    Once the first hook fires, IdlePal asks "Open when your agent works?". Answer Yes. You can change it later in Settings → AI agents.

  3. Play while the agent works

    Send Cursor's agent a prompt and the panel drops from the notch. When the run ends, it tucks away again.

Setup guide

Set up IdlePal for Cursor

Every step and file, for when you want the details or something doesn't work.

  1. Install IdlePal from the Mac App Store.

    Download on the Mac App Store

    IdlePal is a Mac app. Open this page on your Mac, or send yourself the link.

  2. Run in Terminal.

    curl -fsSL https://raw.githubusercontent.com/initiums/idlepal-integrations/main/cursor/install.sh | sh
  3. That's it.

    It adds two hooks to ~/.cursor/hooks.json and keeps your other hooks. Quit Cursor with ⌘Q and open it again so it loads them.

What Cursor tells IdlePal, and what it doesn't

Each Cursor event runs open -g "idlepal://…" on your Mac with one signal and a conversation ID. Nothing goes over the network, and the hook never reads your prompts, code or output.

Cursor hook events and the signal IdlePal receives for each
Cursor eventIdlePal hearsWhat happens
beforeSubmitPromptstartedYou sent the agent a prompt. IdlePal's hook answers {"continue": true}, so your prompt always goes through.
stopfinishedThe agent's run ended. If you never clicked the panel, it closes. If you did, a green banner says Cursor finished.

Cursor has no needs-you signal in IdlePal. When the agent stops to ask you to approve a command, Pip stays awake and the panel stays where it is. Keep an eye on Cursor for approvals.

Where the install script writes

~/.cursor/hooks.json
Two entries are added, one for beforeSubmitPrompt and one for stop. Every other hook in the file is kept. Running the installer again replaces the IdlePal entries instead of adding duplicates.
~/.cursor/hooks.json.bak-idlepal
A copy of your file from before the change, written on every install and uninstall.
~/.cursor/hooks/idlepal-signal.sh
The script the hooks run. It reads only the conversation_id from Cursor's hook input, runs open -g "idlepal://…" and always exits 0.

If ~/.cursor/hooks.json isn't valid JSON, the installer stops and leaves it unchanged. Fix the file, then run the command again.

Several Cursor windows and chats

The hook passes Cursor's conversation_id, so each agent chat counts as its own session, whether it's a second chat in one window or another Cursor window. The panel stays down until the last one stops. The hooks live in your home folder, so they apply to every project you open in Cursor.

Remove IdlePal from Cursor

curl -fsSL https://raw.githubusercontent.com/initiums/idlepal-integrations/main/cursor/install.sh | sh -s uninstall

IdlePal keeps working without it: press ⌥⌘G or click the menu bar icon and Pip is there.

Troubleshooting Pip in Cursor

  • Open IdlePal's Settings → AI agents. If Cursor says "Not connected yet", no hook has fired: quit Cursor with ⌘Q, open it again and send the agent a prompt.
  • Open ~/.cursor/hooks.json and check for two lines that mention idlepal-signal.sh. If they're missing, run the install command again.
  • In IdlePal, check Settings → AI agents → "Open when an agent starts" is on. It stays off until you answer yes to "Open when your agent works?".
  • Pip wakes for prompts you send to Cursor's agent chat.
  • Cursor connected to a remote machine over SSH runs the hook there, where it can't reach the app on your Mac.
Signals

What does Pip do when Cursor's agent starts or stops?

Cursor's hooks give IdlePal two signals. Here is what each one does, and the one thing it can't tell you.

The agent starts

The panel drops

You send the agent a prompt and the game panel drops from the notch. IdlePal's hook answers {"continue": true}, so your prompt always goes through.

The agent needs approval

No signal

Cursor has no needs-you signal in IdlePal. When the agent waits for you to approve a command, Pip stays awake and the panel stays where it is. Keep an eye on Cursor.

The agent stops

The panel tucks away

If you never clicked the panel, it closes. If you were playing, a green banner says Cursor finished, and your game waits where you left it.

When it helps

When Pip helps during a Cursor agent run

The minutes between sending a prompt and reviewing the changes.

Pip hanging from the top of a laptop screen above a small game panel, an illustration of IdlePal's desktop pet

Sending a prompt

The panel drops from the notch the moment you hand the agent a task.

Pip playing a small game next to a laptop while a terminal runs, an illustration of IdlePal's desktop pet

A long run

The agent edits file after file. Play a round instead of watching the diff grow.

Pip celebrating next to a laptop with a green check on screen, an illustration of IdlePal's desktop pet

The run ends

The panel tucks away, or shows a green banner if you were mid-game.

Pip sitting between two laptops, each running a terminal, an illustration of IdlePal's desktop pet

Several chats at once

Each agent chat counts on its own, so the panel stays down until the last one stops.

Privacy

What the Cursor hooks send, and what they don't

The hook reads Cursor's input only to find the conversation_id, runs one command on your Mac and exits.

What IdlePal gets

  • One signal: started or finished
  • Cursor's conversation_id, so several chats count separately
  • Delivered on your Mac with open -g, never over the network

What it never sees

  • Your prompts
  • Your code and files
  • The agent's answers
  • Anything at all from a remote machine over SSH
Compared

Cursor, Claude Code or Codex: what Pip hears

Each agent's hooks give IdlePal different signals. Cursor gives the fewest.

CursorClaude CodeCodex
InstallOne commandTwo plugin commandsOne command, then trust in /hooks
StartedYesYesYes
FinishedYesYesYes
Needs youNoYesYes
Hears interruptsNoNoYes
Hooks live in~/.cursor/hooks.jsonThe plugin's hooks/hooks.json~/.codex/hooks.json
IdlePal for Mac

The games live on your Mac

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.

Download on the Mac App Store

IdlePal is a Mac app. Open this page on your Mac, or send yourself the link.

See all 10 games
  • Five free games: Bubble Wrap, Balloon Pop, Fidget Toys, Double Dough and Pip's Garden
  • Ten games with the unlock
  • Open it any time with ⌥⌘G or the menu bar icon
  • No account, no ads, no data collected. macOS 14 or later

Questions about Pip and Cursor

Does IdlePal tell me when Cursor needs my approval?

No. IdlePal listens to Cursor's beforeSubmitPrompt and stop hooks only, so it hears started and finished. When Cursor's agent waits for you to approve a command, you'll see that in Cursor, not in the notch.

Will the IdlePal installer overwrite my Cursor hooks.json?

No. It adds two entries and keeps every other hook. Before each change it saves a copy as ~/.cursor/hooks.json.bak-idlepal, and if the file isn't valid JSON it leaves it alone.

Does IdlePal work with several Cursor windows?

Yes. Each agent chat has its own conversation_id, so IdlePal tracks them separately and keeps the panel down until the last Cursor agent stops.

Does IdlePal read my code in Cursor?

No. The hook reads Cursor's input only to find the conversation_id, then runs open -g on your Mac. Your prompts, files and the agent's answers never reach IdlePal.

Do the IdlePal hooks work in every Cursor project?

Yes. The hooks live in ~/.cursor/hooks.json in your home folder, so they apply to every project you open in Cursor.

Is the IdlePal installer for Cursor free?

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.

Pip is waiting in the Mac App Store.

Five games are free for good. One $9.99 unlock opens the rest, plus every game we add later.

Download on the Mac App Store

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 .