DeepSeek Harness plugin

dsh-plan-first-dev

开发前自动进入 plan mode:任务先出方案、用户批准后再动手(plan-first development workflow)

Jump to install

Source facts

Repository
asd176916847/dsh-plan-first-dev
Latest update
Aug 14, 2026
Category
Workflow & Automation
GitHub stars
2
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/asd176916847/dsh-plan-first-dev
Plugin: dsh-plan-first-dev
Author: asd176916847

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-plan-first-dev

开发前自动进入 plan mode 的 DeepSeek Harness (DSH) 插件:任何代码开发任务都会先产出完整方案、经用户批准后才开始实现(plan-first development workflow)。

功能

  • 自动开启:新会话创建时自动进入 plan mode(监听 agent/created,调用 planMode.set(agent, true));

- 会话从未出现过 plan/mode 事件 → 自动开启; - 用户曾主动 /plan off 或切换过模式的会话 → 尊重现状,resume 不覆盖用户选择; - 可用 config.defaultOn: false 完全关闭自动开启(保留指令层强化)。

  • plan-mode 指导强化:覆盖 plan-mode 的 section,强制"开发任务必须先提交完整实现方案(架构、改动文件、API/schema 变更、边界情况、测试与验收标准),exit_plan_mode 批准后才能写代码";
  • persona 指令:追加 plan-first 开发工作流说明(非开发任务可 /plan off 正常对话);
  • 非开发任务自动退出:插件注册 no_plan_required 工具——模型(依据 section/persona 的豁免条款)判断请求不是代码开发任务(写作、PPT、数据分析、问答等)时调用该工具,插件收到调用自动退出 plan mode,任务直接执行、无需方案与审核。任务类型由模型判断(非关键词匹配),豁免行为通过工具调用被插件识别。

工作闭环:新会话 → 自动进入 plan mode → 模型先出方案 → exit_plan_mode 提交用户审核 → 批准后才开始实施

安装

dsh plugin --profile web add "github:<owner>/dsh-plan-first-dev"

或本地路径安装:

dsh plugin --profile web add /path/to/dsh-plan-first-dev

> 安装后需重启 dsh web(或重启桌面端并让其重新拉起服务)才会生效。 > 验证:dsh web --dump-config 查看组合配置树中 plan-modesystem-promptplan-first-dev 行。

插件结构

dsh-plan-first-dev/
├── package.json        # 声明 dsh.bundle.patch → 成为 profile 层
├── cordis.patch.yml    # 配置层:plan-mode section / persona / 插入插件行
└── lib/index.js        # 代码层:agent/created 自动开启 plan mode

配置

配置项默认说明
defaultOntrue新会话是否自动开启 plan mode

示例(patch 覆盖):

- id: plan-first-dev
  config:
    defaultOn: false

说明

  • 依赖 DSH 内置的 @deepseek-ai/dsh-plan-mode(官方插件,随 dsh 安装,无需额外安装);
  • 依赖 DSH 官方 dsh.bundle.patch 插件机制(dsh plugin 自动识别为 profile 层)。

License

MIT