bili-music: Instructions file for Codex

AGENTS.md

bili-music AGENTS.md is an instructions file for Codex, OpenCode from Jmiao11/bili-music. It costs 4,639 tokens per session, scanned A, original, MIT.

Repository instructions for building a desktop music player with Tauri, a framework that combines a Rust backend with a web interface. They describe how the player gets audio from Bilibili, a Chinese video-sharing service, and packages the app as one Windows executable.

In plain words
What is it for?
Use them when changing the Bilibili search and playback flow, the Tauri backend, the web interface, packaging, or the shared Rust code in the Cargo workspace.
Why use it?
They keep audio playback, file paths, cookies, error logging, and queue behavior consistent while avoiding unnecessary downloads or exposed login data.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Codex.

This is Jmiao11/bili-music's own configuration. It tells Codex and OpenCode how to work on bili-music itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bili-music configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Jmiao11/bili-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.

Copy the file
curl -O https://raw.githubusercontent.com/Jmiao11/bili-music/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Jmiao11/bili-music

Made for: Codex, OpenCode.

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 bili-music AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jmiao11/bili-music/agents-md/github.svg)](https://agentmods.dev/instructions/jmiao11/bili-music/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jmiao11/bili-music/agents-md"><img src="https://agentmods.dev/badge/instructions/jmiao11/bili-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.

agentmods 80×15 button for bili-music AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jmiao11/bili-music/agents-md"><img src="https://agentmods.dev/badge/instructions/jmiao11/bili-music/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,639 This file is loaded in full into every session.
When invoked 4,639 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.04639 $0.04639
Opus 5.5 $0.01856 $0.01856
Sonnet 5.5 $0.00928 $0.00928
Haiku 4.5 $0.00464 $0.00464

Measured yesterday against content hash 277e711c8098, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bili-music AGENTS.md 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 yesterday.

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.

AGENTS.md · 92 lines

How it starts

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

协作规则

本文件只记录长期规则。功能入口见 docs/where-to-change.md,架构与原生端口见 docs/frontend-architecture.md,界面改动以 docs/ui-spec.md(方案 C:极简紧凑)为视觉规范,已完成迁移的记录见 docs/frontend-migration-history.md。历史文件名不能作为改写现有链路的依据。后续设计说明保存到 docs/design/,不只保留在系统临时目录。

全面 Vue 化已完成;Windows/Mac 发布前全应用回归于2026-10-16完成,对应 master d8a7f4bc856b1aa7af23ec81d2c84c4bce9cffaa,Windows watchdog 故障包亦已验证。后续功能修改仍按任务验收;发布时须由用户核对最新 master CI。

技术栈与架构

  • Tauri v2、Rust Cargo workspace、TypeScript、Vue 单一 App.vue 根组件。迷你窗保持独立入口。Vue 3.5.43、Vite 8.3.2、TypeScript 6.0.3、@vitejs/plugin-vue 6.0.10、@vue/test-utils 2.5.1、jsdom 26.1.0、vue-tsc 3.3.12 精确锁定;不增加 Pinia、Vitest 或其他状态库。TS 升级须等 Vue 工具链支持。
  • app.ts 首先静态导入根挂载模块;先同步首屏挂载,再求值控制器与 DOM 端口。唯一应用 store 在无 DOM 的组合模块创建,根订阅最先安装,随后才能交给业务模块。首页 getter 仍在首次调用时安装首页订阅并首投影。
  • 每次 store 提交用完整只读快照、稳定回调与 Vue 公开 render() 同步渲染。action 返回前 DOM、disabled、焦点契约必须成立;不能把 nextTick、watch、RAF 合批用作主渲染路径。禁止 Vue 私有调度 API。
  • 迷你窗由独立 MiniApp.vue 根组件同步渲染主窗快照及本地显示变化;首次挂载完成后才发出双通道就绪。位置、原生拖动、焦点与标题测量/动画留在控制器。两个窗口分别构建并各自内联Vue,禁止公共运行时chunk改变主入口;根HTML主题/CSS变量是登记的平台端口。
  • 子组件只接切片 props、稳定显示模型与回调,不访问 window、TAURI、invoke、actions,不订阅 store。未变切片靠结构共享与浅比较跳过。列表高亮只重绘旧、新行,收藏变化只重绘受影响行,纯进度不重绘列表或行。
  • store 公开 getState、subscribe(返回取消订阅函数)、领域 actions;subscribe 不立即回调,首屏显式 getState。快照深只读,只复制改变路径;Map/Set 写入新集合。测试开启深冻结,生产不冻结。订阅者异常须报告并隔离,不能阻断其他订阅者及动作后续阶段。
  • 状态与纯投影不引用 DOM、window、Tauri 或平台时钟;副作用经适配器/控制器。同步完整阶段提交一次,异步开始、成功、失败分别提交。不提供任意运行期写状态接口。
  • 两个窗口的界面全部由 Vue 渲染。Vue宿主内节点只有组件一个写入方,控制器/投影不得写textContent、innerHTML、classList、style、属性或增删节点;原生读取/事件端口通过类型化ref回传,逐项登记于架构文档。焦点、几何测量、滚动、RAF/transitionend、窗口与媒体副作用保持控制器所有权。
  • 精确例外:Vue宿主外的唯一audio;html/body的文档级属性、dataset和CSS变量;原生窗口拖动/缩放与指针捕获;控制器的焦点/选择、测量、滚动和observer;不挂载的Image/canvas取色。非受控输入只由组件内部directive/ref端口写入,Key不经props或store。scripts/vue/native-writes.ts按文件和完整表达式检查原生写入例外,新增项须说明理由并配反例;不能以宽泛文件白名单绕过。
  • audio 永久在 index.html 的 Vue 宿主外;不得重建、复制或重复监听。不建立第二套播放器。分P列表每次投影整体替换并保留重绘焦点规则;资料库内容按 session.version 替换,同 session 输入框复用,generic 为空。隐藏设置、沉浸页与歌词继续投影,保留 hidden/is-open/aria-hidden 的阶段,不用 v-if/Transition 重写开关阶段。
  • 搜索、首页提示、歌词手动搜索使用非受控草稿读写端口;保留各调用方 trim、恢复与分页执行时回读的时机。恢复不发 input、不提交、不记历史;切歌不写搜索草稿。API Key 不绑定任何来自 store/props 的 value。
  • 构建与组件测试统一将 VUE_OPTIONS_API、VUE_PROD_DEVTOOLS、VUE_PROD_HYDRATION_MISMATCH_DETAILS 定义为 false。strict、erasableSyntaxOnly、isolatedModules 等不放宽,不写显式 any 或宽泛 declare module '*.vue'。生产 JS(含 inline)直接 eval/new Function 的 AST 计数均为0。

Read the full file on GitHub · 92 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. yesterday Changed · -1 tokens per session 277e711c8098
  2. 10d ago Changed · +7 lines · +321 tokens per session 1c379fdf5997
  3. 12d ago Changed · +8 lines · +190 tokens per session e41939bfdf7c
  4. 13d ago Changed · +5 lines · -19 tokens per session dd78b39d0cbd
  5. 15d ago Changed 9ae10e16fb82
  6. 17d ago Changed · +1 lines · +155 tokens per session f5cff4dbdb06
  7. 21d ago Changed · -266 lines · -16,004 tokens per session aa9e943b72f9
  8. 22d ago Changed · +224 lines · +13,373 tokens per session 4249d5ccb1fa
  9. 23d ago Changed eda35cf834e2
  10. 29d ago First seen · 113 lines · 6,624 tokens per session scan A 8a5381218c5d

Subscribe to this mod's changes

bili-music AGENTS.md is an instructions file published in the GitHub repository Jmiao11/bili-music (229 stars, last pushed 2d ago), licensed MIT. It adds 4,639 tokens to every session, about $0.0186 per session on Opus 5.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-30.

Related

bili-music AGENTS.md compared with instructions from other repositories

bili-music AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bili-music AGENTS.mdJmiao11/bili-musicInstructions file2292d agoMITA4,639Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode