dsh-pelican-watch
其他 活跃维护

dsh-pelican-watch

mi-lu-uncle/dsh-pelican-watch

支持定时调度任意模型组合,自动生成鹈鹕骑自行车的画作并集中展示在只读看板。不设评分排名,画作本身就是输出,方便直接对比不同模型的生成风格。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
428 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:mi-lu-uncle/dsh-pelican-watch
git clone https://github.com/mi-lu-uncle/dsh-pelican-watch.git
git clone git@github.com:mi-lu-uncle/dsh-pelican-watch.git
README.md master

@mi-lu-uncle/dsh-pelican-watch

English | 简体中文 | 日本語

A DeepSeek Harness community plugin that runs a long-term
model-quality probe (降智监测) on a schedule, across any number of
models
:

  • Pick your models — the gear in the panel's top-right corner lists every model the
    configured providers report (live /models discovery, merged with the models
    in your DSH profile) and probes a multi-selected set, each model through its
    own provider and API key.
  • Scheduled drawing — every 30 minutes (configurable) each selected model is
    asked to draw an animated pelican riding a bicycle: a single-file HTML
    page with an inline SVG whose motion is SVG declarative animation (<animate>
    / <animateTransform>).
  • No skills, no tools — each run is a bare chat/completions request with
    no tool definitions and no agent loop, so the result measures the model
    alone, never your local skills.
  • Everything flat, nothing to click — the main board is read-only: one band
    per model, its status and figures on the left (when its newest drawing landed,
    runs, average duration, how many came back without a drawing, and the failure
    reason) and every drawing it ever made on the right, all laid out at once —
    nothing collapsed, filtered, or hidden behind a click.
  • Run state in the header — while probing: “n/m done”, which models are in
    flight, how long the slowest has waited (m:ss) and the timeout cap (m:ss), so a
    slow model and a stuck one are told apart at a glance.
  • One gear button — the panel's own top-right corner opens a settings sheet:
    pick models, pause or retune the schedule, stop the pass, see one drawing
    bigger. The board below stays pure viewing, so nothing has to be clicked to be
    read. To probe one model, press 「单独检测」 on its band: one request for
    that model — and several bands can be probing at the same time.
  • Stop it, retune it — that same sheet can pause / resume automatic
    probing
    , change the interval (1–1440 minutes), and stop the pass that is
    running right now
    : requests in flight are aborted, models that had not started
    are skipped without a request being sent. Pausing is written to
    settings.json immediately and survives a restart, so a plugin you only probe
    by hand never costs a token on its own.
  • Bounded history — keeps the newest N drawings per model (10 by
    default); the cap never gets divided between the models you are probing, and
    two providers serving the same model id keep separate histories. Same prompt,
    same model, over days: degradation shows up as worse structure, refusals
    (saved and badged 「未检出 SVG」), or latency growth.

Install

From this GitHub repository (recommended):

dsh plugin --profile desktop add https://github.com/mi-lu-uncle/dsh-pelican-watch.git

Or from a local path or tarball:

dsh plugin --profile desktop add /absolute/path/to/dsh-pelican-watch

Note: link:-installed plugins are not watched by HMR, so editing
lib/index.js or lib/client.js requires an app restart to take effect.

Choosing models

The gear in the panel's top-right corner opens the settings sheet, which lists
every provider route registered in DSH — the signed-in 「DeepSeek 账号」
account, the official API-key route, and any third-party provider you configured
— grouped by the display name DSH uses, each with the models it advertises. Tick
any number of models and Save models: from the next cycle on each selected
model draws its own picture and gets its own band on the board.

The board shows exactly the selected models, in the order they were saved —
a band never jumps around. Unticking a model and saving deletes its drawings:
anything the board cannot show is only invisible dead weight on disk, and these
probe drawings are meant to be re-drawn anyway. The save toast says how many went.

A model id is not unique: the signed-in account and a third-party provider can
both serve deepseek-flash. A band is therefore a provider + model pair, and
it carries the provider's display name next to the model name — two providers
never share one band, nor one another's drawings.

The plugin never touches key material: calls go through DSH's model service
(ctx.llm), which resolves the credential itself. That is why the
account-backed provider (no API key at all, just a signed-in account) can be
probed here, and why any provider that works in DSH works here. A provider that
cannot list its models (not signed in, expired key) still appears, with the
reason attached.

That selection lives in dir/settings.json and is what the scheduler uses;
config.model / config.targets only seed the first run. The same file holds
two knobs that decide what you spend, both changeable from the panel's gear
without touching any config file:

key default meaning
autoEnabled true Off disarms the timer at once (nextRunAt goes empty); only the manual “probe now” then spends anything, and the choice survives a restart.
intervalMinutes follows config.intervalMinutes (30) Changing it in the panel re-arms the countdown immediately — no restart.

config.model / config.targets only seed the very first run. At most 12
models are probed per cycle — concurrency of them at the same time (3 by
default), one drawing each.

