codevator
v0.13.0
Published
Elevator music for your AI coding agent
Maintainers
Readme
codevator
Elevator music for your AI coding agent. Background sounds that play while your agent works and stop when it needs your attention.
Quick Start
npx codevatorThis installs hooks into your AI coding agent that automatically:
- Play music when the agent starts working
- Stop when it finishes or needs your input
Sound Modes
15 sounds across 3 categories:
Focus & Ambient
| Mode | Description |
|------|-------------|
| elevator | Classic smooth jazz elevator music (default) |
| typewriter | Rhythmic mechanical keystrokes |
| minimal | Deep warm hum with slow breathing |
| lofi-relax | Relaxing lo-fi beat |
| lofi-chill | Smooth and mellow lo-fi flow |
| lofi-cozy | Cozy lo-fi night vibes |
Nature
| Mode | Description |
|------|-------------|
| ambient | Soft textures and gentle drones |
| rain | Steady rainfall on a window |
| forest | Birds and rustling leaves |
| ocean | Waves rolling onto shore |
Music & Retro
| Mode | Description |
|------|-------------|
| retro | Mellow 8-bit synthesized arpeggios |
| classical-piano | Gentle classical piano |
| ambient-guitar | Soft ambient guitar melodies |
| epic-strings | Soaring strings and orchestral warmth |
Integration
| Mode | Description |
|------|-------------|
| spotify | Controls your Spotify volume (macOS only) |
Switch modes:
npx codevator mode ambientPick a random sound from a category:
npx codevator --random --category natureSpotify Mode
Instead of playing bundled sounds, spotify mode controls the volume of your running Spotify desktop app — fading your music up when Claude is working and back down when it's idle.
npx codevator mode spotifyRequirements: macOS only. Requires the Spotify desktop app (not the web player) to be running with music already playing. Codevator saves your current Spotify volume on activation and restores it on exit. The volume setting is ignored in this mode — it uses your own Spotify volume as the target.
Custom Sounds
Import your own audio files (mp3, wav, ogg, m4a):
npx codevator import ./my-sound.mp3 --name chill
npx codevator mode chillRemove a custom sound:
npx codevator remove chillPreview any mode for 5 seconds without switching:
npx codevator preview retroList all available sounds (built-in + custom + registry):
npx codevator listSound Profiles
Save your favorite configurations as named presets:
npx codevator profile create deep-work --mode retro --volume 80
npx codevator profile create chill-vibes --mode ambient --volume 40Switch instantly between presets:
npx codevator profile use deep-workManage profiles:
npx codevator profile list
npx codevator profile delete deep-workMulti-Agent Support
Codevator works with 7 AI coding agents:
| Agent | Setup |
|-------|-------|
| Claude Code | npx codevator (default) |
| OpenAI Codex CLI | npx codevator setup --agent codex |
| Gemini CLI | npx codevator setup --agent gemini |
| Copilot CLI | npx codevator setup --agent copilot |
| Cursor | npx codevator setup --agent cursor |
| Windsurf | npx codevator setup --agent windsurf |
| OpenCode | npx codevator setup --agent opencode |
Each agent adapter configures the appropriate hooks for that agent's lifecycle events.
Agent Skill
Install the codevator skill so your AI agent can control music for you:
npx skills add educlopez/codevatorThis installs the skill across all supported agents (Claude Code, Cursor, Windsurf, Gemini CLI, and 30+ more). Once installed, just ask your agent to "play some lo-fi" or "switch to nature sounds".
Commands
npx codevator Install hooks (Claude Code by default)
npx codevator setup --agent <name> Install hooks for a specific agent
npx codevator mode <name> Set sound mode
npx codevator add [name] Download a sound
npx codevator --random Pick a random sound mode
npx codevator --random --category <c> Random sound from a category (focus, nature, music)
npx codevator on / off Enable or disable sounds
npx codevator volume <n> Set volume (0-100)
npx codevator status Show current settings and active agent
npx codevator doctor Diagnose hooks, audio, config, and sounds
npx codevator stats Show duration, streaks, and milestones
npx codevator list List all available sounds by category
npx codevator preview <mode> Preview a sound for 5 seconds
npx codevator import <file> --name <n> Import a custom sound file
npx codevator remove <name> Remove a custom sound
npx codevator profile create <name> Create a sound profile
npx codevator profile use <name> Apply a sound profile
npx codevator profile list List all profiles
npx codevator profile delete <name> Delete a profile
npx codevator install-menubar Install macOS menu bar app
npx codevator uninstall-menubar Remove menu bar app
npx codevator uninstall Remove hooks from agentMenu Bar App
On macOS, you can install a menu bar companion that shows the current sound mode and lets you control playback without the terminal:
npx codevator install-menubarThe app launches automatically when a coding session starts. To remove it:
npx codevator uninstall-menubarTroubleshooting
Run the built-in diagnostics:
npx codevator doctorThis checks hooks installation, audio player availability, sound files, config validity, and daemon status.
How It Works
Codevator registers hooks in your AI agent's configuration:
- PreToolUse — starts playback when the agent begins working
- Stop — stops playback when the session ends
- Notification — stops on permission prompts and idle states
Music plays through your system's native audio player (afplay on macOS, paplay/aplay on Linux).
Config is stored at ~/.codevator/config.json. Custom sounds go in ~/.codevator/sounds/.
Claude Code Skill
Setup also installs a Claude Code skill that lets the agent control music directly. Ask Claude to "change the music to retro" or "turn off the elevator music" and it will run the right command.
Uninstall
npx codevator uninstallLicense
MIT
