AI Agent Hub
Back to plugins
🖥️

dsh-plugin-dedupe

Client Updated 2026.08.18

Run the following command in DeepSeek Harness:

dsh plugin install Jiaoyc224/dsh-plugin-dedupe

Paste the following prompt into your AI chat to install this plugin:

Install this plugin in DeepSeek Harness by running dsh plugin install Jiaoyc224/dsh-plugin-dedupe; the full source is available at https://github.com/Jiaoyc224/dsh-plugin-dedupe .

About this plugin

Maintaining a DSH profile can turn into a dependency quagmire: the same plugin may be declared from npm, GitHub, and local file paths at the same time, while stale copies of the same package linger in node_modules. This kind of duplication makes the dependency graph hard to reason about and can cause unpredictable overwrite behavior during installs.
dsh-plugin-dedupe loads as a Cordis plugin and automatically scans the current profile at startup, cross-referencing package.json declarations against actual node_modules contents. It flags same-name multi-source declarations, duplicate package directories, and undeclared dsh-* leftovers, distinguishing hard errors from softer warnings. Its standout feature is registering as a pnpm preinstall hook that exits with a non-zero code before any duplicate plugin is even downloaded, blocking the install at the source.
If you manage a DSH profile with dozens of third-party plugins, or work in a team where members add and remove plugins manually and the dependency state drifts over time, this lightweight guardian catches duplicates on every install and saves you from manually diffing package.json against node_modules each time.

Use Cases

  • Prevent duplicate plugin imports from different sources in a shared DSH profile
  • Automatically detect and block duplicate plugin downloads before pnpm install
  • Quickly locate stale plugins lingering in node_modules during profile cleanup

Best For

  • Developers or small teams managing multiple DSH plugins
  • Engineers using pnpm to manage DSH profile dependencies
  • Ops staff seeking automated dependency consistency checks to reduce manual diffing