claude-arcade
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
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.
๐ฎ 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.
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.
![]() Normal gameplay Tokens are flowing โ Mario walks/runs/sprints based on tok/s, HUD numbers tick up |
![]() Thinking Claude is processing (no tokens yet) โ Mario glows and a โฆ thought bubble appears
|
![]() Waiting for your input Claude is waiting on your reply โ ? block appears, character taps foot, tab title flashes
|
![]() Token burst First big chunk of output after thinking โ speed boost with a star streak |
![]() Subagent spawn Every time Claude spawns a subagent, a small tinted Mario joins the level and runs alongside the main one |
![]() Task complete Claude finishes a task or turn โ fireworks celebration, coin counter pops |
![]() Context 60% โ rain Context window passes 60% โ sky darkens, rain starts |
![]() Context 80% โ fire Context window passes 80% โ red sky, fire embers drifting |
![]() 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 (
claudeCLI) - 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
Credits
Built by Jay Patel. Pull requests welcome.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi








