cc-arcade
Games above the Claude Code prompt, for the minutes Claude spends working.
Run /arcade, pick a game, and play it right above the prompt while Claude works on your request. When Claude finishes the turn, the game pauses and its status line says so, so you never miss a reply. A pet grows alongside, fed by the tests Claude passes, the commits it makes and the files it edits. Playing costs no tokens: the plugin answers every click and command itself, without asking the model.


Nine games and a pet: snake, Tetris, and Doom — a first-person corridor shooter raycast into half blocks, with four floors, three monsters and three weapons — plus 2048, Minesweeper, Flappy, Pong against the computer, a typing test and Space Invaders. Each board has one status line underneath with the score, the controls that matter now and your best score.
The plugin is built on Claude Code function hooks: TypeScript that runs inside Claude Code's own process, instead of shell-command hooks. They are in early access, so they need the environment variable the quick start sets, and the API can change between Claude Code releases.
Requirements
- Claude Code 2.1.269 or later, the first build whose function hooks draw above the prompt, with
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 set. The quick start shows where.
- An interactive terminal session. Nothing draws in
claude -p, the desktop app or mobile.
- A terminal that reports the mouse. One click is what gives a board the keyboard, and the picker buttons, doom, Minesweeper, Flappy, Pong and Space Invaders use the mouse too.
- A terminal font with box-drawing and block characters. Modern terminals are fine; the old Windows console draws them as boxes.
Quick start
-
Turn function hooks on. Add this to ~/.claude/settings.json (create the file if it does not exist, or merge the env key into what is there). Without it the plugin installs fine but does nothing.
{
"env": {
"CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1"
}
}
This also loads the hooks module of any other installed plugin that ships one. For a single session instead, prefix the command: CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude.
-
Install from GitHub. The repo is its own marketplace:
claude plugin marketplace add sezaakgun/cc-arcade
claude plugin install cc-arcade@cc-arcade
-
Start claude and run /arcade. A row of buttons appears above the prompt: one per game, plus pet, random, auto and close.

-
Click snake. The board appears in place of the buttons.
-
Click the board, then press an arrow key. The click gives the game the keyboard; until then your keys go to the prompt.

-
Press Esc to give the keyboard back to the prompt. Click ← games above the board to go back to the list, or close to close the arcade.
If /arcade is an unknown command, see Troubleshooting.
To remove it:
claude plugin uninstall cc-arcade
claude plugin marketplace remove cc-arcade
To try it without installing, or to hack on it, clone and load it for one session:
git clone https://github.com/sezaakgun/cc-arcade
cd cc-arcade
claude --plugin-dir .
The repo's own .claude/settings.json sets the variable for sessions started inside the folder, which also loads any other installed plugin's hooks module there.
Use
- Pick a game: run
/arcade and click one, or name it directly: /arcade tetris.
- Let it choose:
/arcade random starts any game except the pet and the one you just played. /arcade auto picks one for the moment; see Auto.
- See the games and your best scores:
/arcade list.
- Back to the list: click
← games above the board. The picker comes back and the game you left stops.
- Switch games: pick another from the list, or run
/arcade <game>. One game is open at a time.
- Close: click
close above the board or in the picker, or run /arcade stop.
- Colour-blind mode:
/arcade colorblind toggles a palette and pattern for doom that does not lean on red against green, and remembers the setting. See Doom.
Every form of /arcade runs straight away, even while Claude is working.
Games
WASD mirrors the arrows in every game that uses them, except doom, where A and D strafe and the arrows turn.