rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:yczhang1028/dsh-model-leaderboard
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DSH bundle that adds a Model leaderboard panel to the left sidebar. It answers "which model should I use, and what will it cost" from live data instead of from memory.
The first tab groups models into ranked categories, one board at a time:
| Board | Ranks by | Source |
|---|---|---|
| Most popular | Tokens routed through OpenRouter over the last seven completed UTC days | /api/v1/datasets/rankings-daily |
| Trending | Excess token growth: the last seven days against the seven before them | same dataset, 14-day window |
| Newest | The release date OpenRouter records for the model | /api/v1/models |
| Strongest | Artificial Analysis intelligence index | /api/v1/benchmarks?source=artificial-analysis |
| Best at coding | Artificial Analysis coding index | same |
| Best at agentic work | Artificial Analysis agentic index | same |
| Best value | Intelligence index per blended dollar | benchmarks + catalog pricing |
| Cheapest | Lowest blended price per million tokens | /api/v1/models |
| Largest context | Largest advertised context window | /api/v1/models |
A model that just launched has no baseline, so its whole volume counts as growth and it tops Trending — which is what a trending board should show.
Every row carries an In DSH badge with three states:
available — this profile's llm adapter advertises that exact route.variant differs — a :free or :batch row whose variant this catalog does
not carry, so the plain route would be used. That is a different model at a
different price, so the badge warns instead of claiming availability, and
Set default says which route it actually wrote.not in catalog — DSH cannot route it. The row is still shown for comparison.Ranking permaslugs carry a -YYYYMMDD date the catalog omits, so matching strips
the date but never the variant: vendor/model:free and vendor/model are
different routes and must not collide on one lookup key.
OpenRouter sends pricing.prompt = -1 as its "variable pricing" sentinel for
router endpoints. The Host maps any negative price to "not reported", so those
rows show a dash and sort last instead of topping every cheapest-first list.
Every table sorts by clicking a column header, and clicking it again reverses the order. Rows missing the sorted value always sink to the bottom rather than sorting as zero.
Every tab carries the same filter bar:
available, variant differs or not in catalog, so
"what can I actually run right now" is one click. The three states partition
the rows exactly.The filter is shared across tabs, so one set on a tab is still in force on the next; each tab keeps its own sort. On the Boards tab the board picks the population and the starting order and the headers still sort, so Cheapest can be flipped to most expensive. On Value the filter also narrows the scatter chart, not just the table.
The Value chart is interactive:
−, + and
Reset view do the same without a pointer.LABEL_BUDGET (9)
and LABEL_SLACK (0.7, the packing buffer scale; lower packs more names in).agent-default-model row,
so new sessions start on it. The panel sends the route DSH's catalog actually
carries rather than the dated ranking slug, and carries the current reasoning
effort across so a switch does not silently drop it. An effort the target model
does not advertise is dropped rather than written, because the adapter rejects
an unsupported effort before any provider I/O.vendor/model slug on the clipboard, for the
/model command or a hand-written route.Quality, usage and trending data come from the OpenRouter Data API, which is
gated by any valid OpenRouter API key. The Host half resolves the key through
DSH's credential service under OPENROUTER_API_KEY, falling back to the same
environment variable; it is never sent to the browser. The public model catalog
needs no key.
Without a key the panel still renders prices, context lengths and release dates, and explains why the ranking boards are empty.
The browser never calls openrouter.ai directly. The Host half fetches, caches
(30 minutes for the catalog, 10 minutes for the key-gated datasets) and serves
one assembled snapshot over the same-origin route /api/model-leaderboard/*. A failed
refresh keeps the previous value and reports the failure in the panel instead of
emptying it.
Rankings data is licensed CC BY 4.0 by OpenRouter; the panel carries the attribution line.
The panel inherits the host theme and references only --dsw-alias-* tokens, so
it follows the light/dark switch and the font-size preference. Every token the
bundle references is declared by the shipped theme.
Chart marks — bars, sparklines, scatter dots, the pinned leader line and the
box-zoom marquee — use the brand-blue accent
--dsw-alias-state-business-primary at a soft alpha ramp. UI chrome — tabs,
buttons, board pills — stays on --dsw-alias-brand-primary, which is the host's
own monochrome accent, so the panel does not turn all blue.
Disabling the bundle removes the sidebar entry, the panel, and the HTTP routes.
The agent-default-model value it wrote is ordinary profile configuration and
stays until you change it.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、openrouter、deepseek-harness。