Skip to content

零密钥 Subagent 独立自检协议 ​

当用户没有提供 API Key,而是希望测试“当前正在对话的 AI 助手底层到底是不是它声称的模型”时,ModelPrism Skill 规定了一套严格反污染的 6 步 Subagent 自检协议。

两条不可逾越的硬红线 ​

禁止单会话上下文自答

严禁在同一个对话窗口里让模型连续回答 30 道颜色题!前序题目的回答会造成强烈的负自相关(刻意避开刚选过的颜色)或正自相关(锁定同一调色板),导致统计分布彻底失真。必须确保 1 道题目 = 1 个全新空白上下文的只读 Subagent。

  1. 宿主能力前置检查:如果当前运行环境不具备派发独立空白上下文 Subagent 的能力(例如无 invoke_subagent / Agent / Task 等原语),必须直接坦诚说明无法保证统计独立性,并引导改用 API Key 跑 check。
  2. 派发前预算透明确认:先运行 plan 生成调度单,将 budgetDisclosure 中列出的 Subagent 数量、每轮将携带的宿主系统提示词 Token 消耗告知用户,获确认后再批量并发派发。

执行流程 ​

第 1 步:生成双盲调度单 ​

对于编码助手宿主(如 Claude Code、Cursor、Codex、Antigravity),优先使用 stealth(32 题隐式前端 CSS 变量探针)——内置指纹库已覆盖 192/203 个模型,且天然契合前端工程语境,能大幅削弱宿主身份提示词(例如 You are Claude)对显式喜好题的偏置:

sh
node <SKILL_DIR>/scripts/modelprism.mjs plan \
  --preset stealth \
  --claimed anthropic/claude-opus-5.5 \
  --out self-plan.json

第 2 步:严格 1:1 盲测派发 ​

  • 读取 self-plan.json 中的 jobs[],每个 job 单独拉起一个全新上下文的 Subagent(建议按 recommendedConcurrency 分批 5–6 个并发);
  • 任务提示词只能原样发送 job.subagentPrompt,严禁在 prompt 中透漏 ModelPrism、HuePrint、测真假、指纹 等字样。

第 3 步:汇总答卷并离线评分 ​

将所有 Subagent 的原始回复(包括超时或出错条目的 error 字段)汇总为 self-responses.json:

json
[
  {
    "trialKey": "subagent:anthropic/claude-opus-5.5|imp_brand_primary|en|T1.0|r1",
    "rawText": "--brand-primary: #3A7FC4;",
    "latencyMs": 1450
  }
]

然后执行离线评分与 Markdown 报告生成:

sh
node <SKILL_DIR>/scripts/modelprism.mjs score \
  --input self-responses.json \
  --plan self-plan.json \
  --claimed anthropic/claude-opus-5.5 \
  --source-mode subagent_self_audit \
  --harness "Antigravity" \
  --out self-scored.json \
  --report-md self-report.md

同宿主双档位对照(抵消系统提示词偏移) ​

当宿主环境支持选择不同模型档位(如旗舰档 vs 轻量档)时,可以对同一份 self-plan.json 分别向两个档位派发一批 Subagent,再用 score-compare 做同宿主离线对照:

sh
node <SKILL_DIR>/scripts/modelprism.mjs score-compare \
  --input-a tier-a.json \
  --input-b tier-b.json \
  --plan-a self-plan.json \
  --label-a "旗舰档" \
  --label-b "轻量档" \
  --mode same_gateway \
  --report-md self-compare.md

由于两侧承受完全相同的宿主机长系统提示词与工具声明,环境偏移在两两对比中相互抵消,能够高置信度地判定两个档位背后是否实际路由到了同一模型。