dsh-autopilot-public
其他 活跃维护

dsh-autopilot-public

My-Denia/dsh-autopilot-public

将目标自动拆解为可执行计划,按步骤执行后自动审计结果,形成全流程闭环。内置状态追踪与人工介入接口,关键节点可干预调整,让任务从计划到审计全程透明可追溯。

0
Stars 标星
1
Forks 分支
0
Watchers 关注
1
Open Issues
TypeScript
主要语言
MIT
开源协议
3.7 MB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:My-Denia/dsh-autopilot-public
git clone https://github.com/My-Denia/dsh-autopilot-public.git
git clone git@github.com:My-Denia/dsh-autopilot-public.git
README.md main

English · 简体中文

dsh-autopilot

A plan → execute → audit plugin for DeepSeek Harness (dsh). It ports the goal-autopilot harness (GAH) workflow into dsh plugin hooks: the agent plans first, an independent subagent audits the plan, a delegated executor does the work, a second audit checks the result, and the run only closes with evidence for every acceptance criterion.

npm
CI
License: MIT

[!NOTE]
The npm package is dsh-goal-autopilot. The unscoped dsh-autopilot on npm is an unrelated package.

Install

Requires dsh 0.2.0 (or 0.1.2-rc.1 / 0.1.5-rc.1) and Node 22+.

Desktop: Settings → Plugins → Add plugin, enter dsh-goal-autopilot@0.2.0, then Install and Enable.

CLI / headless / web:

dsh plugin --profile <name> add dsh-goal-autopilot@0.2.0

Usage

In a chat on that profile:

Use dsh-autopilot to implement <goal> and verify the result.

To drive the autopilot_* tools by hand, see the operator reference.

How it works

dsh-autopilot run loop

A run moves through planning → plan-reviewing → executing → execution-reviewing → completed. State lives under $DSH_HOME/storages/dsh-autopilot/runs/<sessionId>/.

  • Plan gate. File writes and edits are blocked, and read-only sandbox mode is requested, until the plan audit passes. The plan states goal, scope, non-goals, risk, milestones and acceptance criteria, and declares observable usage states with autopilot_usage.
  • Independent audits. Auditors are one-shot subagents with read-only tools and maxDepth: 1, returning pass, needs-replan or blocked.
  • Same-executor resume. One continuable executor does the work; on needs-fix the same executor continues.
  • Egress guard. git push, gh release and npm publish are intercepted and need a valid evidence manifest (<run>/outbound/manifest.json) plus owner approval.
  • Evidence-bound closeout. completed is refused until both gates pass and every acceptance criterion has an artifact on disk.
  • Turn reminder. Up to three nudges if the agent stops mid-run.

Design details: DESIGN.md.

Status

Developer preview.

Tested Install, mount, skill registration, plan audit, delegated executor and needs-fix resume on WSL2 + dsh 0.2.0-rc.2 with a local mock model
Not yet tested Full run with a real model, Desktop on macOS/Windows, native Windows, browser card rendering
Host range dsh 0.2.0 line, 0.1.5-rc.1, 0.1.2-rc.1 (0.1.7 and 0.2.1 are outside the peer range)
Distribution npm; GitHub Releases carry notes only

See docs/compatibility.md and docs/security.md.

Documentation

Development

git clone https://github.com/My-Denia/dsh-autopilot-public.git
cd dsh-autopilot-public
pnpm install
npm run build
npm run check
npm test
dsh plugin --profile dev add .

License

MIT © 2026 My-Denia