hub-play

hub-play is a command for Claude Code from fiale-plus/fiale-claude-plugins. It costs 8 tokens per session (590 once invoked), scanned A, original, MIT.

A browser-based music control command for YouTube Music or Spotify. It can search for music and control the currently playing track.

In plain words
What is it for?
Use it to play a search result, skip tracks, pause playback, or resume it on either supported music service.
Why use it?
It lets you manage playback from the coding-agent environment instead of switching to the music tab for each action.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-status-hub plugin — 16 commands shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add fiale-plus/fiale-claude-plugins
Claude Code
/plugin install claude-status-hub

Made for: Claude Code.

Or install claude-status-hub, the plugin that ships this one along with the rest of its 16 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hub-play

README.md
[![agentmods](https://agentmods.dev/badge/commands/fiale-plus/fiale-claude-plugins/hub-play.svg)](https://agentmods.dev/commands/fiale-plus/fiale-claude-plugins/hub-play)
Your own site
<a href="https://agentmods.dev/commands/fiale-plus/fiale-claude-plugins/hub-play"><img src="https://agentmods.dev/badge/commands/fiale-plus/fiale-claude-plugins/hub-play.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 590 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00008 $0.00590
Opus 5 $0.00004 $0.00295
Sonnet 5 $0.00002 $0.00118
Haiku 4.5 $0.00001 $0.00059

Measured 6d ago against content hash 16f0de897488, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

hub-play scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/claude-status-hub/commands/hub-play.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hub Play - Music Control

Control music playback on YouTube Music or Spotify.

Parse Argument

  • play <query> - Search and play
  • skip or next - Skip to next track
  • pause - Pause playback
  • resume or unpause - Resume playback

Get Music Tab

  1. Read ~/.claude/status-config.json for background.service and background.tabId
  2. If no background service, check browser tabs for music.youtube.com or open.spotify.com
  3. If no music tab found, open a new tab with YouTube Music (default) or ask user preference

Play Query

  1. Navigate to search on the music service:
    • YouTube Music: https://music.youtube.com/search?q=<encoded-query>
    • Spotify: https://open.spotify.com/search/<encoded-query>
  2. Wait for page load
  3. Click first result or shuffle play button
  4. Update status and say "Playing: [result]"

Skip Track

Execute on music tab:

// YouTube Music
document.querySelector('.next-button')?.click();

// Spotify
document.querySelector('[data-testid="control-button-skip-forward"]')?.click();

Pause/Resume

Execute on music tab:

// YouTube Music
document.querySelector('#play-pause-button')?.click();

// Spotify
document.querySelector('[data-testid="control-button-playpause"]')?.click();

Update Status

After any action:

  1. Ensure config exists - if ~/.claude/status-config.json doesn't exist, create:

    {"background": null, "foreground": []}
    
  2. Update config with background service:

    {
      "background": {
        "service": "youtube-music",  // or "spotify"
        "tabId": <tab-id>
      }
    }
    
  3. Get playback info via JavaScript:

    // YouTube Music
    ({
      title: document.querySelector('.title.ytmusic-player-bar')?.textContent,
      artist: document.querySelector('.byline.ytmusic-player-bar')?.textContent,
      isPlaying: document.querySelector('#play-pause-button')?.getAttribute('aria-label')?.includes('Pause')
    })
    

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 89 lines · 8 tokens per session scan A 16f0de897488

Subscribe to this mod's changes

hub-play is a command published in the GitHub repository fiale-plus/fiale-claude-plugins (4 stars, last pushed 4mo ago), licensed MIT. It adds 8 tokens to every session and 590 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.