Diff Invaders
Space Invaders above the Claude Code prompt where every wave is the code Claude just wrote: each line an Edit or Write added becomes a row of the formation and every two characters one alien, so you shoot your own diff. Ship, one shot at a time, bombs, three lives, best score. Zero tokens. Needs an interactive terminal.
Before you use this component
This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.
Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.
Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.
- Source publisher
- Claude Code Templates
- Creator supplied by source
- claude-code-templates
- Pinned source version
- a344359459263d73d8948651c789244093c02e4e
- License evidence
- cli-tool/components/mods/games/diff-invaders/LICENSE
Source preview
cli-tool/components/mods/games/diff-invaders/README.md
# diff-invaders Space Invaders above the Claude Code prompt where every wave is the code Claude just wrote: each line an Edit or Write added becomes a row of the formation and every two characters one alien, so you shoot your own diff. Ship, one shot at a time, bombs, three lives, best score. Zero tokens: the mod answers every key and click itself and never asks the model anything. ## Play 1. `/diff-invaders` opens the board above the prompt (`/diff-invaders stop` or the `close` button closes it). 2. **Click the board** to give it the keyboard; **Esc** gives the keyboard back to the prompt. 3. ← → or `a` `d` move the ship, Space, ↑ or a click fires (one shot in the air at a time), `p` pauses, `r` shoots a demo wave. 4. An alien is 10 points, a cleared wave 50. A bomb on the ship costs a life; a formation that lands ends the game. The waves come from Claude: every `Edit` or `Write` that goes through is read after it runs, its added lines (up to six) become the rows of the next formation, and every two characters of a line become one alien, spelled with those characters. Waves queue up while you clear the current one, so a long refactor is a long fight. `r` plays a built-in wave while Claude has not written anything yet. Your best score is kept in the plugin's store across sessions. ## Install ```sh npx claude-code-templates@latest --mod games/diff-invaders claude ``` It is written to `.claude/skills/diff-invaders/`, which Claude Code auto-loads as `diff-invaders@skills-dir`. For one session with hot reload: `claude --plugin-dir .claude/skills/diff-invaders`. `claude plugin validate .claude/skills/diff-invaders` prints every event it hooks and every `$` call it makes. ## How it is built `hooks/register.tsx` is the hooks module: it registers `/diff-invaders`, mounts the board on the `AbovePrompt` band and keeps the score in `$.store`. `hooks/games/*.ts` is the game's logic, pure functions with no drawing, and `hooks/boards/*.tsx` is the surface module that draws it in two-character cells on the drawing thread and takes the keys and the mouse. Written for aitmpl.com against Anthropic's published function-hooks declarations. ## Requirements - Claude Code 2.1.287 or later (mods are on by default from that version). - An interactive terminal that reports the mouse. Nothing draws in `claude -p`, the desktop app or mobile. - A terminal font with box-drawing and block characters. A clone of the genre, not affiliated with or endorsed by the original publisher.
Preview capped at 60,000 characters. Download the bundle for every original file and notice.
Read the redistribution license
MIT License Copyright (c) 2026 claude-code-templates contributors (aitmpl.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Bundle SHA-256: 694de0391c9c4ebb6fe06636a24cb6912015e725ee9bed87bcaac0a2eec4c384. Files are served as downloads and are never executed by this page.