DSH XD Pool
XDTrees/dsh-xdpool把本机 WorkBuddy 桌面 App 登录过的所有账号自动并入 DSH 模型池:多账号轮换自动容错、实时积分,模型目录按模型标注积分倍率与限时免费 / 夜间折扣。
火山方舟 Coding Plan 的 DeepSeek Harness LLM provider:provider 级 PDF 与图片输入,支持 Responses API 流式。
中文 | English
Plug Volcengine Ark Coding Plan into DeepSeek Harness: text, images, and PDF document understanding
The commands below use the web profile as an example (replace it with your own profile name, e.g. headless). Pick any one of the three ways, then restart DSH.
First install fails with
ERR_PNPM_IGNORED_BUILDS? pnpm 11+ blocks dependency build scripts by default (involvingprotobufjs). Allow the build once, then re-run the install command:dsh plugin --profile web approve-builds protobufjsAfter approving, re-run the install command below. You only need to do this once.
dsh plugin --profile web add @icedcola/dsh-provider-veark
dsh plugin --profile web add github:IcedWatermelonJuice/dsh-provider-veark
dsh plugin --profile web add /path_to_dsh-provider-veark
A local install is a link-style install: it references the source directory directly, so code changes take effect immediately; do not delete or move that directory while installed, or bundle resolution breaks.
ark-code-latest); text, image, and PDF document understanding are ready.To use a PDF, select a model that declares the pdf input capability (the default ark-code-latest does). Reference a workspace document directly as @docs/file.pdf, or use @"docs/my paper.pdf" for spaces. For a document outside the workspace, click PDF beside the Composer; the plugin stages an immutable snapshot immediately and appends @.dsh-pdf/<uuid>/<filename> to the draft. /pdf remains only as a migration hint. The button is visible only for this plugin's volcengine provider when the selected model declares pdf. Custom models default to text; enable pdf only when their actual endpoint supports document understanding.
The card also offers collapsible sections for cloud image handling, endpoints, image limits, local PDF retention, retries, and the model list. Leave any field empty to restore its default.
These can also be set by editing the dsh-provider-veark: section of %DSH_HOME%\settings.yaml (hot-reloads on save; the whole section may be omitted = all defaults):
dsh-provider-veark:
preferFiles: true
chatBaseURL: https://ark.cn-beijing.volces.com/api/coding/v3 # coding gateway, do not change
filesBaseURL: https://ark.cn-beijing.volces.com/api/v3 # switch to …/api/coding/v3 when standard domain returns 403
apiKeyEnv: ARK_API_KEY
# models:
# - id: ark-code-latest
# name: Ark Code Latest
# contextWindow: 1000000
# maxTokens: 128000
# inputModalities: ["text", "image", "pdf"]
# imagePixelBudget: 640000
# imageMaxBytes: 1048576
# requestImagePixelBudget: 640000
# requestImageMaxBytes: 1048576
# fileExpirySeconds: 604800
# filesApiTimeoutMs: 15000
# filesProbeIntervalMs: 21600000
# pdfRetentionDays: 0 # 0 = keep indefinitely; 1–3650 = clean old sidecars on a later upload
Alternatively, skip the card entirely and set the ARK_API_KEY environment variable before starting DSH (or a custom reference name via apiKeyEnv).
dsh plugin --profile web remove @icedcola/dsh-provider-veark
Then restart DSH. The plugin does not modify Harness source files. You may also delete %DSH_HOME%\dsh-provider-veark\ (image state) and %DSH_HOME%\provider-veark\ (PDF sidecars). Removing sidecars makes historical PDF tokens unreadable.
| Request | URL | Billing |
|---|---|---|
| Chat | …/api/coding/v3/responses | Coding Plan subscription |
| File upload/delete | …/api/v3/files (default) | Storage API, no model tokens |
| PDF understanding | Base64 input_file inside the chat request | Coding Plan; no Files API or TOS |
Field-tested (2026-08, coding key): the coding gateway
/api/coding/v3/filesis not available; the standard domain/api/v3/filesworks. It looks like Volcengine may migrate file storage for coding plans over to the standard domain later. The default (standard domain) already works — no configuration needed.
%DSH_HOME%\provider-veark\pdfs\. Used snapshots are kept indefinitely by default; unused staged pairs and incomplete orphans are removed after a 24-hour grace period. pdfRetentionDays enables optional cleanup of used snapshots, after which old sessions cannot reopen them.@path.pdf references can read only relative paths contained by the current session workspace. Absolute and escaping paths remain ordinary text. Workspace references read the file's current contents on each request; PDF-button sidecars are immutable selection-time snapshots.Architecture, tests, publishing and the rollback manual live in DEV.md.
pnpm install
pnpm test