Introduction¶
When using WorkBuddy capabilities in DeepSeek Harness (dsh), the common approach is to set up a workbuddy2api gateway yourself and manually write llm-pi-ai.providers.workbuddy. This requires keeping a separate process running, copying model metadata from the gateway to your configuration, and often needing bash and python3 for login scripts on Windows. Here we introduce the community plugin dsh-pylon-workbuddy (maintainer rumilhz): it only handles process lifecycle and model directory automation, leaving protocol adaptation, account pooling, circuit breaking, etc. to the Go gateway side. It’s self-hosted without wrapping an upstream API.
What This Is¶
dsh-pylon-workbuddy is a Cordis plugin for dsh (npm package name dsh-pylon-workbuddy, family prefix dsh-pylon-). After installation:
- It automatically starts the gateway subprocess when dsh launches, and reclaims it on exit; if there’s already a healthy gateway on
127.0.0.1, it reuses it without starting another or killing other processes. - On first launch, it reads the gateway’s
GET /v1/modelsand writes context window, output limits, input modalities, reasoning tiers, etc. into an editableworkbuddyprovider in “Settings → Models”. The provider is only fully rebuilt when you delete it completely. - It provides 7 slash commands for installation, status, provider synchronization, and account login.
SkillHub categorizes it as “Model Inference”. The GitHub repository rumilhz/dsh-pylon-workbuddy currently has release version 0.4.0 (based on package.json).
Compared to Manual Gateway Integration¶
| Issue | Manual Approach | This Plugin |
|---|---|---|
| Model metadata | Manually copy contextWindow / maxTokens / reasoningEfforts / input for each model; must edit files when gateway adds/removes models |
Reads /v1/models on first run, writes to provider based on actual measurements |
| Process management | Need separate persistent wb2a-server process |
Binds subprocess lifecycle to dsh |
| Getting binaries | Install Go → clone → build | /wb2api-setup downloads and verifies SHA256 |
| Account login | Upstream scripts depend on bash + python3 | In-plugin OAuth, pure Node |
| Distribution | Configuration only on local machine | Install tarball from this repo’s GitHub Releases |
The provider is written under the profile’s llm-pi-ai entry, and the chat model selector, sub-agent routing, and “Settings → Models → Providers” all read from the same source; models you delete in the model page won’t be automatically restored (unless you use the rebuild command, see below).
Core Features¶
Process and Provider¶
Default baseURL is http://127.0.0.1:7863/v1, apiKeyEnv is WORKBUDDY2API_API_KEY. The plugin maps gateway fields to dsh’s LlmResolvedModelInfo (e.g., context_length → context.contextWindow, supports_images → inputModalities), without needing a built-in static model table.
Management Commands¶
The 7 commands listed in the README:
/wb2api-setup: Download gateway, prepare directories, guide login, start and sync models (complete initialization in one command, no local Go or python3/bash required)./wb2api-status,/wb2api-start,/wb2api-restart: Status and process control./wb2api-login,/wb2api-account: Login and account management./wb2api-provider: Read-only comparison of differences between gateway and local provider;--rebuildonly adds without deleting;--rebuild --resetoverwrites entirely with gateway directory (will overwrite your filters in the model page).
Request Serialization Constraints¶
The plugin ensures tool results are role:"tool", and user messages maintain their content and order within turns, to avoid breaking upstream RequestID aggregation by conversation turns (details in the repository’s docs/turn-level-aggregation.md).
Prerequisites¶
- Install dsh globally:
npm i -g @deepseek-ai/dsh
The plugin is verified on dsh 0.2.0-rc.2; the package.json declares peer compatibility range as >=0.1.2-rc.1 <0.2.0-0 || >=0.2.0-rc.1 <0.3.0-0.
-
A WorkBuddy account (domestic and international versions are separate systems, choose the one you have).
-
The gateway binary is automatically obtained by
/wb2api-setup; the upstream continuation repository is HanawaBanana/workbuddy2api (the original Sliverkiss repository has been deleted).
Installation and Activation¶
Do not run dsh plugin add dsh-workbuddy2api: this old name on npm has been taken by someone else and is unrelated to this repository. This plugin is not published on npm, please install from the GitHub Releases of rumilhz/dsh-pylon-workbuddy.
Recommended method (Release tarball URL, example version 0.4.0):
dsh plugin --profile web add https://github.com/rumilhz/dsh-pylon-workbuddy/releases/download/v0.4.0/dsh-pylon-workbuddy-0.4.0.tgz
You can also first download dsh-pylon-workbuddy-<version>.tgz, then:
dsh plugin --profile web add file:/absolute/path/dsh-pylon-workbuddy-0.4.0.tgz
dsh plugin add only modifies node_modules and dsh.profile.bundles on disk; the running dsh will not reload the plugin list. After installation, please restart dsh, then execute in conversation:
/wb2api-setup
For first time, you can specify region: /wb2api-setup cn or /wb2api-setup global. The steps will report in sequence: locate or download executable (SHA256) → generate config.json and random api_key (only listens on 127.0.0.1) → login → start gateway and sync models.
Typical Usage¶
For daily inference: simply select models under workbuddy in “Settings → Models” in dsh chat or sub-agents, routing and page editing share the same provider.
After new models are added on the gateway side, the local directory won’t automatically update. First check differences:
/wb2api-provider
Only add new models from gateway to configuration (doesn’t resurrect deleted IDs):
/wb2api-provider --rebuild
When needing complete alignment with gateway directory, or if provider was manually written/state file lost:
/wb2api-provider --rebuild --reset
The latter will overwrite your filters in the model page; the “Full Rebuild” button on the settings card uses this command. The plugin records provided model IDs in <dsh home>/.wb2api/state.json; before writing provider, it backs up patch outside profile, after writing reads back for verification, and rolls back on failure.
Use Cases and Notes¶
Who it’s for: Developers already using or planning to use workbuddy2api self-hosted gateway, who want to unify model selection in dsh with less process and JSON maintenance.
Permissions and Security: The plugin runs with current dsh process permissions, will download and execute gateway binaries, write profiles and local state; please read the repository source code and LICENSE before installation to confirm the license and behavior are acceptable.
Known Behavior: The model directory is only synced from gateway by default when first created; afterwards your edits in “Settings → Models” take precedence. To see what models were later added on gateway, use the read-only /wb2api-provider.
Ecosystem Note: The DSH community plugin directory (such as SkillHub plugin page) is an independent site, with no official affiliation with DeepSeek/幻方.
Conclusion¶
dsh-pylon-workbuddy combines workbuddy2api process hosting and /v1/models to editable provider implementation into a single installation and initialization path, suitable for self-hosted WorkBuddy inference in dsh. For more information, see the SkillHub directory page and GitHub repository.