Multi-Step Plan & DAG Runner
Splits big goals into ordered steps, runs independent branches in parallel, and handles conditional recovery.
One single agent tries to juggle 10 unrelated subtasks in one huge messy prompt.
Work splits cleanly: preflight → parallel workers → automated integration gate → conditional fix → review.
What It Does (In Plain English)
Planner manages structured multi-step workflows (DAGs). It runs independent steps concurrently (maxParallelSteps), passes outputs from Step A to Step B ($fromStep), runs conditional steps (when, like a conflict-resolver only if a merge fails), and drives continuous monitoring goals on a schedule.
Real-World Example
- 1Step 1 (Preflight, 0-LLM) freezes shared contracts.
- 2Steps 2A and 2B run two parallel agents simultaneously.
- 3Step 3 (Integration Gate, 0-LLM) merges both outputs and runs tests.
- 4Only if Step 3 fails does conditional Step 4 (Conflict Resolver) wake up.
When Should You Turn It On?
Add at Level 2 (draft) when workflows have multiple stages, parallel fan-out, or continuous monitoring.
Safety level note: Level 2 · Draft — Can create saved drafts and run offline sandbox checks.
How to Add It (workspace.yaml)
kits:
- "@neusym/kit-planner@0.1.0"
kitConfigs:
planner:
maxParallelSteps: 4
maxSubtasksPerGoal: 16Kits It Works With
Technical Details & Configuration Options (4 settings)
| Package | @neusym/kit-planner |
|---|---|
| Provides Ports | planner@1 |
| Requires Ports | goals@1tasks@1budget@1scheduler@1 |
| Optional Ports | tools@1artifacts@1secrets@1convergence@1constraints@1blackboard@1 |
| Publishes Events | plan.step_failedplan.completedplan.budget_exhausted |
| Owned DB Collections | plansplan_goal_claims |
Configuration Options (kitConfigs.planner)
| Setting | Type | Default | Description |
|---|---|---|---|
maxSubtasksPerGoal | integer | 12 | — |
defaultCheckIntervalMs | integer | 60000 | — |
maxParallelSteps | integer | 1 | Maximum number of independent DAG steps a finite plan may run concurrently. |
allowModelProcedureInput | boolean | false | Whether model-invoked planner.create_plan and planner.revise_plan tool calls may supply step procedureInput. |