waiting-game
v1.0.2
Published
Local server that hooks into Claude Code lifecycle events
Readme
Waiting Game - Local Server
A local server that hooks into Claude Code lifecycle events to create an interactive gaming experience.
Quick Start
Setup (one time):
npx waiting-game setupStart playing:
npx waiting-game start
Commands
npx waiting-game setup- Install Claude Code hooks (doesn't start anything)npx waiting-game start- Start server and launch gamenpx waiting-game status- Check if hooks are installednpx waiting-game uninstall- Remove hooks
How it Works
- Setup installs hooks into your Claude Code configuration (
~/.claude/settings.json) - Start launches a local server on port 3001 and opens the game
- Claude Code hooks automatically notify the server when tools run
- The game polls the server to know Claude's status and pauses/resumes accordingly
API Endpoints
GET /status- Get current Claude statusGET /health- Health checkPOST /hooks/tool-start- Called by Claude hooks when tool startsPOST /hooks/tool-complete- Called by Claude hooks when tool completesPOST /hooks/session-end- Called by Claude hooks when session ends
States
idle- Claude is not workingworking- Claude is actively workingtool-executing- Claude is running a specific tool
Troubleshooting
- Make sure you have Node.js 16+ installed
- Check that Claude Code is properly configured
- The game expects to run on localhost:5173 (default Vite port)
- Hooks require curl to be available in your PATH
