Introduction¶
The main GUI of DeepSeek Harness (DSH) is usually fixed to a specific port. If you want to provide a “Government Service Hall” style interface for colleagues or yourself, without hardcoding model lists, permission tiers, or session data within the page, you need a frontend shell that is solely responsible for display and orchestration, while fetching all business logic from the host in real-time. The following introduces the community plugin dsh-gov-workbench (maintainer zbzbhshs): It launches a government portal-style WebUI on a plugin-specific port. Browser requests are forwarded through the plugin layer, which calls the host API gateway directly within the same process, integrating capabilities such as sessions, settings, and Agent presets.
What is this¶
dsh-gov-workbench is a DSH Cordis plugin categorized as a “Client”. The package name is dsh-gov-workbench, with the entry point lib/index.js (ESM), assembled into the profile bundle via cordis.patch.yml. By default, it provides the interface at http://127.0.0.1:3091/; matters, models, permissions, and statistical criteria all come from the host, and the page makes no business presets.
Verified on a real machine (Records indicate: dsh 0.2.0-rc.2, Node v24.18.1, Windows desktop profile): The plugin mounts successfully, port 3091 is listening normally; /plugin/status reports hostAvailable: true; session.list returns real sessions; agentPreset.list includes standard, ptc, minimal, cordis, computer-use, redteam; settings.describe drives dynamic forms on the system configuration page; six sections are switchable. The repository also contains 138 automated tests based on a mock ctx.
The interface consists of six sections: Workbench Home, Matter Processing, Dossier Archives, Run Trajectory, System Configuration, and Rules & Regulations (The README contains descriptions for each section and screenshot paths; screenshots are generated from demo data, not real content from this machine).
Architecture Highlights¶
The plugin runs within the dsh main process, starting a node:http service (bound to loopback) on the default port 3091. Static pages in public/ are accessed via HTTP/SSE; lib/host.js binds to ctx.typertGateway (0.2.0+) or the legacy ctx.apiProxy, performing direct calls within the same process without secondary network hops. The browser only interacts with 3091 same-origin, avoiding CORS and preventing exposure of host tokens to the browser. On the page side, wire notations like session.list are used, which the plugin maps to the real host namespaces.
Main modules (README): index.js (Cordis main body), host.js (Gateway and parameter projection), bridge.js (/api/* RPC and dossier export), security.js (Origin/token admission), transport.js / sse.js (HTTP envelope and SSE), static.js (Static hosting), config.js (Configuration and tokens).
Installation and Enablement¶
Prerequisites¶
| Item | Requirement |
|---|---|
| dsh | Integration surface is based on 0.2.0-rc.2 (lib/host.js performs capability detection, other versions may also run) |
| Node | ≥ 22.19 (engines in package.json) |
| Port | 3091 is free (Intentionally avoids main GUI 3080 and original gov-portal 3081) |
| profile | CLI cannot use --profile desktop (Exclusive to Electron); for testing, use web or a custom profile, denoted as <PROFILE> below |
Confirm versions:
dsh --version # Expected 0.2.0-rc.2 (when aligning with records)
node --version # Expected v22.19.0 or higher
Place Source Code on Target Machine¶
The project has no runtime dependencies and requires no build. The README recommends packaging the directory into a zip, copying it to the test machine, and extracting it to obtain the absolute path <PLUGIN_DIR> (e.g., ~/plugins/dsh-gov-workbench/package.json existing is sufficient). If installing via a github: source, git must be in the target machine’s PATH (pnpm will call git ls-remote); otherwise, install via local path.
Installation Commands (from README)¶
For joint debugging, using a link: soft link to the source directory is recommended:
dsh plugin --profile <PROFILE> add "link:<PLUGIN_DIR>"
Example (macOS / Linux):
dsh plugin --profile web add "link:/home/user/plugins/dsh-gov-workbench"
Example (Windows):
dsh plugin --profile web add "link:C:\plugins\dsh-gov-workbench"
Other syntax (README table):
| Scenario | Command |
|---|---|
| Copy to profile store, decoupled from source | dsh plugin --profile web add "file:<PLUGIN_DIR>" |
| Relative path near profile directory | dsh plugin --profile web add "../dsh-gov-workbench" |
| Published to registry | dsh plugin --profile web add dsh-gov-workbench |
Before installation, confirm echo $DSH_HOME points to the local dsh home. The package declares dsh.bundle.patch pointing to ./cordis.patch.yml in package.json, which will be reconciled into the profile’s bundle stack after installation; packages without dsh.bundle declared will only be treated as normal dependencies and trigger a warning.
After installation, restart the dsh process for the corresponding profile and visit http://127.0.0.1:3091/ in a browser to check the six sections and /plugin/status.
Typical Usage¶
- Browse and Process: In “Matter Processing”, submit dialogues via wire APIs (such as
session.prompt); records indicate that on real machines,asOfSeqinsession.projectionsgrows with turns, and the host can automatically generate session titles. - Dossiers and Trajectories: “Dossier Archives” supports session indexing, retrieval, and JSONL export; “Run Trajectory” displays event streams and allows filtering by character-level output.
- System Configuration: “System Configuration” dynamically generates forms based on the schema from
settings.describe(Verified on real machine: 24 host namespaces can be rendered and are writable). - Joint Debugging: When installed via
link:, changes to plugin source code take effect after restarting dsh.
The respond loop for approval/inquiry popups and the item-by-item verification of sessionStats statistical criteria are listed as known limitations in README §8; refer to the repository docs/ before use.
Applicable Scenarios and Notes¶
Suitable for: Developers or intranet demo environments that need to attach a government portal-style web workbench alongside the DSH host, and wish to keep sessions, Agent presets, and settings consistent with the host.
Notes:
- The plugin runs in the same process and with the same permissions as dsh; before installation, read the GitHub Source and the MIT license (
package.json1.0.0), and assess security and compliance yourself. - The community directory SkillHub Plugin Page is an independent site and has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “Everything is a plugin”, and this package is one of the community-contributed client layers.
- Do not treat demo titles or paths in README screenshots as local machine data; reproduce the verification steps in README Section 3 on the target profile and dsh version before production use.
Conclusion¶
dsh-gov-workbench provides a government portal interface on the independent port 3091, leaving display and RPC orchestration on the plugin side, and leaving sessions, models, and configuration to the host gateway. To view categories and brief introductions, open the directory page; for installation details, architecture diagrams, and test descriptions, refer to the GitHub README.
- Directory Page: https://www.skillhub.cn/plugins/zbzbhshs/dsh-gov-workbench
- GitHub: https://github.com/zbzbhshs/dsh-gov-workbench