developer tools2026Featured

TOOLSTORM

Claude Code Arcade Plugin

github.com
TOOLSTORM - Claude Code Arcade Plugin screenshot 1 of 1
01

The challenge

Developers spend minutes at a time watching an AI agent work, with nothing to do that stays connected to what the agent is actually doing.

02

The approach

Built a Claude Code plugin in dependency-free TypeScript on Node.js. Ten async hooks append each tool call to a per-session JSON Lines log; a terminal game in its own split pane tails that log 30 times a second and turns edits into enemies, passing tests into power-ups and failures into hits, while a small state file flows back to drive a live scoreboard row in Claude’s status line.

03

The outcome

A playable arcade shooter fed by real agent activity, with four modes, six bosses, nine power-ups, 30 trophies and seven unlockable ships. It pauses itself whenever Claude needs permission, can never slow the session down, and is published in the Claude Code plugin directory with a 67-test suite running on three operating systems.

System design

How TOOLSTORM is put together

A Claude Code plugin split across two processes, because hooks have no terminal and Claude Code owns the keyboard in its own pane. Hooks only append events to a per-session log; the game runs in a separate split pane that tails the log, and writes a small state file back for the status-line scoreboard.

Claude Code hooks feeding the game
10
trophies, with 7 unlockable ships
30
tests, on Linux, Windows and macOS
67
runtime dependencies
0

01 · Claude Code

client

Claude Code session

client

Status line

optional scoreboard row

02 · Hooks

worker

Hook process

Node.js

async, one per event

03 · Local files

object store

Event log

sessions/<id>.jsonl, 1 MB cap

object store

State file

score, wave, lives

object store

Profile

XP, trophies, boards

04 · Game pane

service

Event tail

reads new lines 30×/s

service

Game engine

waves, bosses, power-ups

service

Terminal renderer

keyboard and mouse input

clientserviceworkerobject store

8 connections

  • Claude Code session→Hook process10 hook events · async
  • Hook process→Event logappend one line
  • Event log→Event tailtail · async
  • Event tail→Game enginegame events
  • Game engine→Terminal renderer
  • Game engine→State filewrite
  • Game engine→Profileend of run
  • State file→Status lineread every 2 s · optional

Request flow · Claude edits a file

  1. 1PostToolUse fires and Claude Code starts the hook in the background; it never waits on it.
  2. 2The hook appends one JSON line naming the tool and file, never contents or command arguments, to the session log.
  3. 3The game pane picks the line up on its next tail and the engine spawns a bug to shoot.
  4. 4Score, wave and lives are written to the state file, which the status-line row reads to show the run inside Claude’s pane.

Design decisions

Hooks are fire-and-forget
Every hook is async and swallows its own errors, so a crashed or missing game can never slow or break the real session.
A file, not a socket
Hooks append whole lines with O_APPEND; the game tails the file and notices truncation. No server, no port, no daemon to keep alive.
Pause on permission
PermissionRequest and Notification hooks pause the run with a banner, so the game never competes with a decision Claude needs from you.
Privacy by omission
Events carry a tool name, a file name, a program name or a web host. Query strings, search terms, file contents and command arguments are never written.

Trade-offs & known limits

  • Each tool call starts a short Node process, about 100 ms of CPU, off Claude’s critical path.
  • Event order between concurrent hooks is not guaranteed; the game treats the log as a stream of independent events.

Have something similar in mind?

I'm open for freelance and contract work — let's talk about what you're building.