微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🕶️

双盲模型评测,匿名排名揭晓

modelshow · v1.0.0
效率 安全 A 级 作者 schbz 公开目录收录
1k 下载 1 安装 3.7k 收藏 16 浏览

简介

双盲多模型对比评测工具,通过独立评委匿名评分消除偏见,自动揭示模型身份并生成排名报告

原始描述

Blind multi-model comparison with architecturally guaranteed de-anonymization. Trigger with "mdls" or "modelshow" for double-blind evaluation of AI model res...

通过你的 Agent 添加

安装目录:modelshow/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/modelshow/
Codex CLI~/.codex/skills/modelshow/
DeepSeek Harness~/.agents/skills/modelshow/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

ModelShow 是一款创新的多模型对比评测工具,采用双盲实验设计确保评估客观性。用户只需以 mdls 或 modelshow 为前缀发送提示词,系统即自动触发完整评测流程:

  1. 并行查询:同时向配置的多款AI模型发送相同提示
  2. 自动轮询:每30秒检查子Agent完成状态,直至全部响应或超时
  3. 匿名化处理:通过 judge_pipeline.py 将模型响应替换为 Response A/B/C 等代号
  4. 盲评打分:由独立评委Agent在不知模型身份的情况下评分排名
  5. 反匿名化:自动映射代号回真实模型名,生成带奖牌标识的格式化报告

支持通过配置文件自定义模型列表、评委模型、超时时间等参数,结果自动保存为Markdown文件便于存档分享。

显著优点

方法论严谨:双盲设计从根本上消除了评委对特定品牌的主观偏见,评测结果更具公信力。相比公开对比测试,盲评能更真实反映模型能力差异。

自动化程度高:从模型调用、进度监控到报告生成全程自动化,用户零配置即可启动专业级评测。轮询机制确保即使部分模型响应延迟也能获得可用结果。

透明可审计:完整保留匿名化映射密钥、评委原始输出和模型响应原文,支持事后复盘验证,符合科研级可复现标准。

零依赖轻量:核心逻辑仅依赖Python标准库,无第三方包引入供应链风险,部署维护成本低。

潜在局限

来源可信度限制:由个人开发者维护(T3级别),无组织背书,企业场景建议先行代码审查或fork后自主维护。

评委模型依赖性:评测质量高度依赖配置的评委模型能力,若评委本身存在偏好或理解偏差,可能影响排名公正性。建议定期更换评委模型交叉验证。

长文本处理挑战:对于超长提示或响应,匿名化流程可能增加token消耗;复杂多轮对话场景暂未支持。

时效性约束:部分前沿模型API可能存在速率限制,并行查询时可能触发限流,需合理配置超时参数。

适合的目标群体

  • AI研究人员:需要客观基准测试验证模型改进效果
  • Prompt工程师:对比不同模型对复杂指令的理解与执行差异
  • 技术内容创作者:制作 unbiased 的模型能力评测内容
  • 企业选型决策者:在采购前进行多候选模型的盲测验证
  • 教育培训机构:向学员演示AI能力差异时避免品牌预设影响

使用风险与建议

性能风险:同步轮询多个子Agent可能产生较高计算开销,建议控制并发模型数量(推荐3-5款)。超时模型将被排除在评测外,需确保 minSuccessful 参数设置合理。

配置风险:config.json 中的模型别名需与系统可用模型精确匹配,配置错误可能导致子Agent启动失败。建议首次使用前验证配置有效性。

存储风险:评测结果保存至本地文件系统,频繁使用可能累积大量历史文件,需定期清理 outputDir。

安全建议:虽然代码审计显示无恶意行为,但T3来源属性建议在高敏感环境中启用文件系统沙箱,限制Skill仅能访问指定配置目录和输出路径。

版本建议:当前v1.0.0为初始版本,建议关注GitHub仓库更新,及时获取稳定性改进。

技能正文


name: modelshow description: Double-blind multi-model comparison with automatic de-anonymization and progress polling. Trigger with "mdls" or "modelshow". metadata: {"openclaw": {"homepage": "https://github.com/schbz/modelshow", "emoji": "🕶️"}}

ModelShow — Blind Multi-Model Comparison

Purpose

