McKayGONG/dsh-safe-restart ↗★ 0
dsh-safe-restart
仅限 macOS 的 DSH 宿主插件:支持在 Agent 会话内部安全重启 DSH 进程
AI 分析
核心用途是允许 Agent 自动安全重启 DSH 进程并自动重连恢复会话。适合在 macOS 上运行复杂、长周期 Agent 任务且需要进程级重置的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:McKayGONG/dsh-safe-restart说明文档
阅读完整 README ↗Usage
Ask the Agent to call restart_dsh. With the default
continue_after_restart: true, what the user sees is:
- The host connection drops briefly (the tool response may be cut short).
- The browser reconnects automatically through DSH's native
ConnectionController— no manual refresh. - The original persisted session reappears with its preset and model.
- Exactly one new assistant turn appears, carrying the restart ID marker
[restartId: ], verifying recovery and continuing the task.
A restart with "continue_after_restart": false performs the same safe
restart and browser recovery but adds no continuation turn.