The friction of asynchronous AI coding is getting a playful patch. A developer identified as focks has released 'Play,' a lightweight modification for Claude Code that embeds eight retro games directly into the terminal interface. Designed to alleviate the 'stare at the screen' syndrome common when waiting for LLMs to process complex refactors or generate boilerplate, the mod allows users to type commands like /play tetris or /play 2048 to spawn a playable pane beside their active chat session. The release, hosted on GitHub under an MIT license, requires Claude Code version 2.1.333 or newer and is installed via the skills CLI.

Technical Implementation and Game Variants

The mod is not merely a distraction; it is a technically integrated skill that leverages the Claude Code engine’s hook system. The package includes eight distinct titles: 2048, Tetris, Snake, Sudoku, Bounce, Pong, Tic-Tac-Toe, and Tic-Tac-Go. Each game is optimized for terminal rendering, using square cells that scale with the pane and maintaining high performance by pausing when the window loses focus. Persistence is handled locally, with best scores and game states saved across sessions without requiring external databases. The installation process is streamlined for both global and project-specific scopes, though users must restart their Claude Code session to load the new commands.

AI-Assisted Gameplay and Privacy

One standout feature is the integration of the LLM itself into the gameplay loop. In the 2048 module, users can press a hint button to ask Claude for the optimal next move. The system sends only the current board state and legal moves to the model, ensuring that no other session context or sensitive code is exposed. This request utilizes the user's existing Sonnet model access, counting toward their usage limits. If the model fails to respond, the game defaults to a local two-ply expectimax search, ensuring the game remains playable even if network latency spikes. The privacy model is strict: the mod runs with minimal permissions, reading and writing only its own state files and spawning no background processes.

Key Takeaways

  • The mod requires Claude Code v2.1.333+ due to specific key event handling requirements for arrow keys.
  • Installation is handled via npx skills add focks/playmod -g -a claude-code, making it accessible to any user with the skills CLI.
  • Privacy is prioritized: only board state is sent to Claude for hints, and no other session data leaves the local machine.
  • The suite includes a custom push-puzzle game, 'Tic-Tac-Go,' inspired by Google's daily challenge but with 12 original, solver-verified levels.

The Bottom Line

While seemingly trivial, 'Play' represents a mature shift in how we interact with agentic coding tools. By acknowledging that wait times are an unavoidable part of the LLM workflow, this mod turns idle friction into engagement. It’s a clever, low-overhead solution that respects both the developer's time and their data privacy.

Developer Perspective

For the builder community, this release serves as a proof-of-concept for how extensible the Claude Code ecosystem is becoming. The repository includes comprehensive documentation for AI agents, such as llms.txt and AGENTS.md, allowing other agents to autonomously install and configure the mod. This meta-layer of automation—where an AI installs a game for a human to play while another AI works—highlights the increasingly recursive nature of modern dev tooling. The codebase is TypeScript-based, with clear separation of concerns for hooks, layout, and game logic, making it a viable template for other terminal-based integrations.