NetEase-MusicBox is a Python command-line client for searching, streaming, and managing music from NetEase Cloud Music. It is for terminal users who want music playback, playlists, recommendations, comments, lyrics, and playback controls, including on some older or low-powered devices. Its catalogue skill and instruction let coding agents operate MusicBox.
Borrowing it
Nothing to install: this file belongs to darknessomi/musicbox. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/darknessomi/musicbox/master/AGENTS.mdgit clone --depth 1 https://github.com/darknessomi/musicboxWrote 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.
[](https://agentmods.dev/instructions/darknessomi/musicbox/agents-md)<a href="https://agentmods.dev/instructions/darknessomi/musicbox/agents-md"><img src="https://agentmods.dev/badge/instructions/darknessomi/musicbox/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/darknessomi/musicbox/agents-md"><img src="https://agentmods.dev/badge/instructions/darknessomi/musicbox/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00579 | $0.00579 |
| Opus 5.5 | $0.00232 | $0.00232 |
| Sonnet 5.5 | $0.00116 | $0.00116 |
| Haiku 4.5 | $0.00058 | $0.00058 |
Grade B, and why
musicbox AGENTS.md scanned grade B with 1 finding 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 2mo 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
(`sudo apt-get install -y mpg123 mpv`). They are pre-installed in the snapshot; reinstall How it starts
The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Cursor Cloud specific instructions
NetEase-MusicBox is a Python 3.10+ command-line/curses TUI music player, managed with
uv. There is a single package (NEMbox) and one product
(the musicbox CLI/TUI). Dependencies are refreshed automatically by the startup update
script (uv sync --frozen); you do not need to reinstall them.
Running the app
- Interactive TUI:
uv run musicbox— this usescursesand requires a real interactive terminal (TTY). It will not render in a non-TTY/headless shell; use the CLI subcommands below for scripted/agent verification instead. - Agent/CLI mode (no TTY needed):
uv run musicbox <command>, e.g.search,song url,play,pause,status,queue,daemon,auth. Add--jsonfor machine-readable output. SeeREADME.mdfor the full command list. - Playback runs through a background daemon;
musicbox play --id <id>auto-starts it andmusicbox daemon stopstops it.
Audio backends (system deps, NOT in update script)
mpg123(MP3) andmpv(FLAC / Hi-Res) are OS packages installed viaapt-get(sudo apt-get install -y mpg123 mpv). They are pre-installed in the snapshot; reinstall only ifmusicbox playreports a missing backend. Playback selectsmpg123by default.
Network / API note
- Song search and playable URLs come from NetEase's public API, which only accepts China-region access. From other regions requests can fail or return empty; set an HTTP proxy (see README "配置") if search stops returning results. In this environment the API was reachable and returned live results.
- Login is QR-code scan only (renders a QR block in the terminal); there is no username/password login and no test-login secret is required for search/playback.
Lint / test / build
Standard commands (already documented in .cursor/rules/pre-commit-validation.mdc and
.github/workflows/ci.yml); run them via uv run:
uv run ruff checkuv run ruff format --checkuv run ty check— emits ~11 diagnostics that are configured aswarninpyproject.toml; it exits 0 and is not a failure.uv run pytest -q --tb=shortuv build
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.
- 2mo ago First seen · 42 lines · 579 tokens per session scan B 18824f5be2ea
musicbox AGENTS.md is an instructions file published in the GitHub repository darknessomi/musicbox (9,873 stars, last pushed 5d ago), licensed MIT. It adds 579 tokens to every session, about $0.0023 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
musicbox AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| musicbox AGENTS.mddarknessomi/musicbox | Instructions file | 9.9k | 5d ago | MIT | B | 579 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |