DSH XD Pool
XDTrees/dsh-xdpool把本机 WorkBuddy 桌面 App 登录过的所有账号自动并入 DSH 模型池:多账号轮换自动容错、实时积分,模型目录按模型标注积分倍率与限时免费 / 夜间折扣。
一键同步 / 自动同步供应商模型列表,与 /v1/models 保持一致。
中文 | English
One-click / auto model sync for DeepSeek Harness providers. The plugin queries each provider's /v1/models endpoint and replaces the stored model list with what the endpoint advertises (models the endpoint no longer lists are removed; other provider fields are kept).
settings / llm APIs — no custom Host RPC.agent/session-start, 10s debounce). The toggle persists in the plugin's model-sync settings namespace + localStorage.npx (recommended — nothing to install first)# One command installs the plugin into the current DSH web profile
npx github:zhangyqjiaoshou-oss/dsh-model-sync install
After the package is published to npm, this becomes
npx @dsh-external/dsh-model-sync install.
dsh plugin add (bundle-capable environments)dsh plugin --profile web add @dsh-external/dsh-model-sync
# Build from source
bash scripts/build.sh
# Inject into the running DSH
dev_inject_plugin C:/Users/niclas/Desktop/dsh/model-sync
✅ N total (+added -removed); failures show ❌ with the reason.| Field | Type | Default | Description |
|---|---|---|---|
autoSync | boolean | false | Auto-sync model lists whenever a conversation page opens |
debounceMs | number | 10000 | Minimum milliseconds between two automatic syncs |
The auto-sync switch can also be toggled in the Settings UI; changes are written to the model-sync namespace.
Conversation page opens → agent/session-start event (Host)
→ re-query each provider's /v1/models
→ settings.update writes the new model list
→ settings/document-updated fires
→ browser model selector refreshes automatically
Manual sync uses only official wire APIs (llm.discoverModels + settings.mutate) — no custom Host RPC.
bash scripts/build.sh # auto-detects a DSH checkout or npm global install
npx tsc -p tsconfig.json # typecheck
npx tsdown # client bundle (lib/client.js)
MIT