🔥 Claude Power Mode
GPU-accelerated particle explosions, combo counter, screen shake, and fire effects for Claude Code — powered by Swift/SpriteKit.

What Is This?
A Claude Code plugin that renders real-time visual effects as a transparent overlay on your screen while Claude edits your code:
- 🎆 Particle Explosions — 8 GPU-accelerated presets (rightburst, stars, explosion, fountain, shockwave, emoji, disintegrate, fire) with bloom, additive blending, and physics fields
- 🔢 Combo Counter — Cinematic HUD tracking consecutive edits with 5 escalating levels, glow aura, scale-pop animations, and exclamation fly-ins
- 📳 Screen Shake — Camera-based shake with damped spring return, CIMotionBlur, and bloom flash on impact
- 🔥 Fire Wall — Multi-layer emitter fire (ember + flame + smoke) rising from the screen bottom at high combo levels
Every edit Claude makes triggers particle bursts. Chain edits fast enough and the combo escalates — bigger effects, screen shake, and eventually a wall of fire 🔥
How It Works
Claude Code Hook Events → Shell Script → Unix Socket → Swift/SpriteKit Overlay
- Claude Code fires lifecycle hooks (
PostToolUse, UserPromptSubmit, Stop)
- Hook scripts transform events and send JSON over a Unix domain socket
- A native macOS Swift app renders GPU-accelerated effects in a transparent, click-through overlay window
- Effects scale with combo level — the faster Claude codes, the more spectacular it gets
Prerequisites
- macOS 13+ (Ventura or later)
- Swift 5.9+ (included with Xcode 15+ or Xcode Command Line Tools)
- Claude Code (with plugin support)
Installation
Quick Install
git clone https://github.com/your-org/claude-plugin-power-mode.git
cd claude-plugin-power-mode
./scripts/install.sh
Manual Install
# 1. Build the native overlay
cd native/macos && swift build -c release && cd ../..
# 2. Install as a Claude Code plugin
claude --plugin-dir /path/to/claude-plugin-power-mode
Verify Installation
# Start the overlay manually
./scripts/start.sh
# Send a test event
echo '{"event":"edit","tool":"Edit","file_path":"test.swift","timestamp":0}' | nc -U /tmp/claude-power-mode.sock
# Stop the overlay
./scripts/stop.sh
Usage
Once installed as a Claude Code plugin, Power Mode activates automatically. The overlay starts when you begin a Claude session and effects trigger on every file edit.
Slash Commands
| Command | Description |
|---|
/power-mode:powermode | Toggle power mode on/off |
/power-mode:powermode on | Enable power mode |
/power-mode:powermode off | Disable power mode |
/power-mode:powermode status | Show current status |
/power-mode:effects <preset> | Switch particle preset |
Particle Presets
| Preset | Description |
|---|
rightburst | Arrow burst to the right with motion-blur trails (default) |
stars | Twinkling stars with CIBloom glow halos |
explosion | Radial burst with physics field and secondary debris |
fountain | Parabolic arc with gravity simulation |
shockwave | Expanding ring with animated radius |
emoji | Full-color emoji with rotation and scale bounce |
disintegrate | Scatter fragmentation effect |
fire | Volumetric fire with layered emitters |
Combo Levels
| Level | Threshold | Color | Effects |
|---|
| 1 | 10 edits | 🟢 Green | Particles |
| 2 | 25 edits | 🔵 Cyan | Particles + Screen Shake |
| 3 | 50 edits | 🩷 Pink | Particles + Shake + Fire Wall |
| 4 | 100 edits | 🟣 Purple | All effects intensified |
| 5 | 200 edits | 🔴 Red | Maximum intensity |
The combo resets after 3 seconds of inactivity.
Configuration
Edit config/defaults.json to customize effects:
{
"engine": { "fps": 60 },
"particles": {
"preset": "rightburst",
"count": [8, 15],
"lifetime": [0.3, 0.8],
"speed": [100, 300],
"gravity": -200,
"glow": true,
"bloom_radius": 8.0,
"bloom_intensity": 0.6,
"additive_blend": true
},
"combo": {
"enabled": true,
"timeout": 3.0,
"thresholds": [10, 25, 50, 100, 200]
},
"shake": {
"enabled": true,
"min_combo_level": 2,
"base_magnitude": 3.0,
"motion_blur": true,
"bloom_flash": true
},
"fire_wall": {
"enabled": true,
"min_combo_level": 3,
"max_height_fraction": 0.25,
"layers": ["ember", "flame", "smoke"],
"bloom_enabled": true
}
}
Environment Variables
| Variable | Default | Description |
|---|
POWER_MODE_SOCKET | /tmp/claude-power-mode.sock | Unix socket path |
POWER_MODE_CONFIG | config/defaults.json | Config file path |
Architecture