Free plugin · open source

IdlePal for Claude Code

IdlePal for Claude Code is a small plugin that connects Claude Code to IdlePal, a Mac app with short games and Pip, a desktop pet. Send Claude a prompt and a game panel drops from your MacBook notch. When Claude needs you, a banner says so. When Claude stops, the panel tucks away.

Signals from Claude Code: started, finished and needs you. Nothing else leaves the hook.

Install it with two commands in Terminal

claude plugin marketplace add initiums/idlepal-integrations
claude plugin install idlepal@idlepal

Start a new Claude Code session. Hooks load when a session starts, so the next prompt you send wakes Pip up.

Full setup guide
How it works

How IdlePal connects to Claude Code

The plugin uses Claude Code's own hooks. Setup takes about a minute.

  1. Install the plugin

    Add the IdlePal marketplace and install the plugin with the two commands above. Then start a new Claude Code session, because hooks load when a session starts.

  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 Claude works

    Send a prompt and the panel drops from the notch without taking your keyboard. Pop some bubble wrap until Claude is done.

Setup guide

Set up IdlePal for Claude Code

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. Add the plugin marketplace.

    claude plugin marketplace add initiums/idlepal-integrations
  3. Install the plugin.

    claude plugin install idlepal@idlepal
  4. That's it.

    Start a new Claude Code session. Hooks load when a session starts, so the next prompt you send wakes Pip up.

The five Claude Code hooks IdlePal uses

Each Claude Code 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.

Claude Code hook events and the signal IdlePal receives for each
Claude Code eventIdlePal hearsWhat happens
UserPromptSubmitstartedYou sent Claude a prompt. The panel drops from the notch without taking your keyboard.
PostToolUseworkingClaude used a tool and is still going, for example after you approved a permission prompt. Sent in the background, it clears the orange banner and keeps a long run from looking stuck.
StopfinishedClaude finished its reply. If you never clicked the panel, it closes. If you did, a green banner says Claude Code finished.
SessionEndfinishedThe session ended, for example after /exit, so a closed terminal doesn't stay marked as working.
Notification (permission prompt, question, needs input)needs youClaude is waiting on you. If the panel is open, an orange banner appears. It never opens the panel just for this.

What the plugin installs

hooks/hooks.json
Inside the plugin folder. Registers the five hooks above with a 5 second timeout (2 seconds for SessionEnd). PostToolUse runs in the background, so it never holds Claude up.
hooks/idlepal-signal.sh
A short shell script. It reads the hook's input only to find the session_id, runs open -g "idlepal://…" and always exits 0.
Nothing else
No settings file is edited. Claude Code manages the plugin like any other, so updates and removal go through the plugin commands.

Several Claude Code sessions at once

Every Claude Code session has its own session_id, and the hook passes it along. Two terminals running Claude Code count as two agents: the panel stays down until the last one sends Stop. If you interrupt Claude and no Stop event arrives, IdlePal treats that session as working for up to 2 hours, or until it finishes or ends.

Remove the plugin

claude plugin uninstall idlepal@idlepal

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

If Pip doesn't wake up for Claude Code

  • Open IdlePal's Settings → AI agents. If Claude Code says "Not connected yet", no hook has fired: start a new Claude Code session and send a prompt.
  • Run /plugin inside Claude Code and check that idlepal is installed and enabled. /hooks lists the five IdlePal hooks if the plugin loaded.
  • 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 looks stuck awake after an interrupted run: send another prompt and let it finish, or type /exit to send SessionEnd.
  • Claude Code running on another machine over SSH can't reach the app on your Mac, because open runs on that machine.
Signals

What does Pip do when Claude Code starts, waits or stops?

Claude Code sends IdlePal three signals. Here is what each one does on your Mac.

Claude starts

The panel drops

You send a prompt and the game panel drops from the notch. It doesn't take your keyboard, so you can keep typing in the terminal.

Claude needs you

An orange banner

A permission prompt, a question or a request for input. If the panel is open, an orange banner appears. It never opens the panel just for this.

Claude finishes

The panel tucks away

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

When it helps

When Pip helps during a Claude Code run

The minutes between sending a prompt and reading the reply.

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

A long run

Claude works through a big change. Play a round instead of watching the terminal scroll.

Pip pointing at an orange banner on a laptop screen, an illustration of IdlePal's desktop pet

A permission prompt mid-game

Claude stops to ask before running something. The orange banner tells you to go back to the terminal.

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

The reply lands

Claude stops and 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

Two sessions at once

Each session counts on its own, so the panel stays down until the last one finishes.

Privacy

What the Claude Code hooks send, and what they don't

The hook reads its input only to find the session_id, runs one command on your Mac and exits.

What IdlePal gets

  • One signal: started, working, finished or needs you
  • The Claude Code session_id, so several sessions count separately
  • Delivered on your Mac with open -g, never over the network

What it never sees

  • Your prompts
  • Your code and files
  • Claude's replies and tool output
  • Anything at all from a remote machine over SSH
Compared

Built-in alerts or IdlePal?

Claude Code already sends a desktop notification in some terminals. Here is how that compares with the IdlePal plugin.

Claude Code's built-in notificationIdlePal plugin
SetupNone in Ghostty or Kitty, one setting in iTerm2Install the app and the plugin
Fires onDone or needs you, when you appear to be awayStarted, finished and needs you
What you getA macOS notificationA game panel, Pip and a banner
Works inGhostty, Kitty and iTerm2, also over SSHAny terminal on your Mac, not over SSH
Use both?Yes. Hooks run alongside the built-in notification.Yes. It doesn't turn the notification off.
IdlePal for Mac

The games live on your Mac

IdlePal sits in your menu bar or MacBook notch. The plugin is 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 Claude Code

Does the IdlePal plugin for Claude Code read my prompts or code?

No. The hook reads its JSON input only to pull out the session_id. It never looks at your prompt, your files or Claude's output, and it sends nothing over the network: it runs open -g on your Mac and exits.

Can the IdlePal hook slow down or block Claude Code?

No. The script runs one command and always exits 0, so it can't fail or block a prompt. Claude Code gives it at most 5 seconds, and in practice it returns right away.

Will IdlePal pop up when Claude Code asks for permission?

Only as a banner. If the panel is already open, an orange banner says Claude Code needs your input. If the panel is closed, IdlePal leaves it closed so the prompt in your terminal is the only thing asking for attention.

Does IdlePal work with several Claude Code sessions at once?

Yes. Each session sends its own session_id, so IdlePal counts them separately and keeps the panel down until the last Claude Code session finishes.

Does IdlePal work with Claude Code over SSH?

No. The hook runs open on the machine where Claude Code runs. On a remote machine that open can't reach the IdlePal app on your Mac. Press ⌥⌘G to open the panel by hand instead.

Is the IdlePal plugin for Claude Code free?

Yes. The plugin 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 .