Plugin directory / Developer / dsh-plan-first-dev
dsh-plan-first-dev
Unverified asd176916847
What it does
DSH 插件:开发前自动进入 plan mode(plan-first development workflow)
Unverified — not yet verified
DSH 插件:开发前自动进入 plan mode(plan-first development workflow) Not yet verified — install and test it yourself.
“Unverified” means our automated CI has not yet installed this plugin. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.
README
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-mode、system-prompt与plan-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
配置
| 配置项 | 默认 | 说明 |
|---|---|---|
defaultOn |
true |
新会话是否自动开启 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
Install
Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:
dsh plugin add dshbase-catalog Then say "install dsh-plan-first-dev for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.
This plugin is GitHub source (not published to npm) — install it straight from the repo:
Web profile:
dsh plugin --profile web add github:asd176916847/dsh-plan-first-dev Headless (CLI) profile:
dsh plugin --profile headless add github:asd176916847/dsh-plan-first-dev Test report
Not yet L3-verified — see failure note below if we already ran it.