tool-defense

tool-defense · by claude-code-templates

A tower defense where every enemy is one of Claude's real tool calls (Bash, Edit, web/MCP, Agent); zero tokens, played above the prompt.

❯ /plugin marketplace add SeongGwangJu/k-mods
❯ /plugin install tool-defense@k-mods

Run /reload-plugins to apply it to an open session. Needs Claude Code 2.1.287 or later.

Notes

  • You build and upgrade towers by clicking (mouse). Pause and restart are also available from the keyboard (space/p/r).
  • Only the high score is kept in $.store (plugin-only storage); nothing else is sent off the device.
  • The README states that 'nothing is drawn in claude -p, the desktop app or mobile' (terminal only, with mouse support).

What it can do on your machine

Mods run unsandboxed with your permissions. These labels come from static analysis.

Can hold/answer tool callsReads conversation
Static analysis

Events handled

command.run{command=defense}session.starttool.callturn.completeturn.startui.messageui.render{component=AbovePrompt}