@cobanalitalha/claude-dino
v3.0.2
Published
Play a dino game while Claude Code is thinking
Maintainers
Readme
claude-dino
Play a terminal dino game while Claude Code is thinking.
claude-dino hooks into Claude Code and launches a playable dino game at the bottom of your terminal whenever Claude is working. Jump over cacti to pass the time — the game stops automatically when Claude finishes.
Gameplay
Score: 0042 SPACE to jump
|
O |
/|\ ^
/ \
────────────────────────────────────────────────────────────- Press SPACE or ENTER to jump
- Cacti spawn from the right and move left
- Speed increases as your score grows
- Game over? No worries — Claude keeps working
How it works
- When Claude starts using a tool (
PreToolUse), the game launches in the background - It draws directly to your terminal via
/dev/tty, so it never interferes with Claude's output - The terminal is restored cleanly when Claude finishes (
Stophook) - If the hook's stdin is piped (non-TTY), the real terminal device is resolved by walking up the process tree
Installation
npm install -g @cobanalitalha/claude-dino
claude-dino installThen restart Claude Code. That's it.
claude-dino install adds two hooks to ~/.claude/settings.json:
| Hook | Command | Effect |
|------|---------|--------|
| PreToolUse | claude-dino start | Launches the game when Claude begins working |
| Stop | claude-dino stop | Stops the game when Claude finishes |
Requirements
- Node.js 18 or later
- macOS or Linux (requires
/dev/ttyaccess) - Claude Code CLI
Commands
claude-dino install # Add hooks to ~/.claude/settings.json
claude-dino uninstall # Remove hooks from ~/.claude/settings.json
claude-dino start # Launch the game manually
claude-dino stop # Stop the game
claude-dino status # Show whether the game is runningUninstall
claude-dino uninstall
npm uninstall -g @cobanalitalha/claude-dinoLicense
MIT
