Install PlanRun
Anyone can use PlanRun: MIT license, public @planrun/* npm packages, no author account required. You still need the right host and toolchain (see below).
中文版 → zh/install · zh/quickstart。Step-by-step → quickstart.md.
Who this is for
| You are | Use |
|---|---|
| DSH user — running agents in DeepSeek Harness | Path A — @planrun/bundle (recommended) |
| PlanRun contributor — hacking this repo | Path B — clone + file: bundle |
| Super Cursor user — Cursor-only, no DSH | Path C — install Super Cursor .cursor/ into your project (separate repo / install-super-cursor.sh) |
PlanRun skills in npm target DSH. The .cursor/ tree in this repo is the Super Cursor mother pack; it is not published as @planrun/bundle.
Prerequisites
| Requirement | Notes |
|---|---|
DeepSeek Harness + dsh CLI | Required for Path A/B |
Node.js ^22.19 or >=24 | Build and guard scripts |
| pnpm | Monorepo dev / verify |
| Git | Target project for .dsh/growth/ |
| bash | install-planrun.sh, dsh-guard.sh |
Not required: a specific Linux user, this maintainer's machine paths, or Cursor IDE.
Optional later: @planrun/workflow hooks, planrun agent presets (install-planrun.sh --preset), external tools (e.g. mddocx for md2docx-export skill).
Path A — npm user (recommended)
- Install and configure DSH (see upstream harness docs).
- Add the bundle to your profile:
dsh plugin --profile web add @planrun/bundle- Restart the profile (
dsh webor your team's flow). - In a Git project root, seed growth (from any clone of this repo, or after downloading
install-planrun.sh):
git clone https://github.com/wangqiqi/planrun.git planrun
export PLANRUN_HOME="$PWD/planrun"
"$PLANRUN_HOME/scripts/install-planrun.sh" --here --copy-planCreates .dsh/growth/ (plan · learn · archive). Add .dsh/growth/ to .gitignore if needed.
- Verify bundle mounted:
dsh --profile web --dump-config | grep planrun-skills
ls "$DSH_HOME/profiles/web/node_modules/@planrun/skill-provider/skills/"Do not manually insert the same plugin again in cordis.patch.yml — double mount breaks boot.
Path B — develop from this repo
git clone https://github.com/wangqiqi/planrun.git planrun
cd planrun
pnpm install
pnpm run build
pnpm run verifyInstall bundle from source:
export PLANRUN_HOME=/path/to/planrun
dsh plugin --profile web add "file:$PLANRUN_HOME/packages/bundle-planrun"Optional structural dogfood (requires harness checkout):
export DEEPSEEK_HARNESS_HOME=/path/to/deepseek-harness
pnpm run verify:dogfoodSee dogfood.md.
Path C — Super Cursor (Cursor IDE only)
| Piece | Location |
|---|---|
| Rules · skills · agents | Super Cursor mother repo .cursor/ |
| Project-specific plan/learn | .cursorGrowth/ (gitignored) on target project |
Use upstream install-super-cursor flow into your application repo. PlanRun npm bundle is not required for pure Cursor workflows.
Mapping DSH ↔ Super Cursor → mapping-from-super-cursor.md · naming.md.
Workflow guard (after plan approval)
In a project with .dsh/growth/plan.md and PLAN_APPROVED set:
pnpm run gate-check
pnpm run plan-check
pnpm run task-verify
pnpm run next-taskDetails → workflow-guard.md.
Common errors
| Symptom | Fix |
|---|---|
WORKSPACE_PKG_NOT_FOUND on dsh plugin add file:… | Run pnpm run build in PlanRun repo; publish uses npm, not workspace:^ in consumer profile |
| Bundle not visible in session | Restart DSH profile after plugin add |
gate-check BLOCK | Set PLAN_APPROVED in .dsh/growth/plan.md (or .cursorGrowth/plan.md when dogfooding PlanRun itself) |
| Skills load but plan path wrong | PlanRun dev uses .cursorGrowth/plan.md; normal projects use .dsh/growth/plan.md |
Related
- publish.md — maintainer npm publish
- subagents.md —
planrunpresets - workflow-hooks-map.md —
@planrun/workflow