Skip to content

wu:claim

← Back to CLI Commands

Claim WU and create worktree

pnpm wu:claim --id <wuId>

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.Yes
-l, --lane &lt;lane&gt;Lane name (e.g., “Operations: Tooling”)No
-w, --worktree &lt;path&gt;Set the local worktree path; claims verify its confined realpath and exact Git registrationNo
-b, --branch &lt;branch&gt;Set the effective claim branch; local worktree claims persist its verified bindingNo
--branch-onlyUse branch-only mode without a claimed lane worktree; completion publishes from an isolated temporary worktreeNo
--pr-modeUse PR mode (create PR instead of auto-merge)No
--no-autoSkip auto-updating YAML/backlog/statusNo
-f, --forceForce operationNo
--force-overlapForce claiming despite overlap (requires —reason)No
--fixAuto-fix common YAML validation issuesNo
-r, --reason &lt;reason&gt;Reason for action (required with —skip-gate, —override-owner)No
--allow-incompleteAllow claiming with incomplete spec (bypasses spec completeness, NOT schema errors)No
--cloudUse cloud/branch-pr mode (no worktree, PR-based completion for cloud agents and MCP callers)No
--resumeResume a WU from a crashed/killed agent (handoff) by taking over the existing worktree and updating the lock with new PID. Fails if original PID is still running (safety) or worktree does not exist.No
--skip-setupSkip automatic pnpm install in worktree after creation (faster claims when deps already built)No
--no-pushSkip pushing claim branch or canonical updates (air-gapped/offline)No
--wait-for-laneQueue the claim when code-path overlaps exist and auto-fire once every blocker WU has mergedNo
--wait-timeout-seconds &lt;seconds&gt;Maximum seconds to wait for blocker WUs to merge before giving up (default 3600, used with —wait-for-lane)No
--cancel-queueCancel an active queued claim for —id (pairs with —wait-for-lane)No

← Back to CLI Commands