Service control panel in DSH Web settings: live host info (PID, versions, uptime, memory/CPU trends, active sessions), npm update banner, and a confirm-guarded graceful stop that warns when tasks are running and can wait for them to finish.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-stop-service
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:KhaosGx/dsh-stop-service
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
English | 中文
A "Service" section for DeepSeek Harness (DSH) Web settings: live service info plus a confirm-guarded graceful stop button — no more orphaned background processes.
Features
- Live service info: PID, start time, uptime, active sessions (sub-agents excluded, running tasks flagged), memory, CPU, Node / DSH host / plugin versions, platform — auto-refreshed every 5s; memory/CPU sparklines with 3 min / 15 min / 1 hour windows, samples persisted to localStorage (~1h capacity, survive reloads); rows highlight when CPU ≥ 80% or memory ≥ 1024 MB; collapsible loaded-plugins inventory with installed versions and link-install tags
- Update banner: compares against npm dist-tags at the top of the panel and, when a newer DSH host or plugin exists, offers one-click copy of the upgrade command plus links to the npm page / GitHub releases (queried from the browser — the host never phones out)
- Copy diagnostics: one click puts a clean version/runtime summary on your clipboard for issue reports
- Connection status: when the host stops responding, a banner names the snapshot age instead of silently showing stale data (a stop issued from this page does not trigger it)
- Confirm-guarded stop button: escalates to an interruption warning when tasks are running, otherwise names how many live sessions will disconnect; the host exits gracefully via SIGTERM — sessions flush and the port is released, identical to
kill <pid>from a terminal - Drain-then-stop: "Stop After Tasks Finish" waits for every running task to complete, then stops the service automatically (client-side watching only — the host keeps no timers; keep the settings page open)
- Header quick stop + multi-tab sync: any settings page offers the same confirmed stop from the shell header; tabs coordinate the stopping state over BroadcastChannel so none is left hanging on stale data
- Auto-reload: after stopping, the page watches for the restarted host and refreshes itself
- Theme-aware via
--dsw-*tokens
Compatibility
- DeepSeek Harness
>= 0.1.2-rc.1(verified on 0.1.2-rc.1) - Web profile (
platform: web)
Install
Option 1 (recommended) — npm:
dsh plugin --profile web add dsh-stop-service
Option 2 — GitHub direct:
dsh plugin --profile web add github:KhaosGx/dsh-stop-service
Option 3 — clone and link (for development):
git clone https://github.com/KhaosGx/dsh-stop-service.git
cd dsh-stop-service
dsh plugin --profile web add link:$(pwd)
Restart dsh web after installing, then find the panel under Settings → Service.
How it works
| File | Role |
|---|---|
lib/index.js |
Host side: three loopback-only routes — GET /health (liveness), GET /info (service and profile info), POST /stop (acknowledge, then SIGTERM after 300ms) |
lib/client.js |
Browser side: registers the settings section via the official settings.section slot; polls /info for the info panel and sparklines, queries npm dist-tags directly for the update banner |
cordis.patch.yml |
Bundle self-registration (dsh.bundle.patch) |
Security
- Routes accept loopback-only requests: a loopback socket address AND a loopback Host header AND browser same-origin markers must all hold;
X-Forwarded-Foris never trusted, everything else gets403 forbidden: loopback-only stopis POST-only; the action is equivalent to a terminalkillwith no extra capabilities and no persistence; the host process makes no outbound network requests (update checks happen in the browser)
Attribution
The loopback request fence is adapted from dsh-client-ui-skill-explorer by zhu1090093659/dsh-web (BSD 3-Clause, © 2026 zhu1090093659); see the third-party notice in LICENSE.
License
MIT © 2026 KhaosGx
Links
More in this category
yjh051108/dsh-routing-suite★ 6997
One repository, three parts: a runtime injector for DSH plugin packages (inject, hot-reload, unload, promote a dev staging tool to the front, route self-heal, plus a settings-page plugin manager that lists, unloads and drags folders in to internalize), a task-aware reasoning-mode router agent preset (router-standard / router-spec / router-react), and a graded two-level task protocol whose six tools (commit_star, lock_stage, revise_do, edit_plan, mark_task, redteam_verdict) pin task state to disk. The injector implementation ships in-tree, so the install carries its own behaviour rather than a dependency list.
strukto-ai/mirage#dsh★ 3696
Swaps the filesystem and bash providers for a mirage virtual workspace: file tools and shell commands run over mounted resources (RAM, S3, Redis, Slack, Gmail, Notion, Postgres) instead of the host disk, with per-mount read/write/exec modes, per-command sandbox routing (monty, pyodide, quickjs in process; docker, e2b, daytona remote), and installed CLIs (git, gh, slack, linear, ntn, gws, or one you register) as head words in the virtual terminal.
first-fluke/oh-my-agent#dsh★ 1344
Runs project OMA checks before and after tool execution and when a turn tries to finish. Installs its OMA CLI dependency and initializes unconfigured projects on first use. Requires Node.js 22+; initial setup needs network access and project write access.
hust-open-atom-club/oh-dsh★ 322
Community distribution: TUI, desktop, and Web UI as one bundle with layered installation.
weijiafu14/pi2dsh★ 217
Pi Host ABI compatibility engine: after one install, unmodified Pi extensions from npm mount as native DSH plugins with `dsh plugin add <pi-package>`. Verified end to end on stock DSH with pi-mcp-adapter (full MCP manager: OAuth, resources, prompts, MCP Apps, elicitation, sampling), @tintinweb/pi-subagents, pi-code, pi-hermes-memory and pi-background-tasks; `pi2dsh inspect` reports a package's compatibility before installing.
Fishquito7/dsh-skill-mcp-panel★ 207
Manages DSH skills and MCP servers from the web settings: skill cards with hot enable/disable, workspace scopes, groups, batch migration and drag-and-drop import, plus stdio/HTTP MCP CRUD with connection tests, secret redaction and the unified dsh-panel CLI.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.