ModelShow runs your prompt through multiple AI models simultaneously, then has an independent judge evaluate the responses without knowing which model wrote which — ensuring unbiased rankings. Results are de-anonymized and presented with model names, scores, and the judge's reasoning.


Detection

Trigger: message starts with mdls or modelshow (case-insensitive). Strip the keyword to get the prompt.

Examples:

  • mdls what is the best way to learn Rust?
  • modelshow explain quantum entanglement simply

Workflow

Step 1  → Acknowledge
Step 2  → Load Config
Step 3  → Spawn Model Agents (parallel)
Step 4  → Collect Responses (auto-poll until complete)
Step 5  → Anonymize via judge_pipeline.py
Step 6  → Spawn Judge+Deanon Sub-Agent
          └─ Sub-agent runs judge, then runs judge_pipeline.py finalize
          └─ Sub-agent returns ONLY deanonymized output
Step 7  → Receive + Parse de-anonymized results → BUILD formatted output
Step 8  → Save Results
Step 9  → Present pre-built formatted output (NEVER raw JSON)

Step 1: Acknowledge

Send immediately:

🔄 ModelShow comparison starting...
Querying models in parallel — results in 30-90 seconds.

Step 2: Load Config

Read {baseDir}/config.json.


Step 3: Spawn Model Agents

For each model in config.models, spawn a sub-agent:

  • model: the model alias
  • label: mdls-{model}-{timestamp}
  • runTimeoutSeconds: from modelTimeouts[model] or config.timeoutSeconds
  • task:
{config.systemPrompt}

{extracted user prompt}

If parallel: true, spawn all at once. Agents produce pure text only — no tools.

If the user's prompt explicitly requests context (e.g. "using my preferences"), YOU fetch it first and prepend it to the task. External URLs or files: fetch them yourself and include content in the task.

After spawning, note the start timestamp and the set of pending agent labels.


Step 4: Collect Responses (Auto-Polling)

You must actively poll for sub-agent completion. Do NOT wait passively.

After spawning all model agents, enter a polling loop:

POLL LOOP (repeat until done or timeout):

  1. Check agent statuses using the `subagents` tool (action: "list")
     - Filter for agents matching label prefix "mdls-{model}-{timestamp}"
     - Mark any agent as DONE if its status is "completed" or "failed" or "timeout"

  2. For each DONE agent, collect its response:
     - Status "completed": record response text + duration
     - Status "failed" or "timeout": record as failed, no response text

  3. If ALL spawned agents are now DONE → exit loop immediately

  4. If elapsed_time >= config.timeoutSeconds → exit loop (treat remaining as timed out)

  5. Otherwise: wait 30 seconds, then repeat from step 1
     - Send a status update to the user every 2nd poll cycle:
       "⏳ Waiting for models... {N}/{total} complete so far."

After loop exits:

  • Count successful responses (status = "completed" with non-empty text)
  • Count timed-out/failed agents
  • If successful < config.minSuccessful:
    • Tell the user: "❌ Only {N} models responded (minimum {min} required). Aborting."
    • Stop here.
  • If some timed out but >= minSuccessful succeeded: continue, note the timed-out models for later

Store per-model results:

collected_responses = {
  "model_name": {
    "status": "completed" | "failed" | "timeout",
    "text": "response text or empty string",
    "duration_seconds": 45
  },
  ...
}

Step 5: Anonymize

Run:

echo '<json>' | python3 {baseDir}/judge_pipeline.py

With payload:

{
  "action": "anonymize",
  "responses": {
    "model1": "response text 1",
    "model2": "response text 2"
  },
  "label_style": "alphabetic",
  "shuffle": true
}

Only include models with status "completed" and non-empty text.

Parse output and store:

  • anonymization_map — {"Response A": "deepseek", "Response B": "grok", ...}
  • blind_responses_for_judge — {"Response A": "response text", ...}

Store anonymization_map — you'll pass it to the judge sub-agent in Step 6.


Step 6: Spawn Judge+Deanon Sub-Agent

You spawn ONE sub-agent whose job is:

  1. Evaluate the blind responses
  2. Run judge_pipeline.py finalize on its own output
  3. Return ONLY the de-anonymized results

