dsh-phoenix
Graceful restart + client auto-reconnect + cross-restart goal continuation for DeepSeek Harness (dsh). After a plugin update dsh-phoenix restarts dsh at a safe idle boundary, keeps the browser page connected, and resumes a running goal so a task can keep evolving across restarts.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:StvLi/dsh-phoenix说明文档
阅读完整 README ↗⚙️ Configuration
All knobs are environment variables with safe defaults — no configuration file required.
| Env | Default | Purpose |
|---|---|---|
DSH_PHOENIX_UNIT | dsh-web | systemd user unit to restart |
DSH_PHOENIX_DELAY | 8 | seconds between stop and start |
DSH_PHOENIX_ARMING_MS | 5000 | ignore signals for N ms after load (prevents self-trigger) |
DSH_PHOENIX_DEBOUNCE_MS | 3000 | collapse burst signals into one reboot |
DSH_PHOENIX_DEFER_POLL_MS | 3000 | idle re-check interval while deferring |
DSH_PHOENIX_DEFER_CAP_MS | 300000 | max deferral before forcing a reboot |
DSH_PHOENIX_HEALTH_MS | 4000 | browser heartbeat interval |
DSH_PHOENIX_RESTART_CMD | (empty) | custom restart command override for non-systemd deployments (see the Requirements warning) |
DSH_PHOENIX_REARM_MS | 8000 | initial delay before the goal re-arm check |
DSH_PHOENIX_REARM_RETRY_MS | 5000 | re-check interval while waiting for a re-armable goal |
DSH_PHOENIX_MAX_REARM_ATTEMPTS | 20 | cap on re-arm checks before giving up |
DSH_PHOENIX_STATE_FILE | (empty) | path to the checkpoint file that enables goal re-arm; empty disables it |