DeepSeek Harness Plugin

webkubor/dsh-env-inspector

Stars ★ 4 Downloads (30d) 2,687 Category Tools & Capabilities Added 2026-09-23 npm @dsh-plugins/dsh-env-inspector

PC environment diagnostics & port control board: zero-dependency inspection of system, CLI toolchains, active listening ports with hover-to-kill release, and model key readiness. No external calls, zero plaintext secrets.

Install

# from npm (prebuilt)

dsh plugin --profile web add @dsh-plugins/dsh-env-inspector

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:webkubor/dsh-env-inspector

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


🎯 What it solves

Situation The usual pain What dsh-env-inspector does
Ports keep getting taken A stray Node/Python process from a closed terminal still holds the port, and the next start fails with EADDRINUSE Lists every listening port; click "×" to release it safely (kill the process) and the view refreshes itself
Listening on all interfaces by accident A service quietly binds 0.0.0.0 and is reachable from the LAN Flags wildcard-bound ports with a yellow warning dot so access control gets a second look
High ports drown out signal Dozens of ephemeral ports (49152+) make the real ones hard to find Smart drawer: common dev ports stay visible, ephemeral ones collapse by default and expand on demand
Slow environment triage Debugging means typing node -v, git --version, lsof over and over A dedicated dashboard tab: OS, 12 common CLIs, and model-key presence in one place

✨ Features

1. 🔌 Port overview with one-click safe release

  • Live probing via the system lsof probe, with a minimal PATH fallback so macOS daemons are found too.
  • Ephemeral-port collapsing to keep the list readable.
  • Safety rails that hold:
    • 🛡️ No self-immolation: DSH's own port :3080 is permanently locked (shown with a 🔒 badge), as is the DSH host's own process.pid; core system PIDs are refused outright.
    • 🔍 Consistency re-check: before killing, the server verifies the target PID really is listening on that port — so PID reuse can't cause a wrong kill.
    • ⚡ Two-phase exit: SIGTERM first to allow graceful cleanup, escalating to SIGKILL only if needed.
    • 🔄 Auto re-scan: no browser refresh required — the port disappears and the KPI count drops immediately.

2. 🛠️ Toolchain and version sniffing

Two-column rounded cards that detect 12 common developer tools and their versions:

  • Core CLI: node / npm / pnpm / yarn / git / cs / docker / mise / brew
  • AI CLI: codex / gemini / claude / opencode / agy, plus common AI IDEs and local model tooling
  • Runtimes: python3 / go / rustc — only shown when a version is actually readable

3. 🔐 Model keys and credentials (never in plaintext)

  • Configured model providers are surfaced and highlighted in green.
  • Unconfigured environment variables appear as small dim tags, out of the way.
  • Hard rule: no endpoint or component ever prints, reads, or forwards a secret value.

4. 🧩 Plugins and network interfaces

  • Lists the DSH plugins loaded in the current Web / Local profile, with their effective versions.
  • Shows LAN IP and public egress IP separately, and whether an explicit proxy is configured. The public IP is probed only after you click.

📦 Install

Only Node.js is required — no global dsh install; upstream's official entry is npx @deepseek-ai/dsh. If dsh is installed globally, use dsh instead.

npx @deepseek-ai/dsh plugin --profile <your-profile> add @dsh-plugins/dsh-env-inspector

Desktop app users: the official Electron app owns the desktop profile exclusively — the CLI refuses plugin operations on it (profile "desktop" is managed exclusively by the Electron application). Install and update from the plugin manager inside the app; the CLI form above is for self-managed profiles.

Add @dsh-plugins/dsh-env-inspector to dsh.profile.bundles in ~/.dsh/profiles/<your-profile>/package.json, then restart the DSH desktop app (quit and reopen it) and open the 计算机环境 / Environment tab.


🔒 Security notes

  • No secret value is ever rendered, logged, or transmitted — only presence/absence.
  • Port-kill refuses DSH's own port and PID, core system PIDs, and re-verifies PID↔port binding before acting.
  • Network egress detection is user-initiated only.

License

MIT © webkubor

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.