The sub-agent task:

You are an impartial judge AND a data processor.

Your task has TWO parts. Complete BOTH before returning anything.

═══════════════════════════════════════════════════════════
PART 1: JUDGE THE RESPONSES
═══════════════════════════════════════════════════════════

You are evaluating responses from multiple AI systems under blind conditions.
The responses are labeled Response A, Response B, etc. You do not know which
AI system produced which response. Use ONLY these labels throughout your evaluation.

**Original Prompt:** {extracted_prompt}

**Responses to evaluate:**
{for each placeholder, text in blind_responses_for_judge.items():}
### {placeholder}
{text}

{end for}

**Evaluation criteria:** accuracy, clarity, completeness, usefulness

**Required output format for Part 1:**

### Rankings

1st: {placeholder} — Score: X/10
Brief justification (2-3 sentences).

2nd: {placeholder} — Score: X/10
Brief justification (2-3 sentences).

[continue for all responses]

### Overall Summary
[Key differences and winner's strengths, using only placeholder labels]

═══════════════════════════════════════════════════════════
PART 2: DE-ANONYMIZE YOUR OWN OUTPUT
═══════════════════════════════════════════════════════════

After writing your judge evaluation above, you MUST run this command
using the `exec` tool. Do NOT skip this step. Do NOT return Part 1 output
to the requester. Return ONLY the result of this command.

Run exactly this command (fill in the JSON values):

```bash
python3 {baseDir}/judge_pipeline.py <<'ENDJSON'
{
  "action": "finalize",
  "judge_output": "<YOUR COMPLETE PART 1 OUTPUT — paste it here verbatim>",
  "anonymization_map": {anonymization_map_json}
}
ENDJSON

The command will output JSON. Return that JSON verbatim as your ENTIRE response. Your response must be ONLY the JSON output of that command. Nothing else. No preamble, no explanation, no Part 1 text — just the raw JSON.

If the command fails, return: {"error": "pipeline_failed", "raw_judge_output": ""}


**Sub-agent spawn parameters:**
- model: `config.judgeModel`
- label: `mdls-judge-{timestamp}`
- runTimeoutSeconds: `config.timeoutSeconds`
- The sub-agent HAS access to exec tools (it needs to run judge_pipeline.py)

**After spawning the judge sub-agent, poll for its completion the same way as Step 4:**
- Check every 30 seconds using `subagents list`
- Send "⚖️ Judge deliberating..." status after the first 30s check
- Timeout after `config.timeoutSeconds` seconds

---

### Step 7: Receive, Parse, and Format Results

**This step builds the complete formatted output. Step 9 only sends it.**

**7a. Get the judge sub-agent's response**

The sub-agent returns a string. That string should be pure JSON. Parse it.

**7b. Handle parse errors**

If the string is not valid JSON, or contains `"error"` key:
- Check if `raw_judge_output` is available in the error object
- If yes, run the fallback finalize command yourself:
  ```bash
  python3 {baseDir}/judge_pipeline.py <<'ENDJSON'
  {
    "action": "finalize",
    "judge_output": "<raw_judge_output value>",
    "anonymization_map": {your stored anonymization_map}
  }
  ENDJSON
  • Parse that output instead
  • If that also fails: set fallback_mode = true (will present unranked results)

7c. Extract fields from parsed JSON

parsed = JSON.parse(judge_response)

deanonymized_judge_output   = parsed["deanonymized_judge_output"]   # string
ranked_models_deanonymized  = parsed["ranked_models_deanonymized"]  # array of objects
deanonymization_complete    = parsed["deanonymization_complete"]    # boolean

Each item in ranked_models_deanonymized looks like:

{"rank": 1, "model": "grok", "score": 9.2, "placeholder": "Response A"}

7d. Verify de-anonymization worked

Check that ranked_models_deanonymized contains REAL model names, not "Response A/B/C":

  • If any model field matches pattern Response [A-Z] → de-anonymization incomplete
  • Run fallback finalize exec (same as 7b fallback above)
  • If still unresolved → set fallback_mode = true

7e. ⚠️ BUILD THE FORMATTED OUTPUT NOW — store in variable formatted_output

Do NOT proceed to Step 8/9 without building this variable.

Sort ranked_models_deanonymized by rank ascending (rank 1 = best).

Build the formatted output string:

MEDAL MAP: rank 1 → 🏆 | rank 2 → 🥈 | rank 3 → 🥉 | rank 4+ → (no medal)

formatted_output = "🕶️ **Blind Judging Results:**\n\n"

FOR EACH item in ranked_models_deanonymized (sorted by rank):

  medal = MEDAL MAP[item.rank] or ""
  header = "{medal} **{item.model}** (Score: {item.score}/10)"

  response_text = collected_responses[item.model]["text"]
    (from your Step 4 data — the FULL model response text)

  judge_assessment = EXTRACT from deanonymized_judge_output:
    Find the section mentioning item.model (look for **{item.model}**) and grab
    the justification sentences that follow, until the next model section starts.
    If extraction is uncertain, include the full deanonymized_judge_output at the end instead.

  formatted_output += header + "\n\n"
  formatted_output += response_text + "\n\n"
  formatted_output += "**Judge's assessment:** " + judge_assessment + "\n\n"
  formatted_output += "---\n\n"

END FOR

formatted_output += "🕶️ *Blind judging was active — the judge evaluated anonymized responses without knowing which model produced each.*\n\n"
formatted_output += "📊 Full judge analysis available — reply \"show analysis\" to see it.\n"
formatted_output += "📄 Results saved to: `{filepath}`\n"

IF any models timed out:
  formatted_output += "\n⏱️ Timed out (excluded): {list of timed-out model names}\n"

STOP AND VERIFY before continuing:

  • formatted_output is a populated string (not empty, not JSON)
  • It contains medal emojis (🏆, 🥈, 🥉) where applicable
  • It contains actual model names (not "Response A")
  • It contains response text from Step 4
  • It ends with the file path line

Step 8: Save Results

Save to {config.outputDir}/{slug}-{YYYY-MM-DD-HHMM}.md.

Slug = first 5 words of prompt, lowercased, hyphenated.

# ModelShow Results
**Date:** {timestamp}
**Prompt:** {prompt}
**Models:** {model names}
**Judge:** {judge model}
**Judging Mode:** Blind (model identities hidden from judge)

---

## Rankings

{for each item in ranked_models_deanonymized (sorted by rank):}
### {medal} **{item.model}** — {item.score}/10
{judge notes for this model from deanonymized_judge_output}
{full response text}
{end for}

---

## Judge's Full Analysis
{deanonymized_judge_output}

---

## Blind Judging Key (Audit)
{for placeholder, model in anonymization_map.items():}
- {placeholder} → {model}
{end for}

---

## Metadata
- Total duration, models queried, successful/failed counts

Update filepath in formatted_output with the actual saved path.


Step 9: Present Results

Send formatted_output to the user. That's it.

formatted_output was built in Step 7e. It is a formatted string with medal emojis, model names, response text, and judge assessments.

⛔ DO NOT send the raw JSON from the judge sub-agent. ⛔ DO NOT send the parsed dict or any JSON object. ⛔ DO NOT send deanonymized_judge_output as a bare string. ✅ ONLY send formatted_output.

If the user later replies "show analysis" or "full analysis", send deanonymized_judge_output.


Error Handling

Situation Response
< minSuccessful models respond Tell user, abort
judge sub-agent returns error Run fallback finalize exec, then format and present
deanonymization_complete = false Run fallback finalize exec
model names still show as "Response X" after fallback Present unranked with warning
file save fails Present results, note save failure
all models fail Report error with details

Architecture

Orchestrator
    │
    ├── spawns model agents → polls every 30s until all done → collects responses
    │
    ├── exec: judge_pipeline.py anonymize → gets anonymization_map + blind_responses
    │
    └── spawns judge+deanon sub-agent → polls every 30s until done
            │
            ├── evaluates blind responses (internal)
            │
            └── exec: judge_pipeline.py finalize → returns de-anonymized JSON
                        │
                        └── Orchestrator receives JSON → PARSES it → FORMATS it → SENDS formatted_output
                            (never raw JSON to user)

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

model-comparisonai-evaluationbenchmarkingmulti-agentautomationblind-testing

同类 Skill