now-playing
Reviewed
at commit e839261
New version, not yet reviewed
Sends data to LRCLIB (lrclib.net)
What Spotify is playing, one line above the prompt: track, progress and the lyric being sung, with ⏮ ⏸ ⏭ buttons. /music controls it too. macOS.
0 upvotes
Log in to upvote or save- Made by
- Hamza Zafar
- Pinned commit
-
e8392612e80094e5e048907751555257da0eb790 - What we checked
-
On macOS, shows what Spotify is playing above the prompt, with a progress bar, ⏮ ⏸ ⏭ buttons and /music controls. It asks Spotify through osascript every few seconds and never launches it. Unless you switch lyrics off in its config, it sends the track, artist and album names to lrclib.net once per track to show the synced lyric line. It sees none of your prompts or files and also reads its own band-order file.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since 606713f; the rest carries over from the review at that commit. Registers session.start (checks uname, registers /music and starts a 250 ms clock that polls every 3 to 5 s), session.end (cancels timers), command.run for music and ui.render for AbovePrompt. It runs uname, pgrep -x Spotify and fixed osascript scripts (read player state, or playpause, next track, previous track only after `is running` checks). Lyrics are fetched with $.http.fetch from https://lrclib.net/api/get and /search with track, artist, album and duration as query parameters, a 5 second timeout, silent on error, skipped when the lyrics option is off; the plugin.json option text discloses this. New in this version: hooks/bands.ts and a read of <configDir>/claude-code-mods/bands.json (CLAUDE_CONFIG_DIR or HOME/.claude through $.env.get, $.fs.exists, $.fs.read), parsed as a JSON list of mod names, cached once per session, empty on any error; the band is now stacked with other band mods' bands instead of wrapping them. Nothing is written to disk and no model calls are made; state is kept in memory atoms. Off macOS it does nothing.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: yes
- Stores data: no
- Shows something on screen: yes
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/now-playing/)