claude-arcade

skill
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License รขโ‚ฌโ€ License: MIT
  • Description รขโ‚ฌโ€ Repository has a description
  • Active repo รขโ‚ฌโ€ Last push 0 days ago
  • Low visibility รขโ‚ฌโ€ Only 5 GitHub stars
Code Basarisiz
  • os.homedir รขโ‚ฌโ€ User home directory access in plugins/claude-arcade/scripts/collect.js
  • process.env รขโ‚ฌโ€ Environment variable access in plugins/claude-arcade/scripts/collect.js
  • fs module รขโ‚ฌโ€ File system access in plugins/claude-arcade/scripts/collect.js
  • child_process รขโ‚ฌโ€ Shell command execution capability in plugins/claude-arcade/scripts/super-mario-runner.js
  • os.homedir รขโ‚ฌโ€ User home directory access in plugins/claude-arcade/scripts/super-mario-runner.js
  • process.env รขโ‚ฌโ€ Environment variable access in plugins/claude-arcade/scripts/super-mario-runner.js
  • fs module รขโ‚ฌโ€ File system access in plugins/claude-arcade/scripts/super-mario-runner.js
Permissions Gecti
  • Permissions รขโ‚ฌโ€ No dangerous permissions requested
Purpose
This is a creative JavaScript plugin that displays an auto-playing, retro pixel-art arcade game directly in your terminal. The game's state and animations (running, jumping, etc.) are driven entirely by your live Claude Code session metrics, such as token generation speed and thinking status.

Security Assessment
Overall Risk: High. The tool raises several significant security flags. It actively accesses the user's home directory and the file system, which could allow it to read sensitive local data. It also reads environment variables, potentially exposing API keys or local configurations. Most concerningly, it contains the capability to execute shell commands. If malicious code were introduced or if the tool is compromised, it currently has the necessary permissions to run arbitrary commands on your machine.

Quality Assessment
The project is very new and fresh, with its last code push occurring today. It benefits from a clear README and utilizes a standard, permissive MIT license. However, it suffers from extremely low community visibility and adoption, having accumulated only 5 GitHub stars. Because of this low visibility, the codebase has likely not undergone rigorous peer review or security auditing by the broader open-source community.

Verdict
Use with caution โ€” while the concept is fun and actively maintained, the combination of shell execution, environment variable access, and file system reading creates a high-risk profile for a utility that is ultimately just a visual novelty.
SUMMARY

๐ŸŽฎ Arcade games for Claude Code โ€” auto-playing pixel games driven by your live session's tokens, prompts, tool calls & context pressure. Single-plugin marketplace. Currently ships ๐Ÿ„ Super Mario Runner.

README.md

Claude Arcade

This repo is both a plugin (plugins/claude-arcade/) and a plugin marketplace (.claude-plugin/marketplace.json). You can install it with one command โ€” see below.

Watch your tokens come to life. While Claude Code runs, the character runs, jumps, and collects coins. While Claude thinks, the character charges up. While Claude waits for your input, a ? block appears.


Games

Claude Arcade is built to host multiple arcade games for Claude Code โ€” each one a tiny pixel game whose visuals are driven entirely by what's happening in your live session (tokens, prompts, tools, context pressure, etc.). Right now it ships with one:

Super Mario Runner

An auto-playing side-scroller. You don't control Mario โ€” your Claude Code session does. Token throughput becomes his running speed, thinking becomes a glow, prompts become jumps, subagents become tiny tinted sidekicks, and a filling context window literally rains and burns down the level. Each cell below is a distinct in-game state and when it triggers.

Mario sprinting with the HUD live-updating
Normal gameplay
Tokens are flowing โ€” Mario walks/runs/sprints based on tok/s, HUD numbers tick up
Mario charging up with a thought bubble
Thinking
Claude is processing (no tokens yet) โ€” Mario glows and a โ€ฆ thought bubble appears
Question block above Mario; browser tab flashing
Waiting for your input
Claude is waiting on your reply โ€” ? block appears, character taps foot, tab title flashes
Mario speed-boosting with a star streak
Token burst
First big chunk of output after thinking โ€” speed boost with a star streak
Mini-Marios spawn alongside Mario when subagents start
Subagent spawn
Every time Claude spawns a subagent, a small tinted Mario joins the level and runs alongside the main one
Fireworks over Mario after a task ends
Task complete
Claude finishes a task or turn โ€” fireworks celebration, coin counter pops
Sky darkened with rain falling on the level
Context 60% โ€” rain
Context window passes 60% โ€” sky darkens, rain starts
Red sky with fire embers drifting
Context 80% โ€” fire
Context window passes 80% โ€” red sky, fire embers drifting
Screen shake at high context pressure
Context 90% โ€” shake
Context window passes 90% โ€” screen shakes, time to clear context

Install (recommended)

Add the marketplace, then install the plugin. From inside any Claude Code session:

