Skip to main content

Play games while Claude thinks — a collection of terminal mini-games that hook into Claude Code

Project description

claude-arcade

Play mini-games in your terminal while Claude thinks.

Hooks into Claude Code so a game launches automatically every time Claude runs a tool — and disappears the moment it's done. Your terminal is fully restored, nothing is lost.

Install

pipx install claude-arcade

pipx is recommended so the package gets its own isolated environment.
Plain pip install claude-arcade works too.

Quick start

# 1. One-time setup — writes hooks into ~/.claude/settings.json
claude-arcade setup

# 2. Use Claude Code as normal
claude

# The bird game now appears automatically whenever Claude uses a tool.
# It disappears and restores your terminal when Claude is done.

Play manually

claude-arcade play        # Bird Hunt (default)
claude-arcade play bird   # same thing

Bird Hunt controls

Key Action
Arrow keys / WASD Move crosshair
SPACE Shoot
Q Quit

Birds fly across the screen at different speeds and are worth different points:

Bird Points Speed
>-> 3 Fast
>~~> 1 Normal
>°~°> 2 Slow

Remove hooks

claude-arcade unsetup

How it works

claude-arcade setup adds three hooks to ~/.claude/settings.json:

  • PreToolUseclaude-arcade start — forks a background process that takes over the terminal alternate screen buffer and runs the game.
  • PostToolUse + Stopclaude-arcade stop — signals the game to exit and restores your terminal exactly as you left it.

Because the game runs on the alternate screen buffer, all of Claude's output is preserved underneath.

Requirements

  • macOS or Linux
  • Python 3.9+
  • Claude Code CLI

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_arcade-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_arcade-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file claude_arcade-0.1.0.tar.gz.

File metadata

  • Download URL: claude_arcade-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for claude_arcade-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ed7b199644debf0d2a85694e822e3cae5a2adb06b9d8b5c0ebb61d9e5cb10e1
MD5 4416bb12a12a4a8a7b26d5e7a4beaea1
BLAKE2b-256 7663301f8ef6f635fad12619521c0d146eb88c5675958ca1cb240c5f38b38c87

See more details on using hashes here.

File details

Details for the file claude_arcade-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: claude_arcade-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for claude_arcade-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb610cf9f64316a6cf54dd27b3574d9c63d39fed70ea418bf0121e3d047552c5
MD5 9c2962f9eb35dad74d82b6dc08e591d9
BLAKE2b-256 f3b34cefbb6371a969427ec4925ef9d4521a4ee8a634a9d77e1302d5378d4674

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page