Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By davila7v0.1.0MITIn 1 marketplace
A tower defense above the Claude Code prompt where every enemy is one of Claude's real tool calls: Bash sends runners, an Edit or Write a slow tank, a web or MCP call a flyer, an Agent a boss. Build and upgrade towers by clicking beside the road, hold the base through Claude's turn. Zero tokens. Needs an interactive terminal with a mouse.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
tower-defense, arcade, game, terminal, tui, tool-calls, function-hooks
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A tower defense above the Claude Code prompt where every enemy is one of Claude's real tool calls: Bash sends runners, an Edit or Write a slow tank, a web or MCP call a flyer, an Agent a boss. Build and upgrade towers by clicking beside the road, hold the base through Claude's turn. Zero tokens: the mod answers every key and click itself and never asks the model anything.
/defense opens the board above the prompt (/defense stop or the close button closes it).p pauses, r restarts.Every tool call Claude makes releases one enemy the moment the call starts, shaped by the tool:
| tool | enemy |
|---|---|
| Bash, PowerShell | ▶▶ runner: fast, fragile |
| Edit, Write, NotebookEdit | ██ tank: slow, tough |
| WebFetch, WebSearch, any MCP tool | ◢◣ flyer: crosses the bottom row over the towers' heads |
| Agent, Workflow | ▓▓ boss |
| anything else (Read, Grep, Glob, ...) | ▪▪ scout |
Between Claude's calls a quiet trickle of scouts keeps the game alive, so it is playable on its own too. A long turn with many tool calls is the real wave: build before you press Enter.
Your best score is kept in the plugin's store across sessions.
npx claude-code-templates@latest --mod games/tool-defense
claude
It is written to .claude/skills/tool-defense/, which Claude Code auto-loads as tool-defense@skills-dir. For one session with hot reload: claude --plugin-dir .claude/skills/tool-defense. claude plugin validate .claude/skills/tool-defense prints every event it hooks and every $ call it makes.
hooks/register.tsx is the hooks module: it registers /defense, 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.
claude -p, the desktop app or mobile.A clone of the genre, not affiliated with or endorsed by the original publisher.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (davila7/claude-code-templates) — no native marketplace selected
npx claudepluginhub p/davila7-tool-defense-cli-tool-components-mods-games-tool-defensePlugins from other owners that cover similar ground