Skip to content

Pipeline scripts reference

The run modes are backed by four scripts in .claude/worca/scripts/. worca run wraps the single-run ones; fleet and workspace runs call their scripts directly. Run any with --help for the version-matched list.

Runs the pipeline in place against the current working tree. The lowest-level entry point — usually invoked via worca run or by run_worktree.py. Accepts --prompt / --source, --plan, --template, --guide, --resume, and the size/loop multipliers.

Runs a single pipeline in a fresh git worktree, then registers it for the dashboard. This is what worca run --worktree calls.

FlagPurpose
--prompt TEXT / --source REFThe work request.
--plan PATHPre-written plan (skips the Planner).
--branch BRANCHBase branch to fork the worktree from.
--guide PATHReference guide (repeatable).
--fleet-id IDInternal — set when launched as a fleet child.

Fans one work request across N independent projects. See Fleet runs.

FlagPurpose
--projects PATHS / --projects-file FILETargets, inline or one-per-line.
--prompt TEXT / --source REFThe work request.
--guide PATHReference guide (repeatable).
--plan PATHShared plan; children skip the Planner.
--plan-first [PROJECT]One reference child plans, the rest inherit.
--head-template TMPLPer-child branch template.
--base BRANCHShared PR base branch.
--max-parallel NConcurrent children (default 5).
--fleet-failure-threshold RATIOCircuit-breaker ratio (default 0.30).
--init-timeout SECONDSPer-target readiness timeout (default 60).
--pause / --stop / --resume FLEET_IDLifecycle actions on an existing fleet.

--branch is rejected — use --base + --head-template.

Coordinates one prompt across interdependent projects in DAG order. See Workspace runs.

FlagPurpose
WORKSPACE_ROOTPositional: parent dir containing workspace.json.
--prompt TEXT / --source REFThe work request.
--guide PATHReference guide (repeatable).
--branch TEMPLATEBranch template ({workspace}, {project}, {slug}).
--skip-planningEach project plans independently.
--workspace-plan PATHReuse a workspace-plan.json.
--project-plan NAME=PATHPer-project plan file (repeatable).
--skip-integrationSkip the cross-project integration test.
--max-parallel NConcurrent children within a tier (default 5).
--resume WORKSPACE_IDResume a failed/halted run.
--dry-runPrint the DAG and exit.