DSH 插件市场DeepSeek Harness 社区插件目录

dsh-comfyui-supervisor

已验证 工具与能力 ★ 2 0.1.0

Lazy start / idle-exit lifecycle tools for a local ComfyUI server, packaged as a DeepSeek Harness (DSH) plugin.

一句话定位

Lazy start / idle-exit lifecycle tools for a local ComfyUI server, packaged as a DeepSeek Harness (DSH) plugin.

安装方式

在 DSH 的 web profile 中执行下面的命令;装完刷新页面即可。

$ dsh plugin --profile web add 'git+https://github.com/nizhouding-tech/dsh-comfyui-supervisor.git#dd2e9337d9fd88c296abf2d15d58b59d8afd64c0'

兼容的 DSH 版本

未声明

作者与热度

nizhouding-tech · ★ 2 · 更新于 2026-11-06

关于这个插件

dsh-comfyui-supervisor

Lazy start / idle-exit lifecycle tools for a local ComfyUI server — as a DeepSeek Harness (DSH) plugin.

The plugin starts nothing at boot. It gives the agent three tools to manage ComfyUI on demand:

| Tool | What it does |

|---|---|

| comfyui_status | Is ComfyUI up? Which device? Is this instance managed by us? VRAM / version. |

| comfyui_start | Ensure ComfyUI is running: probe → spawn a detached supervisor → wait until ready. |

| comfyui_stop | Stop it and release RAM/VRAM. Only kills instances we started unless force=true. |

The bundled supervisor (assets/supervise.cjs, zero dependencies) keeps the process tree alive while

it is in use and kills it after N idle minutes — no more "leave ComfyUI running all day" or

"remember to start it before generating".

> Unofficial community tool. Not affiliated with ComfyUI, DeepSeek or AMD.

The problem

Local image plugins for DSH (and for every other harness) assume one of two things:

  • ComfyUI is always on → 3–4 GB of RAM plus a resident GPU allocation while you are not even

generating, or

  • you start it by hand → the first generate_image call fails, and you have to switch windows,

remember the batch file, wait ~40–60 s, then retry.

Both are bad. This plugin makes the lifecycle explicit and automatic: start on demand, exit when idle.

Install

# recommended: GitHub tarball (no npm account, no SSH key required)
dsh plugin --profile web add https://github.com/nizhouding-tech/dsh-comfyui-supervisor/archive/refs/heads/main.tar.gz

# pinned to the v0.1.0 release
dsh plugin --profile web add https://github.com/nizhouding-tech/dsh-comfyui-supervisor/archive/refs/tags/v0.1.0.tar.gz

> github: shorthand (dsh plugin add github:user/repo) resolves to git+ssh:// in pnpm and fails

> without SSH keys. Either use the tarball URLs above, or run pnpm config set git-protocol https

> first.

Restart DSH once. The three tools then appear in the tool table.

> Requires: DSH 0.2.x, Node 22+, Windows for the process-tree kill (the probe/start path is portable).

Configure

cordis.patch.yml of the installed plugin entry:

- insert:
    - id: comfyui-supervisor
      name: dsh-comfyui-supervisor
      config:
        baseUrl: http://127.0.0.1:8188
        comfyRoot: D:\ComfyUI
        idleTimeoutMinutes: 30
        startTimeoutSeconds: 300

| Field | Default | Meaning |

|---|---|---|

| baseUrl | http://127.0.0.1:8188 | ComfyUI endpoint used for probing |

| comfyRoot | D:\ComfyUI | Where ComfyUI_windows_portable and logs/ live |

| idleTimeoutMinutes | 30 | Kill ComfyUI after this much time without generation |

| startTimeoutSeconds | 300 | How long comfyui_start waits for readiness |

How it works

comfyui_start
   ├─ GET /system_stats  → up?  return immediately
   └─ spawn(node assets/supervise.cjs --root ... --port ... --idle-min ...)
          ├─ writes .supervisor.lock (single instance) + .supervisor.state (pids)
          ├─ starts ComfyUI, waits for /system_stats
          ├─ polls /queue and /history every 15 s
          └─ idle > idleTimeoutMinutes → taskkill /T /F, remove state files, exit

同分类对比

同一分类下 Star 最高的 5 个,便于横向比较。

插件作者 Star版本更新
Mole tw93 74.5K 0.0.0 2026-11-10
DeepSeek-Reasonix esengine 36.1K 0.0.0 2026-11-10
dsh-desktop anywhere-labs 35.6K 0.4.1 2026-11-06
awesome-dsh-plugin awesome-dsh-plugin 24.1K 0.1.0 2026-11-10
dsh-market dsh-market 11.8K 1.73.17 2026-11-09