LIUFelix2004/dsh-workbuddy
AI EngineeringDSH plugin that maps WorkBuddy accounts to model routes with pooled rotation, balance display and gateway guard.
What it does
dsh-workbuddy is a plugin for DeepSeek Harness (DSH) that turns existing WorkBuddy account credentials into model providers inside DSH. Instead of launching the WorkBuddy desktop app or its CLI, it forwards chat requests to the WorkBuddy gateway directly, so the model is used without the client's system prompt and tool definitions. All accounts appear as one WorkBuddy provider whose model list is the union of the accounts' models; a local pool picks an account per request by round-robin, moves failing or rate-limited accounts into cooldown, and retries on the next account (what it does, multi-account).
The plugin also shows each account's credit balance, reads the model catalog from the local WorkBuddy product config, and installs a fetch-layer guard against the gateway's 11128 channel check (README).
Install and import accounts
Requirements: DeepSeek Harness 0.2.1 or newer (web or desktop) and Node.js 18+ (install). Install from GitHub with the profile you actually use:
dsh plugin --profile web add https://github.com/LIUFelix2004/dsh-workbuddy
Restart dsh web or the desktop app, then open a session and click the “导入 WorkBuddy 账号” button. Paste one or more account JSON objects; the minimum form is a token plus optional uid, product and name. On import the plugin stores the token in DSH's credential service, writes the WorkBuddy provider, sends one connectivity test, and fetches the balance (quick start, credentials).
Which token to use matters: an API key (ck_...) is the least dependent on the desktop client; an accessToken JWT reportedly lasts about 60 days; the token inside the desktop login file is encrypted and the plugin will ask you to supply plaintext credentials instead. Accounts can be limited to a subset of models with a models field (credentials).
The 11128 guard and jailbreak layers
The README documents local A/B tests showing the WorkBuddy gateway rejects requests with HTTP 400 and code 11128 when the system text contains certain identity strings, when a message uses the developer role, when the first message is not a system message, or when the User-Agent identifies DSH (11128 section). The plugin's lib/guard.js applies to chat/completions calls to the WorkBuddy gateway only: it merges developer messages into the system message, rewrites the matched phrases, and swaps identifying user agents. It claims to be idempotent and fail-open, and reports rewrite counts in the panel.
Separately, the plugin injects “jailbreak” layers modeled on dsh-purge: a shell block at the start of the system prompt, an anchor at the end of the last user message, and optionally the full purge text. Modes are auto, always, and shell; the README describes local test comparisons but also states that server-side moderation cannot be changed from the client and that results vary by model (jailbreak section).
Usage constraints
- The plugin targets the mainland WorkBuddy gateway (
copilot.tencent.com); the internationalworkbuddy.airules are not adapted (FAQ). - The guard only matches known fingerprints; new gateway rules will surface as 11128 errors and require rule updates (known limitations).
- Model availability depends on the account plan, and image input is allowed only when the catalog declares image support (known limitations).
- An upstream supports only streaming requests; the README says DSH's
openai-completionspath is always streaming, so this is not a practical blocker. - Enterprise balance uses a separate endpoint that is implemented but not verified on a real enterprise account (balance, known limitations).
- Tokens are stored in DSH's credential service and account records in
~/.dsh/workbuddy/accounts.jsonwith 0600 permissions; plugin HTTP endpoints accept same-origin requests only (data and privacy). - The project's own disclaimer asks users to respect WorkBuddy/CodeBuddy terms and not to resell, share accounts, or evade billing (license).
Licence and extras
The code is MIT licensed (LICENSE). The README ends with a commercial promotion block for a paid AI-tools shop (README), which is not part of the plugin's function.
HotRepo's take
The repository appeared on HotRepo's new-project list for 22 November 2026 in the JavaScript list, with 6 stars gained over the roughly 1.5-hour growth window and 40 forks; no all-language GitHub daily rank was recorded. That is a short observation window, so it supports little beyond initial traction. The technically notable part is not star count but the explicit A/B table for the 11128 channel check and the separation between the account pool and the provider configuration — these are details readers can verify in lib/guard.js and lib/pool.js (project structure). The bundled jailbreak behavior and the shop link are the parts most likely to affect whether the project fits a given DSH setup.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- changexbc/workbuddy-switchDesktop app for switching among multiple WorkBuddy and CodeBuddy accounts, copying sessions and tracking credit expiry and token usage.
- linguo2625469/workbuddy2api-panelSelf-hosted gateway that turns CodeBuddy accounts into an OpenAI-compatible API with account pooling and a web panel.
- babygoton/WorkDaddyDesktop enhancement for WorkBuddy and CodeBuddy: multi-account backups, session migration, automation and themes.
- lili-luo/dsh-plugin-bundlePlugins that connect Antigravity's ACP models to DeepSeek Harness, installable per subdirectory.
- csyangwen/dsh-memory-evolveA DSH plugin that gives AI sessions long-term memory, todos, skills, review, canvas and multi-session orchestration.