Back to directory

dsh-gov-portal

Curated pickMaintenance: Active

exelectron/dsh-gov-portal

政务风 WebUI 门户(默认端口 3081),经宿主 apiProxy 网关 1:1 对接 DeepSeek Harness 会话、模型、模式、权限预设、统计、SSE 事件流、沙箱审批应答、会话卷宗导出及 settings 配置修改

View on GitHub
$ dsh plugin --profile web add link:<本目录绝对路径>

41

stars

4

forks

JavaScript

Language

MIT

License

2026-08-19

Created

2026-08-27

Last push

An in-process DeepSeek Harness plugin that serves a government-portal WebUI on port 3081, bridging real agent sessions, models, modes, permissions and stats 1:1 through the host apiProxy gateway.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-09-04

License

MIT

01What can it help you accomplish?

  • Operate DeepSeek Harness agent sessions from a government-style office-hall UI

    A gov-style portal on port 3081 that bridges sessions, models, modes, permission presets, stats, the SSE event stream, sandbox approval responses and session-dossier export 1:1 to the host

    DeepSeek Harness (dsh) `web` users who want a local government-portal front-end over real agent operations

  • Inspect, search and export agent conversation dossiers and live event streams

    Session index / history / search and JSONL export via GET /api/session.export, plus a real-time supervision event table filterable at chunk level

    Operators and auditors who need traceable, exportable records of agent runs

02How to install into DeepSeek Harness

Prerequisites

  • A running DeepSeek Harness `dsh web` host process — the plugin only runs in-process and the 3081 page cannot be used without dsh
  • Node.js + pnpm for `pnpm link` reconciliation into dsh.profile.bundles

Installation steps

  1. 01

    cd <本目录>

  2. 02

    $ dsh plugin --profile web add link:<本目录绝对路径>

  3. 03

    $ dsh web

  4. 04

    访问 http://127.0.0.1:3081/ 政务办事大厅(本插件)

Verify the integration

  • node test/server-smoke.mjs
  • node test/e2e-check.mjs
  • node test/e2e-chat.mjs

03DSH integration and capability boundaries

DSH integrationNative runtime

Runs as an in-process Cordis plugin injected into the DeepSeek Harness `web` profile, bridging the host's real Agent capabilities 1:1 through the apiProxy gateway (zero business hardcoding).

  • 1:1 native agent bridge (sessions / models / modes / permissions / stats)

    Gov-portal UI actions: model pick, mode select, permission preset, message submit1:1 calls to session.models / session.selectModel, agentPreset.list / agentPreset.select, settings.describe / settings.update, events.mux → session/event, approval/requested + POST /api/respond, question/requested + respond

    所选权限在新建工单时写入宿主「新会话默认」,由宿主初始化(零 Token 消耗,不向会话发送权限消息)
  • Conversation dossier & supervision event table

    session id / search querysession.list / session.history / session.search and JSONL export via GET /api/session.export; real-time 督办流水 appended from session/event, chunk-level filterable

  • Visit counter & parameter persistence

    UI theme / port / WS / model / temperature / permission level settingsFloating popups, marquee, visual themes (4 presets + custom), agent run params, DSH native settings, storage & reset; visit counter persisted server-side

    前端配置存 `localStorage`(键 `dsh.govPortal.v1`),插件端口等存 `~/.dsh/gov-portal.json`。

04Who is it for? When not to use it?

Good for

  • DeepSeek Harness (dsh) `web` users who want a local government-portal front-end over real agent operations
  • Operators and auditors who need traceable, exportable records of agent runs

Not for

  • The plugin only runs inside the DeepSeek Harness `dsh web` host process — the 3081 page cannot be used standalone.

05Compatibility, maintenance and safety notes

  • The plugin only runs inside the DeepSeek Harness `dsh web` host process — the 3081 page cannot be used standalone.
  • Changing the listening port requires restarting dsh, because the listen parameter is read at plugin startup.
  • Test sessions are really written to `~/.dsh/sessions` and can be viewed or deleted from the dossier.
2026-08-192026-08-27Not specified by the author

MIT-licensed; not archived; latest push 2026-08-27

06Frequently asked questions

How do I install dsh-gov-portal?

Add it to the web profile with `dsh plugin --profile web add link:<directory>`, then run `dsh web` and open http://127.0.0.1:3081/. The plugin runs in-process, so a restart is required for it to take effect.

Does it hardcode business logic, or use real DeepSeek Harness capabilities?

It uses the host's real Agent capabilities 1:1 via the apiProxy gateway — session.models / session.selectModel, agentPreset.list / agentPreset.select, settings.describe / settings.update, events.mux and the approval / question frames — with zero business hardcoding.

Can the 3081 page run without DeepSeek Harness?

No. The plugin only runs inside the `dsh web` host process; the 3081 page cannot be used standalone. Changing the port also requires restarting dsh.

What can I export or inspect?

You can index, search and export sessions as JSONL via GET /api/session.export, and watch a real-time supervision event table (督办流水) filtered at chunk level. Test sessions are written to ~/.dsh/sessions.

How is configuration persisted?

Front-end config is stored in localStorage under the key dsh.govPortal.v1, while plugin-port and other host-side settings are persisted to ~/.dsh/gov-portal.json. The visit counter is persisted server-side at the /plugin/visits endpoint.

08Data and sources

  • Author-claimedgithub.com04a69c142d6f…

    通过宿主进程内的 **apiProxy 网关** 1:1 对接 DeepSeek Harness 的会话、模型、模式、权限、统计等**全部真实 Agent 能力**(零业务硬编码)。

  • Author-claimedgithub.com04a69c142d6f…

    ### 与 DeepSeek Harness 的真实对接(1:1,不硬编码)

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-09-04. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.