Tools & Capabilities

dsh-plugin-optimization

AJUbest/dsh-plugin-optimization · ★ 5

AJUbest

Plugin-Optimization: 把 DSH 设置中的插件列表分成「自带插件 / 自定义插件」两个分区,支持浏览文件夹、导入、注册、开启/关闭、删除与自动收纳;并内置插件依赖自动检测与冲突修复(一键补齐缺失依赖、重链损坏插件,解决插件启动报错)。

License
MIT
Added
2026-10-30
Maintenance
active
Install kind
github
Manifest details
Manifest status
Declared
Manifest path
package.json#dsh
Manifest checked
2026-10-30T09:38:25.281Z
Lifecycle scripts
None found

Static manifest checks report declarations only; they are not compatibility or security review.

安装

dsh plugin --profile web add 'github:AJUbest/dsh-plugin-optimization#64cc94ef0a40d41c650763557affe6bf342e86e6'

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. 🐋 dsh-plugin-optimization
  2. Features
  3. Screenshot
  4. Install
  5. How it works
  6. Directory layout
  7. Uninstall
  8. License

🐋 dsh-plugin-optimization

Plugin Manager for DeepSeek Harness · DSH 插件管理器

Splits Settings → Plugins into Built-in / Custom partitions, with visual management, dependency auto-check & one-click repair, auto classification, auto-tidy and a bilingual UI that follows the DSH language instantly.


Features

  • Custom / Built-in partitions — third-party plugins live in ~/.dsh/custom-plugins/, clearly separated from the official @deepseek-ai/* packages (which stay read-only).
  • Browse folders — open the custom / built-in partition or any plugin directory in your file manager with one click.
  • Import — paste a git URL / local folder path / npm package name; it is downloaded into the custom partition and registered automatically.
  • Register / Enable / Disable / Delete — full lifecycle management.
  • Auto-tidy (migration) — plugins previously installed via dsh plugin add are moved into the custom partition automatically after boot (one-time).
  • 8-category auto classification — color tags (MCP / Skill / Hook / Workflow / Model / UI / System / Security).
  • Dependency check & one-click repair — detect missing / broken links / version conflicts (the usual cause of "plugin failed to start") and repair them with one click.
  • Bilingual UI — follows the DSH locale instantly, no page refresh (even the settings tab label switches).

Screenshot

Install

dsh plugin --profile web add https://github.com/AJUbest/dsh-plugin-optimization.git

Requirements: Node.js and pnpm (npm install -g pnpm or corepack enable pnpm).

Restart the gateway, then open Settings → Plugins → Plugin Manager.

Tip: restart twice after a fresh install so the auto-tidy fully applies.

How it works

  • Host side (lib/index.js, Node built-ins only) registers JSON APIs via ctx.webServer.register: /plugins/dsh-plugin-optimization/api/{state,open,import,register,toggle,remove,migrate,deps/scan,deps/fix,...}
  • Register / remove / migrate reuse the official dsh plugin CLI; enable/disable edits dsh.profile.bundles (kept in sync with the plugin market) and cleans up legacy cordis.patch.yml disable blocks.
  • Dependency check resolves against plugin dir → partition node_modules → profile → dsh install, matching real module resolution.
  • Security: same-host / loopback origins only; every path is containment-checked.

Directory layout

~/.dsh/
├── custom-plugins/          ← custom partition (maintained here)
└── profiles/web/            ← profile (deps point at the partition via link:)

Uninstall

dsh plugin --profile web remove dsh-plugin-optimization

License

MIT