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
lsofprobe, with a minimalPATHfallback 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
:3080is permanently locked (shown with a🔒badge), as is the DSH host's ownprocess.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:
SIGTERMfirst to allow graceful cleanup, escalating toSIGKILLonly if needed. - 🔄 Auto re-scan: no browser refresh required — the port disappears and the KPI count drops immediately.
- 🛡️ No self-immolation: DSH's own port
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, usedshinstead.
npx @deepseek-ai/dsh plugin --profile <your-profile> add @dsh-plugins/dsh-env-inspector
Desktop app users: the official Electron app owns the
desktopprofile 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
Links
More in this category
DayuanJiang/next-ai-draw-io#dsh-plugin★ 36749
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
Tencent/WeKnora#dsh-weknora★ 36302
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
superdesigndev/treg★ 7042
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 5074
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
sixtysevenlf/dsh-blender-plugin★ 1575
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1155
Tencent CloudBase backend for DeepSeek Harness — scaffold and deploy full-stack apps from chat, render query results as table cards with paging, sorting and CSV export, preview a deployment on its domain, and call the CloudBase MCP toolset (`mcp__cloudbase__*`) with device-code login.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.