Borrowing it
Nothing to install: this file belongs to jinzhongjia/decky-music. 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/jinzhongjia/decky-music/main/AGENTS.mdgit clone --depth 1 https://github.com/jinzhongjia/decky-musicWrote 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/jinzhongjia/decky-music/agents-md)<a href="https://agentmods.dev/instructions/jinzhongjia/decky-music/agents-md"><img src="https://agentmods.dev/badge/instructions/jinzhongjia/decky-music/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/jinzhongjia/decky-music/agents-md"><img src="https://agentmods.dev/badge/instructions/jinzhongjia/decky-music/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.03735 | $0.03735 |
| Opus 5 | $0.01868 | $0.01868 |
| Sonnet 5 | $0.00747 | $0.00747 |
| Haiku 4.5 | $0.00374 | $0.00374 |
Grade B, and why
decky-music 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 10d 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 ./cli/decky plugin build . # 官方 CLI 打包整个插件 → out/<name>.zip(需 Docker + sudo) How it starts
The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Library
以下为使用的库:
- https://github.com/L-1124/QQMusicApi —— QQ 音乐 provider(Python 库)
- https://github.com/SPlayer-Dev/ncm-api-rs —— 网易云 provider(Rust 库)
- https://github.com/SteamDeckHomebrew/decky-loader —— 插件宿主 / API 来源
- rodio + reqwest(rustls-tls)—— player 拉流/解码/输出
- @decky/api + @decky/ui —— 前端
架构速览
UI 只跟 bridge 说话;bridge 是唯一常驻的真相源;provider / player 是插件沙盒外的独立二进制。
UI (React) ──Decky RPC(callable/emit)── bridge (main.py)
│ UDS + NDJSON,bridge 作 server
┌─────────────────┴─────────────────┐
provider 进程 player 进程
qq: Python+Nuitka / ncm: Rust Rust
出元数据·歌词·可播 URL 拉流·解码·出声
目录:
main.py—— 只剩对外接口 facade:CALLABLES白名单 +__getattr__转发给 bridge (Decky loader 按名getattr分发,不必逐个写同名方法;tests/test_callables.py机械校验白名单 ↔ Bridge 方法 ↔src/api.ts三端一致)py_modules/—— bridge 实现(bridge.py总线 + 进程管理 /log.py日志);放这里才被 Decky 加进 sys.path 且被 CLI 打包src/—— React UI:index.tsx(definePlugin入口)/QAM.tsx(QAM 面板)/Page.tsx(大屏页,导出ROUTE)/api.ts(前端↔bridge 唯一接口层)/errors.ts+ErrorBanner.tsx+Boundary.tsx(错误纵深)/Footer.tsx/i18n.tsplayer/—— Rust,reqwest+rodioncm-provider/—— Rust,依赖 ncm-api-rsqq-provider/—— Python,依赖 qqmusic_api,Nuitka--standalone打包
Coding rules
- 不要写过长的代码,例如单文件超过 500 行,函数超过 50 行。
- 插件支持 i18n,支持语言为 中文 和 英文。
- 开发完一部分后就提示用户提交代码,避免一次性提交过多代码。
Dev environment
- 部署目标:Steam Deck(SteamOS,gamescope 会话)。SSH/路径见
scripts/deploy.sh。 - bridge 跑在 Decky 冻结的 CPython 里,只能用 stdlib,严禁第三方依赖(编译扩展会随 Decky 升级崩)。
- 三个二进制通过 Decky
remote_binary(package.json)在安装时下载,不进插件包。 - 改了 player / provider 代码必须先重建二进制再部署:
deploy.sh只搬运target/release/*和qq-provider/build/*.tar.gz里已有的产物,不自动重建。改了 Rust/Python 后先bash scripts/build-rust.sh -p <player|ncm-provider>/bash scripts/build-qq-provider.sh再 deploy,否则装的是旧二进制。只改前端则 deploy 会自己pnpm 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.
- 10d ago First seen · 209 lines · 3,735 tokens per session scan B d52276e91020
decky-music AGENTS.md is an instructions file published in the GitHub repository jinzhongjia/decky-music (119 stars, last pushed 7d ago), licensed MIT. It adds 3,735 tokens to every session, about $0.0187 per session on Opus 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.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.