Introduction¶
When running Agents, installing global CLIs, and maintaining toolchains with Homebrew and npm in DSH, deciding “whether to upgrade and whether it will affect other packages” often takes more time than “how to upgrade.” Common practices like running brew outdated, npm outdated individually, or performing full upgrades based on guesswork can easily lead to treating dependency libraries as tools to be upgraded, or encountering version conflicts on shared dependencies.
cli-doctor (maintained by MaxHou-infinity) addresses this same pain point: it performs a read-only health check on local CLIs and the development environment. It lists versions, available updates, and dependency impacts by ecosystem, and provides copy-paste-ready manual upgrade commands, without executing upgrades for you. The same repository also offers a Codex sidebar plugin and an Agent Skill; the following text focuses on the DeepSeek Harness (DSH) sidebar plugin dsh-cli-doctor.
What is this¶
cli-doctor prioritizes macOS support, scanning Homebrew, npm global packages, Python/pip, Rust, Bun, uv, and self-updating CLIs. It separates “tools” from “dependency libraries brought in by tools” and outputs reports that are either human-readable or Agent-parseable. The current unified version is v0.2.0 (the Agent Skill, CLI, and Codex sidebar plugin share the same version number).
In terms of classification, it is a Client plugin in the DSH community directory: it opens a panel on the left sidebar and only runs checks when you click “One-click Diagnose Current Status”; the installation process itself does not diagnose or upgrade local tools.
Core Features¶
Below are the capabilities directly relevant to DSH usage and explicitly documented in the materials.
Report Only, No Upgrade¶
It will not execute operations such as brew upgrade, npm i -g, or pip install -U. Commands in the report require your individual confirmation before execution.
Tool and Dependency Tiering¶
Collection results are organized into two layers: Tools (Homebrew leaves, global npm packages, Python CLIs, Rust/Bun/uv, self-updating CLIs, etc.) and Dependencies (shared libraries and underlying dependencies, displayed as a summary by default). The Agent Skill side uses a fixed set of seven fields for items to be upgraded (Tool Name, Current/Latest Version, Manual Upgrade Command, Function, Coupling, Risk); the CLI is responsible for collecting facts, while the Skill handles the decision-oriented report, keeping the two layers distinct.
Sidebar Diagnosis and Underlying Commands¶
The DSH panel triggers bin/check.js --json --no-update, which shares the same logic as the standalone CLI. The page separates “Updates Available” from “Suggested Updates” and combines installed Homebrew formulas, top-level global npm packages, and metadata from distribution packages in the current python3 interpreter to assess dependency impact. Major version changes require you to perform compatibility verification yourself. Full network queries may take several minutes; items not verified via network are marked as “To Verify” and will not be falsely reported as “All Up to Date” in --fast or similar modes.
Coverage (Summary)¶
| Ecosystem | Check Content |
|---|---|
| Homebrew | Leaves tools, outdated dependencies, service restart prompts |
| npm | Global packages, current/latest versions, major version jumps |
| Python/pip | Distinguishes CLI from library dependencies via console_scripts |
| Rust | rustup toolchains, cargo installed tools |
| Bun / uv | Core version and upgrade commands, uv tools |
| Self-updating CLIs | Local tools like hermes, agy, bsk listed in the materials |
Installation and Activation¶
The DSH sidebar, Codex plugin, and Agent Skill are three independent installation methods that do not affect each other; the DSH implementation is self-contained in the dsh/ directory of the repository, and the npm package name is dsh-cli-doctor.
Method 1: Install via Agent (Recommended per official prompt)¶
Paste the entire “DSH Sidebar” prompt from the README into any DSH conversation, allowing the Agent to install and verify it via plugin_manager. Installation writes to the profile directory and requires your approval once; do not manually modify the profile’s cordis.patch.yml.
Method 2: UI or CLI¶
- In the left sidebar, go to Plugins → Add plugin and enter
dsh-cli-doctor(for local development, you can enter the absolute path ofdsh/). - Or execute in the terminal (replace
<profile>with your profile name):
dsh plugin --profile <profile> add dsh-cli-doctor
The npm package is a pre-built release and does not run build scripts during installation. The DSH sidebar does not hot-reload; upgrading requires uninstalling and reinstalling. The desktop profile is generally held by the desktop application, so a DSH restart is usually required after installation. If an incompatible-version error occurs, check the peers and runtime versions first; the materials explicitly advise against using set_version_exemption to force it through.
Runtime environment: Node.js 18+. Once the sidebar plugin is enabled, open the panel from the CLI Doctor entry on the left and click “One-click Diagnose Current Status” to start the read-only check.
Typical Usage¶
Sidebar One-click Diagnosis¶
After installation and (if necessary) restarting DSH, open CLI Doctor and click “One-click Diagnose Current Status”. This is equivalent to running the collector outside the repository with --json --no-update and will not actively run brew update.
Run CLI Only (No Sidebar Installation)¶
You can fetch and execute the collector from GitHub without installing the Skill (suitable for scripting or temporary checks):
# Human-readable collection summary
npx --yes --allow-git=all github:MaxHou-infinity/cli-doctor
# Structured data for AI / Agents
npx --yes --allow-git=all github:MaxHou-infinity/cli-doctor --json
Common variants:
# Skip network refresh and version comparison for a quick local inventory
npx --yes --allow-git=all github:MaxHou-infinity/cli-doctor --fast
# Only skip Homebrew index refresh
npx --yes --allow-git=all github:MaxHou-infinity/cli-doctor --no-update
npx --yes --allow-git=all github:MaxHou-infinity/cli-doctor --help
npx --yes --allow-git=all github:MaxHou-infinity/cli-doctor --version
Use Natural Language in Conversation (Requires separate Agent Skill installation)¶
If you have installed the cli-doctor Skill from the same repository using the skills CLI, you can use phrases like “Check the version status of my CLI tools” or explicitly Use $cli-doctor to check my CLI tool versions in a new conversation. The Skill and DSH sidebar plugin installations are independent of each other.
Skill installation example (from README):
npx skills@latest add MaxHou-infinity/cli-doctor
Use Cases and Notes¶
Who is it for: DSH users who frequently maintain multi-ecosystem CLIs on macOS and want to view a map of dependencies and risks before upgrading; it can be combined with the Agent Skill and --json output to hand off version facts to an Agent for a seven-field upgrade decision report.
Permissions and Security: Diagnosis reads the local environment with the current DSH process permissions; you should review the GitHub repository source code and the MIT license yourself before installation. The plugin is read-only, but it still accesses local package manager and interpreter information; network version comparisons may take a long time.
Boundaries: It does not scan other project directories, virtual environments, or lockfiles; it does not verify new dependencies or runtime API compatibility for target versions. For running CLIs, self-contained services, and major version jump items, the materials suggest avoiding the runtime period and verifying them separately.
Conclusion¶
cli-doctor turns the “map before upgrading” into a read-only health check within the DSH left sidebar: it distinguishes between tools and dependencies, marks items to be verified and suggested updates, provides commands for you to copy, and keeps the execution power in your hands. Community Directory Page: cli-doctor (SkillHub); Source code and full documentation: MaxHou-infinity/cli-doctor.