2048
npx claude-code-templates@latest --mod games/2048 Content
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.
2048
2048 above the Claude Code prompt, for the minutes Claude spends working: slide and merge tiles up to 2048. Its status line tells you when Claude finishes the turn (2048 has no clock, so there is nothing to pause), 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-arcadeinstead.
Play
/2048opens the board above the prompt (/2048 stopor theclosebutton closes it).- Click the board to give it the keyboard; Esc gives the keyboard back to the prompt.
- arrows slide every tile,
rrestarts. Equal tiles merge; the game ends when no slide changes anything.
Your best score is kept in the plugin's store across sessions.
Install
npx claude-code-templates@latest --mod games/2048
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claudeIt is written to .claude/skills/2048/, which Claude Code auto-loads as 2048@skills-dir. For one session with hot reload: CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir .claude/skills/2048.
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.