Qz-Miner: Instructions file for Codex

AGENTS.md

Qz-Miner AGENTS.md is an instructions file for Codex, OpenCode from QuanhuZeYu/Qz-Miner. It costs 637 tokens per session, scanned A, original, MIT.

A project instruction file for Qz-Miner, defining its collaboration rules, code boundaries, safety limits, and required checks. Qz-Miner is a Minecraft-related mining project that works with Qz-UILib.

In plain words
What is it for?
Use it as guidance when changing or reviewing Qz-Miner code, especially around server threads, parallel work, saved drops, optional modules, builds, tests, commits, and release boundaries.
Why use it?
It prevents unsafe changes to game-world state, player items, networking, threads, and shared project architecture.

Instructions file for CodexOpenCode

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

This is QuanhuZeYu/Qz-Miner's own configuration. It tells Codex and OpenCode how to work on Qz-Miner 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 Qz-Miner configures →

Reuse

Borrowing it

Nothing to install: this file belongs to QuanhuZeYu/Qz-Miner. 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/QuanhuZeYu/Qz-Miner/5.0重构/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/QuanhuZeYu/Qz-Miner

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 Qz-Miner AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/quanhuzeyu/qz-miner/agents-md/github.svg)](https://agentmods.dev/instructions/quanhuzeyu/qz-miner/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/quanhuzeyu/qz-miner/agents-md"><img src="https://agentmods.dev/badge/instructions/quanhuzeyu/qz-miner/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 Qz-Miner AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/quanhuzeyu/qz-miner/agents-md"><img src="https://agentmods.dev/badge/instructions/quanhuzeyu/qz-miner/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 637 This file is loaded in full into every session.
When invoked 637 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.00637 $0.00637
Opus 5 $0.00318 $0.00318
Sonnet 5 $0.00127 $0.00127
Haiku 4.5 $0.00064 $0.00064

Measured 11d ago against content hash f8750b00001a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

Qz-Miner 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 11d 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.

AGENTS.md · 30 lines

What it actually says

Qz-Miner 协作规范

回答、审查结论和交付说明优先使用中文;代码标识符、命令、路径、协议字段及行业术语保留原文。

项目边界

  • 依赖方向固定为 Qz-Miner -> Qz-UILib;通用 UI 能力归 UILib,Miner 承载连锁挖矿业务、网络、掉落、世界线程与接入胶水。
  • 开始改动前先读本文件;业务现状以实时 Git、代码与 docs/反馈层/errors/ 为准。

高影响安全边界

  • 方块破坏、掉落实体生成和世界状态修改只在服务端主线程;并行 worker 只读世界并发布规划结果。
  • 并行任务在预算安全点协作式停止;不得用常规 Future.cancel(true)、超时强杀或绕过 ParallelTickExecutor.endStage(...) 屏障制造半完成状态。
  • 已收集掉落属于玩家资产:缓冲不得随会话清理丢失,生成失败或异常必须保留或回填。
  • 网络入包、客户端同步、玩家生命周期清理和 GPU 资源释放必须回到对应主线程及统一生命周期入口。
  • 可选模组能力不可用时安全降级;探测不得触发不必要的静态初始化,不把客户端专属签名带入 dedicated server。
  • 状态机、协议、持久数据、公共兼容承诺或上述边界需要改变时,先说明明确后果并取得用户确认。

工作方式与验证

  • 代码改动通过完整 build 后才作为可交付增量自动提交(本地 commit);失败时继续定位、修复并重跑。纯文档改动可跳过 build;未执行的测试、制品或运行态不得写成通过。
  • 交付前检查相关 diff、status 与近期提交风格,只暂存任务文件并自动创建本地 commit。无冲突、保留双方完整历史与内容且不删除来源分支的本地纯增量 merge 可自动执行;push、tag 与 release 仍须用户明确要求。
  • 修改历史、删除分支、丢弃提交或改动、以及会让现有内容从最终工作目录消失的 Git 操作必须先说明影响并取得用户确认;纯增量 merge 出现冲突或无法证明完整保留时也必须停止询问。
  • runClient*runServer* 与发布仍交用户或 CI;公共 API、依赖/版本、发布策略、生产操作、密钥与认证由用户决定。
  • 修改本文件、核心架构边界或发布策略前取得用户确认。

踩坑

  • 重要踩坑记录在 docs/反馈层/errors/,踩坑后及时补记。
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. 11d ago First seen · 30 lines · 637 tokens per session scan A f8750b00001a

Subscribe to this mod's changes

Qz-Miner AGENTS.md is an instructions file published in the GitHub repository QuanhuZeYu/Qz-Miner (209 stars, last pushed 24d ago), licensed MIT. It adds 637 tokens to every session, about $0.0032 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-30.

Related

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.

vercel/next.js · 7,296 tokens

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.

openai/codex · 5,153 tokens

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).

microsoft/vscode · 6,785 tokens

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.

github/spec-kit · 7,104 tokens

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).

microsoft/vscode · 5,001 tokens

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.

langchain-ai/langchain · 4,469 tokens