DeepSeek Harness 插件

wangqiqi/planrun

Star 数 ★ 2 分类 工作流与自动化 收录于 2026-11-27

面向 DSH 的 plan→run→verify 成长型开发流程:.growing/ 镜像(计划、逐任务复盘、教训台账)由仓库自身 dogfood;内置 28 个技能与 4 个子代理预设,外加可移植 bash 守卫(gate-check、task-verify、next-task、doctor)——复盘必交门、教训排名注入、防假绿检查(opt-in),以及回合收尾守卫:工作区有改动却没有成功 verify 印记时打回本回合。

安装

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:wangqiqi/planrun

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

English | 中文

Plan once · Run with gates · Ship with receipts.

把 Super Cursor 的 Agent 工作流 SOP 搬进 DeepSeek Harness — 28 个 workflow skill、12 人格、一套 profile bundle、项目级 .growing/ 模板。不是 DSH fork,也不是 Cursor 插件。


为什么用 PlanRun

在 Cursor 里用 /plan · /run · /release 跑 Sprint 的人,换到 DSH 后往往缺同一套可审计、可验证的流程约束。

PlanRun 填这个缝:

你得到 不是什么
28 个 bundled skills + 12 人格(Cordis 插件挂载) 不是 fork deepseek-harness
@planrun/bundle — 一套 bundle 把 28 skills + 12 人格装进 DSH profile(当前走 GitHub tag;npm 尚未发布) 不是 Cursor rules 复制粘贴
.growing/ — plan · learn · archive 项目本地镜像 不是替代 DSH 内置 /plan plan mode

日常口诀:一次 sprint-plan 批准 · 一次 run 连跑 · 决策才停 · verify 才勾 ✅

安装(任意用户) → docs/zh/install.md · 快速上手 → docs/zh/quickstart.md · 站点 → znza.top/planrun/zh


谁适合用 PlanRun

情况 说明
✅ 已用 DeepSeek Harness,想要 plan → run → verify → release 纪律 @planrun/bundle 挂载即可
✅ 想要 28 个 skill + 12 人格,不想手抄 rules/skills 包 Cordis 插件 + growth 模板
⚠️ 只用 Cursor、没有 DSH 用 Super Cursor 母版包(独立仓库)装目标项目 — 见 install.md 路径 C
❌ 要独立桌面应用或完全不要 Node 不在范围内 — 宿主是 DSH + Node 工具链

许可:MIT — 任何人可安装、修改、再分发。不需要作者账号或某台开发机路径。

前置条件(摘要)

项 用途
DeepSeek Harness + dsh GitHub / 本地 file: 安装 bundle
Node ^22.19 或 >=24 build · verify · guard
POSIX shell(bash/sh) install-planrun.sh · dsh-guard.sh · pnpm run 的 verify/guard 包装脚本,由 scripts/run-bash.mjs 自动定位(Windows 上用 Git for Windows 或 WSL)

完整表与三条安装路径 → docs/zh/install.md。

PlanRun(DSH)vs Super Cursor

