hj01857655/dsh-plugins--packages-dsh-model-arena ↗★ 0

dsh-model-arena

使用相同提示词同时测试所有模型并直观对比输出差异 适合需要横向评测、对比不同大模型回答质量的开发者或研究者。

套件
dsh-model-arena
相容性
待驗證
Cordis 依賴範圍
~4.0.4
版本
0.6.1
授權
MIT
最近更新
2026年10月16日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hj01857655/dsh-plugins#5a7f8533f4dcd4f85ec3ebd7e9fa0a071445bf65&path:packages/dsh-model-arena

dsh-model-arena

npm version npm downloads CI license node GitHub stars dsh plugin

Run the same prompt through every model you have, and see the difference without squinting.

Install

dsh plugin --profile web add dsh-model-arena

Or from source:

dsh plugin --profile web add github:hj01857655/dsh-model-arena

What it does

  • Run a prompt through N models. Same prompt, identical parameters, outputs collected side by side.
  • Compare. Line-level diff between any two model outputs — additions, deletions, and unchanged lines, with a summary of how many lines changed.
  • Score. Auto-scorer (length, latency, reference match) + manual user ratings (1–5). Scores are persisted per run, so you can rate a model later and the leaderboard updates.
  • Leaderboard. Aggregate scores across runs into a ranked table — win rate, average score, and total runs per model.
  • Benchmark suites. Save a named set of prompts + models, re-run after changes, get a regression report that tells you which models improved and which got worse.
  • Panel. Settings page listing recent runs with drill-down to comparison view, leaderboard, and regression reports.

CLI

dsh-model-arena list                              # list recent runs
dsh-model-arena compare      # diff two models in a run
dsh-model-arena rate  --model M --rating 4   # rate a model output

Panel

A Model arena page inside Settings. The host registers GET /api/model-arena.panel and rebuilds the payload from the store on every request. A headless host simply skips the route.

The panel shows:

  • Recent runs with model outputs side by side
  • Line-level diff viewer for any pair of models
  • Auto-scores and user ratings per model output
  • Leaderboard across all runs
  • Regression reports for benchmark suites

Layout

PathRole
src/index.tsHost half — apply(ctx), exposes the modelArena service
src/arena.tsCore arena logic — run, compare, rate, leaderboard, regression
src/scoring.tsAuto-scorer and leaderboard builder
src/diff.tsLine-level diff algorithm
src/store.tsDurable .arena/ store
src/arena-view.tsPayload → view model, shared by host route and browser half
src/cli.ts / src/bin.tsCommand-line entry, usable without dsh
src/routes.tsPanel route on the host's web connection
src/client/view.tsxBrowser half — pure rendering
src/client/index.tsxBrowser half — fetch and settings registration
src/client/locales.tszh / en dictionaries

Develop

npm ci
npm run typecheck
npm run build
npm test

License

MIT