dsh-plugin-orphan
Manifest validRun detached background processes that survive DSH shutdown, with status and log tools.
DSH 独立后台进程插件
让模型启动在 DSH 关闭后继续运行的 Windows 后台进程。使用 WMI 服务创建独立运行器,不依赖 detached/unref 逃离宿主 Job。
工具:orphan_start(程序绝对路径、参数数组、工作目录、名称)、orphan_list、orphan_status、orphan_logs、orphan_stop。所有任务以唯一 ID 持久保存到用户 .dsh/orphan-processes(DSH_HOME 设置时使用该目录)。stdout/stderr 分别写入文件,退出码保留供重启后查询。
只允许主会话调用,按当前用户权限执行,不自动提权。启动由操作系统 WMI 提供,可能处于非交互会话,适合服务器、脚本、下载、后台计算;不保证交互桌面窗口。exe+参数直接启动,需 shell 时明确指定 powershell.exe 或 cmd.exe。
进程不设自动超时,DSH退出也不自动清理。用 orphan_stop 显式停止;停止前持有运行器进程句柄并核验 PID、创建时间与路径,停止当前可发现的子树。若运行器被外部程序强杀,目标仍可能存活,此时显示 orphaned,插件拒绝仅凭旧 PID 强行停止。机器关机/注销和程序自身退出仍可能结束进程;本插件不创建开机自启或后台服务。启动结果不确定时先查询任务 ID/list,避免重复启动。日志默认持续追加,请为长期任务自行安排日志轮转。
安装后完全退出并重开 DSH,工具才能加载。本机安装目录在 desktop profile/plugin-orphan,源码保留在工作区 dsh-orphan-plugin。
Comments
Loading…
Similar plugins
by bitsmug
Runs commands as background jobs that keep executing when DSH exits, with an optional sandbox to constrain file effects, plus a live web panel and offline CLI/GUI management. Windows only for now.
★ 4
↓ 470/wk
MIT
JavaScript
Nov 16, 2026
dsh plugin --profile web add bgjobsOne-call restart for the running DSH process, with launchd-aware supervision detection, a verifiable restart log, and a bottom-right GUI control.
★ 0
dsh plugin --profile web add dsh-restartby vlln
DSH 插件:定时循环(/loop 命令 + loop 工具 + 活动状态条)。官方 bundle 插件,dsh plugin --profile web add 安装
★ 7
↓ 365/wk
MIT
JavaScript
Oct 21, 2026
dsh plugin --profile web add @vlln/dsh-loopby chen8923
Live progress for long-running DSH tasks: scripts report structured progress, the Web UI shows it in a floating overlay, a sidebar tab, and a settings page.
★ 0
MIT
TypeScript
Sep 24, 2026
dsh plugin --profile web add dsh-task-progressby JohnnnSinaaa
DSH plugin: a session_call task_dispatch turn cannot close until it replies with task_report to its caller.
★ 0
MIT
JavaScript
Nov 1, 2026
dsh plugin --profile web add dsh-report-fixby GooDAnDReaDY
Scheduled cron tasks, background automation and agent execution for DeepSeek Harness.
★ 17
↓ 2.8k/wk
MIT
JavaScript
Nov 17, 2026
dsh plugin --profile web add @goodandready/dsh-cron