dsh-autopilot
Oh My DSH: bounded autonomous orchestration and dynamic Cordis self-extension for DeepSeek Harness
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LiuMengxuan04/oh-my-dsh说明文档
阅读完整 README ↗
Oh My DSH
面向 DeepSeek Harness 长时开发任务的持久控制层。
(别名:DSH Autopilot · npm 注册包:dsh-autopilot)
DeepSeek Harness 本身已经能够让 Goal 持续推进。Oh My DSH 补上了长任务更容易缺失的部分:可以跨重启保存的任务图、有界 worker、固定完成检查、恢复流程,以及不会完全交给模型临场发挥的最终汇报。
它运行在 DSH 之上,而不是替换 DSH。原生 Agent loop、Goal 生命周期、权限、session、工具和 Cordis runtime 仍然是执行基础。
开发者预览
0.1.0-alpha.3 是面向 DSH 与插件系统开发者的预发布版本。DSH 本身仍在快速开发中,公开 API、插件组合、配置和持久化状态都可能在后续预发布版本中发生非兼容性修改。
请使用隔离 profile,备份重要数据,并安装精确支持的版本:
- DeepSeek Harness
0.1.0-rc.6 - Cordis
4.0.1 - Node.js
^22.19.0 || >=24.0.0
这是独立的社区项目,不是 DeepSeek 官方产品。
适合什么任务
如果需求只是“让模型继续下一轮”,原生 Goal 模式通常已经足够。任务还需要跨重启规划、依赖顺序、委派执行、验收证据和明确完成门槛时,才适合使用 Autopilot。
一次 Autopilot 运行包含:
- 持久租约,以及 round、时长、验证、动态 package 和 worker 上限;
- 需求访谈,以及固定的三角色方案审查;
- 记录依赖、尝试、阻塞和证据的持久 DAG;
- 受控一次性委派、可续接 Team worker、有界 Ralph 循环、固定 Workflow 和 Mission 队列;
- 冻结的项目检查和全新只读完成 reviewer;
- 压缩、Agent 错误、插件重载和进程重启后的恢复;
- pause、resume、stop、audit 和完成记录;
- 展示 Goal、DAG、worker、验证、预算和清理状态的文本 dashboard。
状态无法安全对账时,运行会停在 needs-attention,不会自行猜测后续动作。
快速开始
从 npm 把预发布版本安装到隔离的 DSH profile:
dsh plugin --profile web add dsh-autopilot@next
dsh --profile web --dump-config
dsh plugin --profile web exec dsh-autopilot doctor --profile web
在目标项目中打开一个顶层 DSH session,然后启动运行:
/autopilot start --rounds 256 --duration 2d 实现所需改动,补充聚焦测试和文档,运行仓库检查,并用文件与命令证据汇报结果。
Autopilot 命令必须写明操作。单独输入 /autopilot 不会自动执行 status 或 start。
/autopilot status
/autopilot dashboard
/autopilot audit --limit 20
/autopilot pause
/autopilot resume [--duration 1d]
/autopilot stop