/plugin marketplace add jaipatel248/claude-arcade
/plugin install claude-arcade@claude-arcade

That's it. Run the game with:

/claude-arcade:super-mario-runner

Pick a different port if 3248 is busy:

/claude-arcade:super-mario-runner 4000

Updating

/plugin marketplace update claude-arcade

Uninstalling

/plugin uninstall claude-arcade@claude-arcade
/plugin marketplace remove claude-arcade

Local development install

Without going through the marketplace โ€” useful when iterating on the plugin source:

git clone https://github.com/jaipatel248/claude-arcade.git
claude --plugin-dir ./claude-arcade/plugins/claude-arcade

After editing files, run /reload-plugins inside the session to pick up changes without restarting.


How it maps Claude โ†’ Mario

Claude activity Game effect
Tokens flowing fast Character sprints
Tokens flowing slow Character walks
Idle Character stands still
Thinking (processing) Glow + thought bubble (...)
Token burst after thinking Speed boost with star effect
Waiting for your input ? block appears, character taps foot, tab title flashes
You answer ? block bursts into coins
Task complete Fireworks
Context window 60%+ Sky darkens, rain
Context window 80%+ Red sky, fire embers
Context window 90%+ Screen shakes
Cost increases Coin counter goes up

HUD: Tokens (in/out), Speed (tok/s), Coins, Prompts, Context %, Cost ($), Session time, Model badge.

Keyboard: Space jump ยท M toggle music ยท S toggle SFX ยท C screenshot.


How it works

Claude Code session
  โ”€โ–บ hooks (PreToolUse, PostToolUse, Stop, โ€ฆ) call scripts/collect.js
  โ”€โ–บ collect.js writes events to ~/.claude/token-graph-live.jsonl
  โ”€โ–บ scripts/super-mario-runner.js tails the JSONL file
  โ”€โ–บ pushes updates to the browser via Server-Sent Events
  โ”€โ–บ browser renders the game at 60fps (Canvas + pixel art)

The launch script forks itself into the background on first run (cross-platform โ€” no shell backgrounding tricks needed) and binds an HTTP server on the chosen port. Subsequent invocations on the same port just reopen the browser tab.


Repo layout

claude-arcade/
โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ””โ”€โ”€ marketplace.json            โ† Marketplace catalog
โ”œโ”€โ”€ plugins/
โ”‚   โ””โ”€โ”€ claude-arcade/
โ”‚       โ”œโ”€โ”€ .claude-plugin/
โ”‚       โ”‚   โ””โ”€โ”€ plugin.json         โ† Plugin manifest
โ”‚       โ”œโ”€โ”€ hooks/
โ”‚       โ”‚   โ””โ”€โ”€ hooks.json          โ† Registers statusLine + Claude Code hooks
โ”‚       โ”œโ”€โ”€ scripts/
โ”‚       โ”‚   โ”œโ”€โ”€ collect.js          โ† Hook receiver โ†’ JSONL writer
โ”‚       โ”‚   โ””โ”€โ”€ super-mario-runner.js โ† Game server (HTTP + SSE)
โ”‚       โ”œโ”€โ”€ skills/
โ”‚       โ”‚   โ””โ”€โ”€ super-mario-runner/SKILL.md   โ† /claude-arcade:super-mario-runner
โ”‚       โ””โ”€โ”€ webview/
โ”‚           โ”œโ”€โ”€ super-mario-runner.html
โ”‚           โ”œโ”€โ”€ js/                 โ† Game modules
โ”‚           โ””โ”€โ”€ sounds/
โ”œโ”€โ”€ docs/
โ”‚   โ””โ”€โ”€ images/                     โ† README screenshots (01-running.png โ€ฆ 09-shake.png)
โ”œโ”€โ”€ LICENSE                         (MIT)
โ””โ”€โ”€ README.md

Requirements

  • Claude Code (claude CLI)
  • Node.js 16+ (already required by Claude Code)
  • A modern browser
  • Zero npm dependencies โ€” uses only Node built-ins

Server controls

Start (default port 3248):

node plugins/claude-arcade/scripts/super-mario-runner.js

Pick a port:

node plugins/claude-arcade/scripts/super-mario-runner.js --port 4000

Check status:

node plugins/claude-arcade/scripts/super-mario-runner.js --status --port 4000

Stop a running instance:

node plugins/claude-arcade/scripts/super-mario-runner.js --stop --port 4000

Run in foreground (for debugging):

node plugins/claude-arcade/scripts/super-mario-runner.js --foreground

Debug logging

Set CLAUDE_ARCADE_DEBUG=1 before launching Claude Code to dump every hook payload to ${TMPDIR}/claude-arcade-debug.jsonl. Off by default.

License

MIT

Credits

Built by Jay Patel. Pull requests welcome.

Yorumlar (0)

Sonuc bulunamadi