Skip to main content
W

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/planrun

README

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.

License: MIT Docs Node dsh-plugin Harness


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 getIt 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 mirrorA 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

FitReason
✅ You use DeepSeek Harness and want plan → run → verify → release disciplinePlanRun mounts as @planrun/bundle
✅ You want 28 bundled skills + 12 personas without hand-copying a rules/skills packCordis plugin + growth templates
⚠️ Cursor only, no DSHUse the Super Cursor pack (separate repo) in your repo — see install.md Path C
❌ You need a standalone desktop app or zero NodeOut 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)

ItemRequired for
DeepSeek Harness + dshGitHub / local file: bundle install
Node ^22.19 or >=24build · 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)
HostDeepSeek Harness profileCursor IDE project
Plan file.growing/plan.md.growing/plan.md
Installdsh plugin add "github:wangqiqi/planrun#<tag>" (npm: not published yet)install-super-cursor.sh → target .cursor/
This repopackages/* — 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]
StageSkillsIn one line
RoutingmasterYou do not know which skill to load next
Planningsprint-plan · longMulti-task sprint / epic (≠ DSH /plan single-task design)
Executionrun · debug · testImplement the ACTIVE row of .growing/plan.md + verify
Retentionlearn · git · scaffoldProject conventions · branches and commits · empty-repo scaffold
Deliveryreview · delivery · releasePR 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
PiecePackage / pathRole
Bundled skills@planrun/skill-provider28 workflow skills + config/roles.json (12 personas)
Profile bundle@planrun/bundlecordis.patch.yml mounts the skill provider + workflow; presets.patch.yml declares 4 agent presets
Agent presetspresets/ → presets.patch.ymlOfficial @deepseek-ai/dsh-agent-preset declarations (generated by scripts/gen-presets.mjs)
Growth templatestemplates/growth/Project-local .growing/ seeds
Installerscripts/install-planrun.shCopies growth templates + prints profile instructions
Workflow guardscripts/dsh-guard.shgate-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):

SkillWhen to load
masterLost / new session
sprint-planMulti-task sprint planning
runExecute the ACTIVE row of plan.md
reviewPR / structured code review
learnCapture project conventions → .growing/learn/
gitBranch · commit · merge
scaffoldEmpty-repository scaffold
longCross-sprint epic
releasemerge · PR · tag · CHANGELOG
delivery7-dimension pre-release check
debugReproduction-first debugging loop
testTDD · layered testing
securityPre-merge security review
apiREST/OpenAPI design review
refactorSafe refactor · dead-code removal
perfPerformance investigation (measure first)
mcpMCP server design and eval
studyLearning a new technology/language (≠ learn, which is repo conventions)
user-manualPublishable user manual · figure regen
test-reportPublishable 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 CursorPlanRunNotes
plan skillsprint-planAvoids 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
AskQuestionask_user_questionDSH interaction tool
rules/*.mdcdocs/en/discipline.mdStanding 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.

DimensionVerifiedNot verified
Install channelGitHub 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 headlessnpm registry channel — @planrun/* is not published; verify:npm can only run after the first registry release
PlatformCI 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 profileInteractive 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 versionBuilt, 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-0DSH 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:

  1. npm registry install (@planrun/bundle unpublished — see publish.md for the procedure).
  2. Interactive (human-driven) sessions on Windows / macOS.
  3. DSH releases past the current rc line.
  4. 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 a node_modules + pnpm-lock.yaml); an install path without registry access is untested.

Roadmap

VersionScopeStatus
v0.1MVP: master · sprint-plan · run · review + bundle + installer✅
v0.2 batch-1learn · git · scaffold · long✅
v0.2 batch-2release · delivery · debug · test✅
v1.0PlanRun rebrand · @planrun/* · guard MVP · 16 skills✅
v1.1@planrun/workflow — optional hooks injection✅
v1.2Harness structural dogfood (verify:dogfood)✅
v1.3Deferred skills: mcp · study · user-manual · test-report✅
v1.412 personas + tool skills · 27 bundled✅
v1.5npm publish procedure · @planrun/bundle · guard cwd · project guard seed (the @planrun scope is not on the registry today — see install)✅
v1.6subagent presets · agents/*.md · docs/en/subagents.md✅
v1.7DSH API alignment (agent/created · source kind) · packaging fixes · presets as official bundle declarations · verify:e2e✅
v1.8GitHub-install channel (github:wangqiqi/planrun) · committed runtime (no prepare) · verify:links · verify:github✅
v1.9Gate hardening (fail-closed plan gates) · cross-platform launcher · three-OS CI · model-invocable core skills · packaging + runtime hardening✅ current

Changelog → CHANGELOG.md


Docs

DocContent
Siteznza.top/planrun/en (docs/en/ · docs/zh/)
quickstart.mdInstall and dogfood
dogfood.mdHarness structural dogfood (verify:dogfood)
mapping-from-super-cursor.mdSuper Cursor → PlanRun mapping
naming.mdNaming and package coordinates
workflow-guard.mdSprint gate (dsh-guard)
workflow-hooks-map.mdCursor hook → DSH touchpoint mapping
publish.mdnpm publish procedure (not yet run) · GitHub install channel
subagents.mdship · review · spike presets and delegation

License

MIT (see package.json → license).

Related plugins