Speed and timeouts

  • Models run in parallel (3 at a time by default), so one slow model no
    longer delays the others: every drawing is written to disk the moment it
    arrives and shows up in the panel within seconds.
  • Each request has its own timeout (timeoutSeconds, default 600). A model
    that exceeds it is reported as 超过 N 秒没有返回 on its own band instead of
    hanging the whole pass. Reasoning models can genuinely be slow — measured
    against one provider: qwen3.7-max ~52s, deepseek-flash ~121s (15k of those
    completion tokens were reasoning), while glm-5.3-flash sometimes exceeded
    4 minutes.
  • A timeout or HTTP error is not a drawing: nothing is saved and it does not
    count as a drawing, because that is an infrastructure fact rather than model
    behaviour. A model that answers without an SVG (a refusal) is saved and
    marked 没出图 — that is the signal worth looking at.
  • maxTokens is not sent by default: reasoning models spend tens of thousands of
    completion tokens before they draw, and a tight ceiling would truncate the SVG
    instead of speeding anything up.
  • A truncated drawing is reported as such: when the answer stops at the
    output ceiling (an <svg> without its closing tag), the band says
    「回答被截断(已输出 N tokens):SVG 没有画完,多半是达到模型的输出上限」 instead of the
    vague 「未检出 SVG」, and the half-drawn page is not kept as history. Raise
    maxTokens in the config to give a verbose model more room.

Configuration

Defaults match the usual profile setup; override any of them on a
pelican-watch row in your profile patch (cordis.patch.yml):

- id: pelican-watch
  config:
    # initial selection (the panel's picker wins once used)
    provider: deepseek-account           # a DSH provider route; account by default
    model: deepseek-flash                # model id
    # targets:                           # optional: seed several models at once
    #   - { provider: deepseek-account, model: deepseek-flash }
    #   - { provider: taotoken, model: glm-5.3-flash }
    intervalMinutes: 30                  # drawing cadence
    maxImages: 10                        # drawings kept per model (1–100; ≈5h at 30min)
    timeoutSeconds: 600                  # per-request ceiling (5–3600); lower it if a model hangs
    concurrency: 3                       # how many models are probed at once
    # maxTokens: 8192                    # optional; unset by default (see below)
    dir: ~/.dsh/pelican-watch            # where drawings are saved
    runOnStart: true                     # draw once ~8s after boot
    # temperature: 0.7                   # optional; omitted by default
    # prompt: …                          # only if you must change the benchmark

The benchmark prompt is deliberately fixed — changing it makes the history
incomparable, so treat prompt as a last resort.

The animation has to be SMIL, and that is not a preference: the panel shows the
extracted SVG through an <img>, and a browser running an SVG as an image
does not play CSS animations and never runs scripts — only declarative SMIL
moves. An animated picture driven by @keyframes or <script> will look frozen
here.

Credentials

This plugin has no API-key configuration of its own. It calls models through
DSH's model service (ctx.llm), which resolves the credential: an API-key route
uses the key DSH stores for it, deepseek-account uses the account you signed
in with. So:

  • to probe a model, first make its provider usable in DSH (Settings → Models) —
    then it is selectable here;
  • rotating a key or signing in again needs no plugin change;
  • no key ever reaches the panel or its routes (the plugin never reads one).

When a call fails the panel says what to do: 需要先在 DSH 里登录 DeepSeek 账号,
这个提供方还没有配置凭据, 被限流了, 额度不足,
超出模型的上下文窗口.

Display only — no scoring

This plugin does not score anything. It does two things: it asks every model
the same drawing prompt on a schedule, and it lays the drawings out as they are.

Earlier versions computed a 0-100 "structural score" offline (is there an SVG, two
wheels, a frame, wings…). That has been removed on request: such a number can
only approximate “did these elements appear”, and it lends a false precision.
The judgement is left to whoever looks at the pictures (or to a vision model):
same prompt, same model, over consecutive days — the drawings themselves are
the finding
, and no digit has to stand in for them.

The numbers that remain on the board are not grades, just facts: how many runs,
average duration, when the newest drawing landed, and how many runs came back
without a drawing. 没有出图 means the request returned but carried no usable
SVG (typically a refusal). The raw answer is stored on disk next to the SVG,
but the panel never renders it — clicking a drawing shows the picture alone.

Storage

Drawings live in dir (default ~/.dsh/pelican-watch):

File Role
<时间>_<模型>.html The full generated page; first line is a meta comment (model, provider, time, duration, whether an SVG was detected)
<时间>_<模型>.svg The extracted inline SVG, used for the panel's <img> preview
settings.json The selected probe targets (written by the picker) plus the two pace knobs autoEnabled / intervalMinutes

Deleting files there is safe; the panel always lists what is on disk.

Privacy & safety

  • Every route is same-origin fenced like other plugin surfaces.
  • Drawings are served as image/svg+xml with x-content-type-options: nosniff
    and a default-src 'none' CSP, and are only ever shown through <img>: the
    model's surrounding prose, markdown fences and any <script> are never
    rendered, and nothing from a model can execute in the app origin. There is no
    route that serves the stored page as HTML.

Layout

File Role
lib/index.js Host half: multi-model scheduler, schedule control, storage, /api/pelican-watch/* routes
lib/client.js Client half: the flat board (one band per model with all its drawings) plus the gear-opened settings sheet (React)
cordis.patch.yml Bundle patch that mounts the package as one host row
package.json npm metadata + dsh.bundle/dsh.client/dsh.compatibility
test/pelican.test.mjs Offline test: per-model roll-up, provider parsing, target selection, schedule control, route wiring

Test

node test/pelican.test.mjs