vibecode.fm
English · Português · Español
A soundtrack for your coding agent — plays while Claude Code works, stops the moment it's your turn.
Claude starts working, the music comes in. It hands the turn back to you, the music stops. You
hear when the agent is busy and when it needs you, so you're not glued to the screen. A themed
status line shows the current track, station and state — and it all runs on its own.
How it works
The plugin wires Claude Code hooks to a
background mpv instance over its JSON IPC channel:
| What happens | The music |
|---|
| You submit a prompt | ▶ plays |
| Claude runs a tool | ▶ plays |
| It needs you — a permission prompt, a question, or it goes idle | ⏸ pauses (resumes when you answer) |
| Claude finishes the turn | ⏸ pauses |
| Session ends | ⏸ pauses |
It's a single, dependency-free native binary. Hooks exit 0 no matter what and never break a
session; if mpv isn't installed the plugin does nothing, silently.
Architecture
Each Claude Code event runs the binary for a few milliseconds; it nudges a background mpv over
its JSON IPC socket and exits. A separate statusline call draws the themed line on every
repaint, and a lightweight watchdog quits the background mpv if the session goes idle.
flowchart TD
subgraph cc["Claude Code"]
ev["Hook events<br/>play: UserPromptSubmit · Pre/PostToolUse<br/>pause: PermissionRequest · Notification · Stop"]
rp["Status-line repaint"]
end
subgraph plugin["vibecode-fm — native binary (Rust)"]
disp["main · dispatch"]
ctrl["controller<br/>intent tokens · state"]
sl["statusline<br/>theme · sprites · gradient"]
end
mpv["mpv · background player"]
wd["watchdog<br/>quits mpv when idle"]
st[("state dir<br/>intent · station · volume")]
soma["SomaFM"]
you["🔊 you"]
term["📻 themed status line"]
ev -->|"vibecode-fm play / pause"| disp
rp -->|"vibecode-fm statusline"| disp
disp --> ctrl
disp --> sl
ctrl <-->|"JSON IPC — pipe / socket"| mpv
ctrl -.->|"spawns"| wd
wd -.->|"IPC"| mpv
ctrl <--> st
sl --> st
sl -.->|"reads status · track"| mpv
mpv -->|"stream"| soma
mpv -->|"audio"| you
sl --> term
Requirements
brew install mpv # macOS
sudo apt install mpv # Debian / Ubuntu
winget install shinchiro.mpv # Windows
That's it — no runtime, no interpreter. The binary is self-contained. One codebase for
Windows, macOS, Linux and WSL; the test suite runs on all three in CI.
Install
In Claude Code:
/plugin marketplace add GusGaiotti/vibecode.fm
/plugin install vibecode-fm@vibecode-fm
The native binary is fetched automatically on first start — the prebuilt one for your platform
from the latest release, verified
against its published checksum. Nothing else to download.
Then turn on the themed status line — no editing settings.json by hand:
/vibecode-fm:statusline on
Restart Claude Code, submit a prompt, and the music starts.
Prefer to build it yourself? With a Rust toolchain, run cargo build --release in the plugin directory and drop the result at bin/vibecode-fm (or
bin/vibecode-fm.exe on Windows) — the auto-download skips whatever is already there.
Commands
| Command | What it does |
|---|
/vibecode-fm:vibe | DJ mode — Claude picks the station that fits your session |
/vibecode-fm:radio <vibe> | Switch to a specific station |
/vibecode-fm:next | Skip to the next station |
/vibecode-fm:volume <up|down|0-100> | Set the volume |
/vibecode-fm:focus <on|off> | On (default): pause when it's your turn. Off: play non-stop |
/vibecode-fm:minimal <on|off> | Status line shows only the track name (no sprites/phrase) |
/vibecode-fm:on / :off | Enable / disable the plugin |
/vibecode-fm:help | Command + settings reference |
Vibes: chill, ambient, metal, jazz, synthwave, hacker, beats, indie, spy, vaporwave,
space, glitch, tavern, goa, bossa, seventies, reggae, dubstep, lounge, folk — 20 curated
SomaFM channels (free, legal, no login), each with its own status-line
colours, icons and splash phrases. Common synonyms work too (lofi, retro, defcon,
drone, hiphop, psy, agent…).
The status line