PlanRun(@planrun/bundle) Super Cursor(母版包 · 独立仓库)
宿主 DeepSeek Harness profile Cursor IDE 项目
plan 文件 .growing/plan.md .growing/plan.md
安装 dsh plugin add "github:wangqiqi/planrun#<tag>"(npm:尚未发布) install-super-cursor.sh → 目标 .cursor/
本仓 packages/* — npm 待发布(当前走 GitHub tag) —(母版包已移出本仓)

工作流闭环

flowchart LR
  A[master<br/>迷路路由] --> B[sprint-plan<br/>多任务规划]
  B --> C[run<br/>ACTIVE 实现]
  C --> D{完成?}
  D -->|否| C
  D -->|是| E[release · delivery<br/>打版走查]
  C -.-> F[review · debug · test]
  B -.-> G[long · scaffold · learn · git]
阶段 Skills 一句话
路由 master 不知道下一步加载谁
规划 sprint-plan · long 多任务 Sprint / Epic(≠ DSH /plan 单任务设计)
执行 run · debug · test 按 .growing/plan.md ACTIVE 行实现 + verify
沉淀 learn · git · scaffold 项目约定 · 分支提交 · 空仓脚手架
交付 review · delivery · release PR 回顾 · 7 维走查 · merge / tag / CHANGELOG

仓库结构

cordis.patch.yml        # GitHub 直装 bundle 层(相对行名 → file:// URL)
packages/
  skill-provider/       # @planrun/skill-provider — Cordis 插件 + skills/
  bundle-planrun/       # @planrun/bundle — dsh.bundle.patch + agent presets
  workflow/             # @planrun/workflow — session hooks(growth · run-start · run-stop)
presets/                # preset 源:<id>/{preset.yml,plugins.yml}
templates/growth/       # plan.md · learn/ · archive/ 种子
scripts/                # install-planrun.sh · gen-presets.mjs · dsh-guard.sh · verify-*
docs/                   # en/ · zh/ — VitePress 文档站
组件 包 / 路径 作用
Bundled skills @planrun/skill-provider 28 workflow skills + config/roles.json(12 人格)
Profile bundle @planrun/bundle cordis.patch.yml 挂载 skill provider + workflow;presets.patch.yml 声明 4 个 agent preset
Agent presets presets/ → presets.patch.yml 官方 @deepseek-ai/dsh-agent-preset 声明(由 scripts/gen-presets.mjs 生成)
Growth 模板 templates/growth/ 项目本地 .growing/ 种子
安装脚本 scripts/install-planrun.sh 复制 growth 模板 + 打印 profile 说明
Workflow guard scripts/dsh-guard.sh gate-check · plan-check · task-verify · next-task · doctor

Bundle 声明(patch 是有序列表,与官方 dsh-web-app 同模式):

"dsh": {
  "bundle": { "patch": ["./cordis.patch.yml", "./presets.patch.yml"] }
}

快速开始

1 · 构建(本仓开发)

git clone https://github.com/wangqiqi/planrun.git planrun && cd planrun
pnpm install
pnpm run build
pnpm run verify          # 28 skills + 12 personas + DSH 适配 token 结构检查

harness 相关包(@deepseek-ai/cordis ^4.0.0,workflow 另需 @deepseek-ai/dsh-agent / @deepseek-ai/dsh-llm)是可选 peerDependencies,由你的 DSH profile 提供 —— build/verify 不需要同级 deepseek-harness checkout(只有 verify:dogfood 需要,走 DEEPSEEK_HARNESS_HOME)。

2 · 安装 bundle(DSH profile)

GitHub 直装、固定版本(当前唯一可用的安装通道)。仓库根本身就是 bundle,且运行时入口已随源码提交,pnpm 不会执行任何构建脚本:

dsh plugin --profile web add "github:wangqiqi/planrun#<tag>"   # 当前版本:#v1.10.2

npm 通道(尚未发布):@planrun/bundle · @planrun/workflow · @planrun/skill-provider 都不在 registry 上 —— registry.npmjs.org 对三者均返回 404,下面的命令要等维护者发布该 scope 之后才可用(见 publish.md):

dsh plugin --profile web add @planrun/bundle

请固定 tag 或 commit,避免后续 push 改变安装内容。GitHub 通道与 npm 通道只能选一个。pnpm run verify:lib 会在提交的运行时与 src/ 不一致时报错。

本仓开发(pack-local.sh 会先构建,再把 workspace:^ 改写成 file: 依赖):

export PLANRUN_HOME=/path/to/planrun
"$PLANRUN_HOME/scripts/pack-local.sh"
dsh plugin --profile web add "file:$PLANRUN_HOME/dist-local/bundle-planrun"

不要直接 add "file:$PLANRUN_HOME/packages/bundle-planrun":monorepo 的 workspace:^ 依赖会报 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND。

验证:

dsh --profile web --dump-config | grep planrun-skills
ls "$DSH_HOME/profiles/web/node_modules/@planrun/skill-provider/skills/"

不要在 profile 的 cordis.patch.yml 里再手动 insert 同一插件 — bundle 已挂载,双挂载会 boot 失败。

详见 publish.md · Harness publish 文档。

3 · 初始化项目 growth

在目标 Git 仓库根:

export PLANRUN_HOME=/path/to/planrun
"$PLANRUN_HOME/scripts/install-planrun.sh" --here --copy-plan

创建 .growing/(plan · learn · archive),通常 gitignore。

3b · Workflow guard(Sprint 闸门)

sprint-plan 批准 Sprint 后,run 前:

pnpm run gate-check    # PLAN_APPROVED + ACTIVE
pnpm run plan-check    # handoff 结构
pnpm run task-verify   # 当前 ACTIVE 验收
pnpm run next-task     # 下一待办 TASK id
pnpm run doctor        # 版本漂移:guard 脚本 · 模板 · 包版本

plan 路径:.growing/plan.md(开发本仓时自动回退读 .growing/plan.md)。详见 docs/zh/workflow-guard.md。

4 · 在会话中使用

用 standard preset(或 bundle 自带的 planrun / planrun-review / planrun-spike / planrun-ship),按场景加载 skill。 四个 preset 由 @planrun/bundle 的 presets.patch.yml 声明,装完 bundle 重启 dsh web 即在 preset 选择器可见(无需再手动复制目录):

Skill 何时加载
master 迷路 / 新会话
sprint-plan 多任务 Sprint 规划
run 执行 plan.md ACTIVE 行
review PR / 代码结构化回顾
learn 沉淀项目约定 → .growing/learn/
git 分支 · 提交 · 合并
scaffold 空仓库脚手架
long 跨 Sprint Epic
release merge · PR · tag · CHANGELOG
delivery 上线前 7 维走查
debug 复现优先调试循环
test TDD · 分层测试
security 合并前安全审查
api REST/OpenAPI 设计审查
refactor 安全重构 · 死代码删除
perf 性能排查(测量优先)
mcp MCP 服务器设计与 Eval
study 学新技术/语言(≠ learn 本仓约定)
user-manual 可发布使用说明书 · 配图 regen
test-report 可发布测试报告 · verify 汇总

单任务方案设计 → DSH 内置 /plan plan mode(不是 sprint-plan)。两者不是二选一:/plan 在会话内设计单任务,sprint-plan 通过 .growing/plan.md 跑多任务 Sprint。plan mode 生效期间,PlanRun 的自主链会主动让位(不注入 run-start、不在回合末 steer),避免两套策略互相打架——退出 plan mode 后自动恢复。

Bundle 变更后需重启 profile(dsh web),不像 profile 级 patch 那样热加载。


与 Super Cursor 命名对照

Super Cursor PlanRun 说明
plan skill sprint-plan 避免与 DSH /plan plan mode 冲突;skill 与宿主命令共用 / 面板,同名时优先解析为宿主命令
.growing/ .growing/ 项目本地,通常 gitignore
AskQuestion ask_user_question DSH 交互工具
rules/*.mdc docs/zh/discipline.md 常驻纪律摘要

完整对照 → docs/zh/mapping-from-super-cursor.md · docs/zh/naming.md


校验命令

pnpm run build
pnpm run verify
pnpm run verify:publish   # npm pack 结构(lib/*.js 运行时模块必须齐全)
pnpm run verify:links     # 仓库内所有 markdown 相对链接都能解析
pnpm run verify:e2e       # 构建 → 装临时 profile → boot(须 DEEPSEEK_HARNESS_HOME)
pnpm run verify:lib       # 提交的 packages/*/lib/*.js 与最新构建一致
pnpm run verify:github    # github: 直装通道端到端(须 DEEPSEEK_HARNESS_HOME)
pnpm run verify:npm       # registry 上的 bundle 端到端(仅 npm 发版后跑 —— 目前尚未发布)
pnpm run verify:dogfood   # 须 DEEPSEEK_HARNESS_HOME
pnpm run gate-check    # 有 plan 时
pnpm run typecheck

verify-planrun.sh 校验 28 个 skill 目录、12 人格 catalog、4 个 subagent preset、bundled agents/*.md、long/delivery reference、guard 脚本与 npm scripts,并确保 Super Cursor 残留 token(.growing · AskQuestion · runner.sh)不出现在 bundled skills 中。它还会在这些情况报错:bundle 内 skill 名与官方 DSH skill(dsh-badge · office-* · cordis-*)或命令(plan · compact · goal · feedback)冲突、presets.patch.yml 过期、以及使用了已废弃的 DSH 表面(agent/session-start · kind: 'plugin' · 逐工具 persona/toolFilter · backgroundMode/enableRunInBackground · list-agents 子路径 · {{cwd}} 提示词变量)。bundle 内 skill 仍指向已废弃入口(install-planrun.sh --preset · .agent-presets)、或任何仓库内 markdown 相对链接失效时,它同样会报错——这样一次文档搬家不会留下断链。

verify-plugin-e2e.sh 是唯一能证明插件真的能加载的检查:它打包三个包、装进一次性 profile、断言 --dump-config 里的 bundle 行、导入 skill catalog,并 headless boot。以下情况会失败:failed to import、dsh peer 范围不兼容、或 session format 拒绝的 message source kind。

verify-github-install.sh 对另一条分发通道做同样的事:把 github:wangqiqi/planrun(本地提交可用 PLANRUN_GIT_SPEC=git+file:///path#ref)在不授予任何构建权限的前提下装进一次性 profile,断言提交的运行时存在、根 patch 与 preset 声明都挂上,并 headless boot。


已验证范围

诚实范围,按我们 dogfood 自己的口径:下面哪些是真验证过的、对着什么验证的、哪些没测过——依赖某条通道或平台之前,先看它落在「未验证」列还是「已验证」列。

维度 已验证 未验证
安装通道 GitHub tag 通道:dsh plugin add "github:wangqiqi/planrun#<tag>" —— verify:github 在不授予构建权限的前提下装进一次性 profile,断言提交运行时与组合后的 patch,headless boot npm registry 通道 —— @planrun/* 尚未发布;verify:npm 只能在上架后跑
平台 CI 结构检查覆盖 ubuntu-latest · windows-latest · macos-latest(Node 22)+ harness 结构 dogfood job;Linux 上有真 profile 使用记录——本仓库在自己的 DSH profile 里 dogfood 自身安装 Windows / macOS 的交互式会话 —— 只有结构检查(guard 脚本的 Windows 路径只到启动器层面被验证),没有验证过的交互式运行
DSH 版本 对着当前 @deepseek-ai/dsh-root rc 线构建、安装并 dogfood(CI 检出 deepseek-harness main;本仓 dogfood profile 跑 0.2.2-rc.3);peer 范围:cordis ^4.0.0 · dsh-agent >=0.1.0-0 · dsh-llm >=0.0.1-0 超出当前 rc 线的 DSH(如 0.3 正式版)——插件跟踪当前 DSH API(agent/created、producer-owned message source);缺少 agent/created 的旧 DSH 上 workflow 插件钩子静默不触发,bash 守卫不依赖 DSH、照常可用
Node engines 声明 ^22.19 || >=24 —— CI 跑 22,本仓开发用 24 —

已知未验证,一条不少:

  1. npm registry 安装(@planrun/bundle 未发布——流程见 publish.md)。
  2. Windows / macOS 上的交互式(人驱动)会话。
  3. 超出当前 rc 线的 DSH 发布版。
  4. 离线 / 隔离环境安装 —— git 通道的 bundle 行走 file://(插件本体不查 registry),但运行时依赖(yaml、peer 类型)在安装时从 npm registry 拉取(profile 里带 node_modules + pnpm-lock.yaml);无 registry 访问的安装路径未验证。

路线图

版本 范围 状态
v0.1 MVP:master · sprint-plan · run · review + bundle + installer ✅
v0.2 batch-1 learn · git · scaffold · long ✅
v0.2 batch-2 release · delivery · debug · test ✅
v1.0 PlanRun 品牌更名 · @planrun/* · guard MVP · 16 skills ✅
v1.1 @planrun/workflow — optional hooks injection ✅
v1.2 Harness 结构 dogfood(verify:dogfood) ✅
v1.3 defer skills:mcp · study · user-manual · test-report ✅
v1.4 12 人格 + 工具类 skills · 27 bundled ✅
v1.5 npm 发布流程 · @planrun/bundle · guard cwd · 项目 guard 种子(@planrun scope 目前未上架 registry,见安装章节) ✅
v1.6 subagent 预设 · agents/*.md · docs/zh/subagents.md ✅
v1.7 DSH API 对齐(agent/created · source kind)· 发布打包修复 · preset 改为官方 bundle 声明 · verify:e2e ✅
v1.8 GitHub 直装通道(github:wangqiqi/planrun)· 运行时随源码提交(无 prepare)· verify:links · verify:github ✅
v1.9 闸门硬化(假通过改真拦截)· 跨平台启动器 · 三平台 CI · 核心技能可由模型加载 · 打包与运行时加固 ✅ current

变更记录 → CHANGELOG.md


文档索引

文档 内容
站点 znza.top/planrun/zh(docs/en/ · docs/zh/)
quickstart.md 安装与 dogfood
dogfood.md Harness 结构 dogfood(verify:dogfood)
mapping-from-super-cursor.md Super Cursor → PlanRun 映射
naming.md 命名与包坐标
workflow-guard.md Sprint 闸门(dsh-guard)
workflow-hooks-map.md Cursor hook → DSH 触点映射
publish.md npm 发布流程(尚未执行)· GitHub 直装通道
subagents.md ship · review · spike 预设与委派

许可证

MIT — 亦见 package.json → license。

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。