Skip to content

PlanRun workflow hooks map

Super Cursor hooks.json → DSH Cordis extension points via @planrun/workflow.

Super CursorDSH event (@planrun/workflow)HandlerBehavior
beforeSubmitPromptgrowth-init.shagent/pre-stepensureGrowth()Idempotent .dsh/growth/ seed from templates/growth
sessionStartrun-start.shagent/session-startbuildRunStartContext() + buildPersonaStartContext()Inject plan gate / ACTIVE / AUTONOMOUS + Persona hint
stoprun-stop.shagent/turn-stoppingbuildRunStopSteer()agent.steer() next TASK when AUTONOMOUS:true

Plan file resolution (same as dsh-guard.sh)

  1. DSH_GROWTH_PLAN env (absolute path)
  2. <cwd>/.dsh/growth/plan.md
  3. <cwd>/.cursorGrowth/plan.md (PlanRun mother-repo dev)

Growth templates

PLANRUN_HOME or package-relative repo root → templates/growth/.

Portable baseline

scripts/dsh-guard.sh remains the CLI gate when the workflow plugin is not mounted.

  • docs/en/workflow-guard.md — guard commands
  • .cursor/skills/plan/reference/autonomy-chain.md — AUTONOMOUS followup matrix (Super Cursor mother)

MIT License