DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-toolchain-manager

w

dsh-toolchain-manager

Manifest valid

Toolchain and dependency manager for DeepSeek Harness (DSH): a Settings page for the dependency root, installed toolchains, npm/pip packages and caches.

UI (client)hasBundlePatch

DSH Toolchain Manager

A DeepSeek Harness (DSH) plugin that adds a 编译链依赖 / Toolchain page to Settings, between 模型 (Models) and 内置插件 (Plugins).

It answers the three questions that come up while building anything inside DSH:

  1. where do downloaded tools, sources, build output and caches actually live,
  2. which toolchains are installed and at what version,
  3. which npm / pip packages are installed, and how do I add or remove one.

How it works

Two lists and one grid:

  • 已安装 / Installed — every npm global package (both the DSH prefix and the OS default one, so tools installed before DSH are still listed) or pip package (user install or any venv), one per row, each with a 删除 / Delete button. Nothing to type, nothing to expand.
  • 一键安装 / One-tap install — a grid of the common dependencies. Tap one and it installs; installed entries show 已装 instead of +. The catalogs are pnpm, typescript, tsx, eslint, prettier, nodemon, serve, vite, sass, cross-env for npm and requests, httpx, numpy, pandas, beautifulsoup4, lxml, pillow, rich, tqdm, python-dotenv for pip. A collapsed 自定义… field is there only for anything outside the grid.
  • 依赖目录 / Dependency folders — all 13 folders of the dependency root (downloads, sources, build, cache, tmp, bin, npm, python, venvs, cargo, go, rustup, backups) with their sizes, plus the total. The four regenerable ones (cache, downloads, build, tmp) have an 清空 / Empty button that empties and recreates the directory; the others are marked 受保护 / Protected because they hold installed plugins, package prefixes or backups.
  • 工具链 / Toolchains — an aligned name + version list (installed first, missing dimmed).
    • 安装 / Install on a missing row runs apt-get install -y --no-install-recommends inside the DSH root (or npm install -g for pnpm): make, gcc, git, cargo, rustc, golang-go, default-jdk-headless, python3, python3-pip, pnpm.
    • 删除 / Delete (two taps) uninstalls a toolchain this plugin installed: the install is recorded in $DSH_HOME/toolchain-manager/installed.json and removal runs the matching apt-get remove -y <package> (or npm uninstall -g). Toolchains that already lived in an npm global prefix or inside the dependency root are removable the same way.
    • OS-provided binaries are marked 系统自带 / System; deleting them would break the running Harness, and node/npm themselves are never offered for install or removal.
  • 最近一次操作 — the exact command, exit code, duration and truncated output.

Install

git clone https://github.com/wanan8396/dsh-toolchain-manager.git

Then Plugins → Add plugin → local directory (or plugin_manager install_bundle with the absolute path), and open Settings → 编译链依赖.

The plugin needs no build step, no dependencies, and no configuration.

Host API

MethodPathPurpose
GET/plugins/toolchain-manager/overviewroot usage, toolchains, venvs, environment
GET/plugins/toolchain-manager/packages?kind=npmnpm global packages
GET/plugins/toolchain-manager/packages?kind=pip[&venv=NAME]pip packages
POST/plugins/toolchain-manager/runallowlisted maintenance action

run accepts only these actions:

npm-install, npm-uninstall, npm-cache-clean, pip-install, pip-uninstall, pip-cache-purge, venv-create, venv-remove, go-clean, ccache-clear, tmp-clean, dir-clean (only cache, downloads, build, tmp — emptied and recreated), tool-install (apt or npm, by tool id), tool-remove (the npm-global or dependency-root toolchain by id).

Safety properties:

  • Every command runs through execFile — no shell, no string interpolation.
  • Package names, versions and venv names are validated before they reach argv.
  • The working directory is the dependency root; commands time out after 180 s.
  • Cross-site POSTs are rejected; output is truncated before it reaches the page.

Compatibility

Developed against DSH 0.2.2-rc.3 (Android phone shell and desktop web GUI). It registers the settings.section and settings.section.icon slots, so it appears in the Settings tab row.

Limitations

  • npm and pip must be on PATH; a missing toolchain is reported, not installed.
  • Package listings come from the tools' own JSON output; an untouched global prefix shows an empty list instead of an error.
  • The one-tap grid is a fixed catalog: anything else goes through the collapsed custom field.
  • Emptying downloads or cache cannot be undone; both need a second tap.

License

MIT


中文说明

设置页里新增一页 编译链依赖(在「模型」和「内置插件」之间):

  • 已安装:npm / pip 依赖逐行列出,每行末尾一个「删除」,点一下就卸载
  • 一键安装:常用依赖的按钮墙,点一下直接装,不用输入名字;已装的标「已装」
  • 缓存与目录:cache / downloads / build / tmp 各一行,带占用大小和「清空」(二次确认)
  • 工具链:已装版本一行小标签,没装的置灰
  • 最近一次操作:命令、退出码、耗时与输出

所有命令都走 execFile(无 shell)、参数白名单校验、依赖根目录为工作目录、180 秒超时。 安装:把仓库克隆到本机,在 插件 → 添加插件 选该目录,然后打开 设置 → 编译链依赖。

Comments

Loading…

Similar plugins

dsh-manage-api

by ZYH1207

DSH(DeepSeek Harness)插件端:ManageAPI 原生设置面板、daemon 生命周期托管、真实用量回写、预算熔断

Manifest valid

★ 0

MIT

JavaScript

Nov 5, 2026

dsh plugin --profile web add dsh-manage-api

by huabai-flowerwhite

面向 DeepSeek Harness(dsh)的**第三方插件管理器**:在 Web UI 设置页选择第三方插件库文件夹,搜索其中所有第三方插件,并一键关闭/启动(刷新 dsh 后生效)。

Manifest valid

★ 3

↓ 185/wk

MIT

JavaScript

Oct 25, 2026

dsh plugin --profile web add dsh-plugin-manager

by wuyh

DSH (DeepSeek Harness) Web 工作区工具箱插件:文件浏览、Docker 与 Vite 项目管控、SSH/容器终端。

Manifest valid

★ 0

MIT

TypeScript

Aug 19, 2026

dsh plugin --profile web add dsh-workspace-toolbox

by asdf17128

Manage DeepSeek Harness profiles — list, create, clone, diff, and share a whole dsh setup as one portable file.

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 3

MIT

JavaScript

Aug 29, 2026

dsh plugin --profile web add dshp

by CHAAAAA

DeepSeek Harness(DSH)的项目与工程管理插件,把需求、项目文档、Git 提交、AI 提交信息、代码评审、工作树、后台任务与周报聚合到一个侧边栏工作台里。

Manifest valid

★ 0

MIT

TypeScript

Nov 2, 2026

dsh plugin --profile web add dsh-devbench-plugin

by deepseekv41flash

DeepSeek Harness plugin: makes a reverse-proxied (non-loopback) dsh web page count as a trusted host, so the Settings surface loads instead of reporting "settings are unavailable in this browser".

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 5

↓ 102/wk

MIT

JavaScript

Oct 8, 2026

dsh plugin --profile web add dsh-remote-trust