Back to Mods

Snake

Mods games
Install Command
npx claude-code-templates@latest --mod games/snake

Content

Early access. A mod is a complete Claude Code plugin built on function hooks (Anthropic's mods/ layout); it loads in Claude Code 2.1.259+ with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 and the $ API may still change between releases. Hooks module: hooks/register.tsx. Run claude plugin validate on the installed folder to see every event it hooks and every $ call it makes.

snake

Snake above the Claude Code prompt, for the minutes Claude spends working: eat, grow, and keep off the walls and yourself. The game pauses and its status line says so when Claude finishes the turn, so you never miss a reply. Playing costs no tokens: the mod answers every key and click itself.

A single game split out of sezaakgun/cc-arcade (MIT, by Seza Akgün). Want all nine games, a picker and the pet in one plugin? Install games/cc-arcade instead.

Play

  1. /snake opens the board above the prompt (/snake 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. arrows steer, Space or p pauses, r restarts. Eat the red food, keep off the walls and your own tail.

Your best score is kept in the plugin's store across sessions.

Install

sh
npx claude-code-templates@latest --mod games/snake
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude

It is written to .claude/skills/snake/, which Claude Code auto-loads as snake@skills-dir. For one session with hot reload: CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir .claude/skills/snake.

Requirements

  • Claude Code 2.1.269 or later (the first build whose function hooks draw above the prompt) with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1. The $ API is early access and may change between releases.
  • 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.

Clones of the genre, not affiliated with or endorsed by the original publishers.

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.