planrun
wangqiqi/planrun
A plan-to-run-to-verify growth workflow for DSH: a .growing/ mirror (plan, per-task retros, lessons ledger) that the repository dogfoods on itself; 28 bundled skills and 4 subagent presets, plus a portable bash guard (gate-check, task-verify, next-task, doctor) with a retro gate, ranked lesson injection, an opt-in fake-green check, and a turn-end guard that steers the turn back when the working tree moved without a successful verify stamp.
Install
dsh plugin --profile web add github:wangqiqi/planrunREADME
PlanRun
English | 中文
Plan once · Run with gates · Ship with receipts.
Port the Super Cursor agent workflow SOP into DeepSeek Harness — 28 workflow skills, 12 personas, one profile bundle, and project-local .growing/ templates. Not a DSH fork, and not a Cursor plugin.
Why PlanRun
People who ran sprints in Cursor with /plan · /run · /release usually miss the same auditable, verifiable process constraints after moving to DSH.
PlanRun fills that gap:
| You get | It is not |
|---|---|
| 28 bundled skills + 12 personas (Cordis plugin mount) | A fork of deepseek-harness |
@planrun/bundle — one bundle installs 28 skills + 12 personas into a DSH profile (GitHub tag today; npm not published yet) | Copy-pasted Cursor rules |
.growing/ — a project-local plan · learn · archive mirror | A replacement for DSH's built-in /plan plan mode |
The daily rule: approve one sprint-plan · run it in one go · stop only for decisions · tick ✅ only after verify
Install (any user) → docs/en/install.md · Quick start → docs/en/quickstart.md · Site → znza.top/planrun/en
Who should use PlanRun
| Fit | Reason |
|---|---|
| ✅ You use DeepSeek Harness and want plan → run → verify → release discipline | PlanRun mounts as @planrun/bundle |
| ✅ You want 28 bundled skills + 12 personas without hand-copying a rules/skills pack | Cordis plugin + growth templates |
| ⚠️ Cursor only, no DSH | Use the Super Cursor pack (separate repo) in your repo — see install.md Path C |
| ❌ You need a standalone desktop app or zero Node | Out of scope — the host is DSH + a Node toolchain |
License: MIT — anyone may install, modify, and redistribute. No maintainer account or machine-specific paths required.
Prerequisites (summary)
| Item | Required for |
|---|---|
DeepSeek Harness + dsh | GitHub / local file: bundle install |
Node ^22.19 or >=24 | build · verify · guard scripts |
A POSIX shell (bash/sh) | install-planrun.sh · dsh-guard.sh · the pnpm run verify/guard wrappers, which locate it via scripts/run-bash.mjs (Git for Windows or WSL on Windows) |
Full table and three install paths → docs/en/install.md.
PlanRun (DSH) vs Super Cursor
PlanRun (@planrun/bundle) | Super Cursor (mother pack · separate repo) | |
|---|---|---|
| Host | DeepSeek Harness profile | Cursor IDE project |
| Plan file | .growing/plan.md | .growing/plan.md |
| Install | dsh plugin add "github:wangqiqi/planrun#<tag>" (npm: not published yet) | install-super-cursor.sh → target .cursor/ |
| This repo | packages/* — npm publish pending (GitHub tag works today) | — (the pack no longer lives in this repo) |
The loop
flowchart LR
A[master<br/>routing] --> B[sprint-plan<br/>multi-task planning]
B --> C[run<br/>implement ACTIVE]
C --> D{Done?}
D -->|no| C
D -->|yes| E[release · delivery<br/>ship check]
C -.-> F[review · debug · test]
B -.-> G[long · scaffold · learn · git]
| Stage | Skills | In one line |
|---|---|---|
| Routing | master | You do not know which skill to load next |
| Planning | sprint-plan · long | Multi-task sprint / epic (≠ DSH /plan single-task design) |
| Execution | run · debug · test | Implement the ACTIVE row of .growing/plan.md + verify |
| Retention | learn · git · scaffold | Project conventions · branches and commits · empty-repo scaffold |
| Delivery | review · delivery · release | PR review · 7-dimension ship check · merge / tag / CHANGELOG |
What's inside
cordis.patch.yml # GitHub-install bundle layer (relative rows → file:// URLs)
packages/
skill-provider/ # @planrun/skill-provider — Cordis plugin + skills/
bundle-planrun/ # @planrun/bundle — dsh.bundle.patch + agent presets
workflow/ # @planrun/workflow — session hooks (growth · run-start · run-stop)
presets/ # preset sources: <id>/{preset.yml,plugins.yml}
templates/growth/ # plan.md · learn/ · archive/ seeds
scripts/ # install-planrun.sh · gen-presets.mjs · dsh-guard.sh · verify-*
docs/ # en/ · zh/ VitePress site + mapping · quickstart · workflow-guard
| Piece | Package / path | Role |
|---|---|---|
| Bundled skills | @planrun/skill-provider | 28 workflow skills + config/roles.json (12 personas) |
| Profile bundle | @planrun/bundle | cordis.patch.yml mounts the skill provider + workflow; presets.patch.yml declares 4 agent presets |
| Agent presets | presets/ → presets.patch.yml | Official @deepseek-ai/dsh-agent-preset declarations (generated by scripts/gen-presets.mjs) |
| Growth templates | templates/growth/ | Project-local .growing/ seeds |
| Installer | scripts/install-planrun.sh | Copies growth templates + prints profile instructions |
| Workflow guard | scripts/dsh-guard.sh | gate-check · plan-check · task-verify · next-task · doctor |
Bundle manifest (patch is an ordered list, the same shape the official dsh-web-app uses):
"dsh": {
"bundle": { "patch": ["./cordis.patch.yml", "./presets.patch.yml"] }
}
Quick start
1 · Build (repo development)
git clone https://github.com/wangqiqi/planrun.git planrun && cd planrun
pnpm install
pnpm run build
pnpm run verify # 28 skills + 12 personas + DSH adapter token checks
The harness packages (@deepseek-ai/cordis ^4.0.0, plus @deepseek-ai/dsh-agent / @deepseek-ai/dsh-llm for workflow) are optional peer dependencies provided by your DSH profile — build/verify needs no sibling deepseek-harness checkout (only verify:dogfood does, via DEEPSEEK_HARNESS_HOME).
2 · Install the bundle (DSH profile)
From GitHub, pinned (works today — the only install channel that works). The repo root is itself a bundle and its runtime entry points are committed, so pnpm runs no build script at all:
dsh plugin --profile web add "github:wangqiqi/planrun#<tag>" # current release: #v1.10.2
From npm (not published yet): @planrun/bundle, @planrun/workflow and @planrun/skill-provider are not on the registry — registry.npmjs.org returns 404 for all three, so the command below only works after the maintainer publishes the scope (see publish.md):
dsh plugin --profile web add @planrun/bundle
Pin a tag or a commit so a later push cannot change what you install. Install the GitHub channel or the npm one, never both. pnpm run verify:lib fails when the committed runtime drifts from src/.
From this repo (pack-local.sh builds first, then rewrites the workspace:^ deps to 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"
Do not add "file:$PLANRUN_HOME/packages/bundle-planrun" directly: the monorepo's workspace:^ deps fail with ERR_PNPM_WORKSPACE_PKG_NOT_FOUND.
Verify:
dsh --profile web --dump-config | grep planrun-skills
ls "$DSH_HOME/profiles/web/node_modules/@planrun/skill-provider/skills/"
Do not insert the same plugin again in the profile's cordis.patch.yml — the bundle already mounts it, and a double mount breaks boot.
See publish.md · Harness publish docs.
3 · Seed project growth
At the target Git repository root:
export PLANRUN_HOME=/path/to/planrun
"$PLANRUN_HOME/scripts/install-planrun.sh" --here --copy-plan
Creates .growing/ (plan · learn · archive); usually gitignored.
3b · Workflow guard (sprint gate)
After sprint-plan approves a sprint, before run:
pnpm run gate-check # PLAN_APPROVED + ACTIVE
pnpm run plan-check # handoff structure
pnpm run task-verify # acceptance for the current ACTIVE task
pnpm run next-task # next pending TASK id
pnpm run doctor # install drift: guard files · template · package versions
Plan path: .growing/plan.md (while developing this repo it falls back to .growing/plan.md). See docs/en/workflow-guard.md.
4 · Use in a session
Use the standard preset (or the bundle's own planrun / planrun-review / planrun-spike / planrun-ship) and load skills by situation. The four presets are declared by @planrun/bundle's presets.patch.yml; restart dsh web after installing the bundle and they appear in the preset picker (no manual directory copy):
| Skill | When to load |
|---|---|
master | Lost / new session |
sprint-plan | Multi-task sprint planning |
run | Execute the ACTIVE row of plan.md |
review | PR / structured code review |
learn | Capture project conventions → .growing/learn/ |
git | Branch · commit · merge |
scaffold | Empty-repository scaffold |
long | Cross-sprint epic |
release | merge · PR · tag · CHANGELOG |
delivery | 7-dimension pre-release check |
debug | Reproduction-first debugging loop |
test | TDD · layered testing |
security | Pre-merge security review |
api | REST/OpenAPI design review |
refactor | Safe refactor · dead-code removal |
perf | Performance investigation (measure first) |
mcp | MCP server design and eval |
study | Learning a new technology/language (≠ learn, which is repo conventions) |
user-manual | Publishable user manual · figure regen |
test-report | Publishable test report · verify summary |
Single-task design → DSH's built-in /plan plan mode (not sprint-plan). They are not alternatives: /plan designs one task in-session, sprint-plan runs a multi-task Sprint through .growing/plan.md. While plan mode is active, PlanRun's autonomous chain stands down (no run-start injection, no turn-stop steer) so the two policies never fight — leave plan mode and the chain resumes.
After a bundle change, restart the profile (dsh web); it does not hot-reload like a profile-level patch.
Naming vs Super Cursor
| Super Cursor | PlanRun | Notes |
|---|---|---|
plan skill | sprint-plan | Avoids the clash with DSH /plan plan mode; skills share the / palette and a shared name resolves to the host command first |
.growing/ | .growing/ | Project-local, usually gitignored |
AskQuestion | ask_user_question | DSH interaction tool |
rules/*.mdc | docs/en/discipline.md | Standing discipline summary |
Full mapping → docs/en/mapping-from-super-cursor.md · docs/en/naming.md
Checks
pnpm run build
pnpm run verify
pnpm run verify:publish # npm pack structure (every lib/*.js runtime module must ship)
pnpm run verify:links # every repo-relative markdown link resolves
pnpm run verify:e2e # build → install into a temp profile → boot (needs DEEPSEEK_HARNESS_HOME)
pnpm run verify:lib # committed packages/*/lib/*.js matches a fresh build
pnpm run verify:github # the github: channel end to end (needs DEEPSEEK_HARNESS_HOME)
pnpm run verify:npm # the registry bundle end to end (only after an npm release — nothing is published yet)
pnpm run verify:dogfood # needs DEEPSEEK_HARNESS_HOME
pnpm run gate-check # when a plan exists
pnpm run typecheck
verify-planrun.sh checks 28 skill directories, the 12 persona catalog, 4 subagent presets, bundled agents/*.md, long/delivery references, guard scripts and npm scripts, and ensures Super Cursor legacy tokens (.growing · AskQuestion · runner.sh) do not appear in bundled skills. It also fails on a bundled skill name that collides with an official DSH skill (dsh-badge · office-* · cordis-*) or command (plan · compact · goal · feedback), on a stale presets.patch.yml, and on retired DSH surfaces (agent/session-start, kind: 'plugin', per-tool persona/toolFilter, backgroundMode/enableRunInBackground, the list-agents subpath, the {{cwd}} prompt variable). It also fails when a bundled skill still points at a retired surface (install-planrun.sh --preset · .agent-presets) or when any repo-relative markdown link is dead, so a docs move cannot leave a dangling path behind.
verify-plugin-e2e.sh is the only check that proves the plugin loads: it packs the
packages, installs them into a throwaway profile, asserts the bundle rows in
--dump-config, imports the skill catalog, and boots headless. It fails on
failed to import, an incompatible dsh peer range, or a message source kind the
session format rejects.
verify-github-install.sh does the same for the other distribution channel: it installs
github:wangqiqi/planrun (or PLANRUN_GIT_SPEC=git+file:///path#ref for a local commit) into a
throwaway profile without granting any build permission, asserts the committed runtime is
present, that the root patch and preset declarations composed, and boots headless.
Verified scope
Honest scope, the way we dogfood ourselves: what below is actually verified, against what, and what has not been tested — read this before depending on a channel or platform that is in the "not verified" column.
| Dimension | Verified | Not verified |
|---|---|---|
| Install channel | GitHub tag channel: dsh plugin add "github:wangqiqi/planrun#<tag>" — verify:github installs it into a throwaway profile without build permissions, asserts the committed runtime and the composed patch, and boots headless | npm registry channel — @planrun/* is not published; verify:npm can only run after the first registry release |
| Platform | CI structural checks on ubuntu-latest · windows-latest · macos-latest (Node 22) + the harness-structural dogfood job; live profile usage on Linux — this repo dogfoods its own install in a running DSH profile | Interactive sessions on Windows and macOS — covered by structural checks only (the guard scripts' Windows path is exercised at launcher level); no verified interactive session there |
| DSH version | Built, installed, and dogfooded against the current @deepseek-ai/dsh-root rc line (CI checks out deepseek-harness main; this repo's dogfood profile runs 0.2.2-rc.3); peer ranges: cordis ^4.0.0 · dsh-agent >=0.1.0-0 · dsh-llm >=0.0.1-0 | DSH beyond the current rc line (e.g. a 0.3 stable) — the plugin tracks the current DSH API (agent/created, producer-owned message source); an older DSH that lacks agent/created leaves the workflow plugin's hooks silent, while the bash guard keeps working since it does not depend on DSH at all |
| Node | ^22.19 || >=24 per engines — CI runs 22, this repo develops on 24 | — |
Known unverified, in one list:
- npm registry install (
@planrun/bundleunpublished — see publish.md for the procedure). - Interactive (human-driven) sessions on Windows / macOS.
- DSH releases past the current rc line.
- Offline / air-gapped install — the git channel resolves the bundle rows via
file://(no registry lookup for the plugin itself), but runtime dependencies (yaml, peer types) are fetched from the npm registry at install time (the profile ships anode_modules+pnpm-lock.yaml); an install path without registry access is untested.
Roadmap
| Version | Scope | Status |
|---|---|---|
| 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 rebrand · @planrun/* · guard MVP · 16 skills | ✅ |
| v1.1 | @planrun/workflow — optional hooks injection | ✅ |
| v1.2 | Harness structural dogfood (verify:dogfood) | ✅ |
| v1.3 | Deferred skills: mcp · study · user-manual · test-report | ✅ |
| v1.4 | 12 personas + tool skills · 27 bundled | ✅ |
| v1.5 | npm publish procedure · @planrun/bundle · guard cwd · project guard seed (the @planrun scope is not on the registry today — see install) | ✅ |
| v1.6 | subagent presets · agents/*.md · docs/en/subagents.md | ✅ |
| v1.7 | DSH API alignment (agent/created · source kind) · packaging fixes · presets as official bundle declarations · verify:e2e | ✅ |
| v1.8 | GitHub-install channel (github:wangqiqi/planrun) · committed runtime (no prepare) · verify:links · verify:github | ✅ |
| v1.9 | Gate hardening (fail-closed plan gates) · cross-platform launcher · three-OS CI · model-invocable core skills · packaging + runtime hardening | ✅ current |
Changelog → CHANGELOG.md
Docs
| Doc | Content |
|---|---|
| Site | znza.top/planrun/en (docs/en/ · docs/zh/) |
| quickstart.md | Install and dogfood |
| dogfood.md | Harness structural dogfood (verify:dogfood) |
| mapping-from-super-cursor.md | Super Cursor → PlanRun mapping |
| naming.md | Naming and package coordinates |
| workflow-guard.md | Sprint gate (dsh-guard) |
| workflow-hooks-map.md | Cursor hook → DSH touchpoint mapping |
| publish.md | npm publish procedure (not yet run) · GitHub install channel |
| subagents.md | ship · review · spike presets and delegation |
License
MIT (see package.json → license).
Related plugins
ds-bot
fei-craft/ds-bot
webnovel-writer
lingfengqaq/webnovel-writer
loopx (dsh-loopx-plugin)
loopx-project/loopx
ouroboros (dsh-plugin)
q00/ouroboros