Skip to content

CLI Commands

LumenFlow provides a curated public CLI surface for everyday workflows.

CategoryCommands
Gates & Qualitygate:co-change, gates, lane:create, lane:edit, lane:health, lane:lock, lane:setup, lane:status, lane:suggest, lane:validate, lumenflow:pre-commit-check, validate
Initiativesinitiative:add-wu, initiative:bulk-assign, initiative:create, initiative:edit, initiative:list, initiative:plan, initiative:remove-wu, initiative:status
Memory & Sessionsmem:checkpoint, mem:cleanup, mem:context, mem:create, mem:delete, mem:export, mem:inbox, mem:init, mem:ready, mem:recover, mem:signal, mem:start, mem:summarize, mem:triage, signal:cleanup
Metrics & Flowcost:summary, flow:bottlenecks, flow:report, metrics, metrics:snapshot
Orchestrationagent:issues-query, agent:log-issue, agent:session, agent:session-end, delegation:list, orchestrate:init-status, orchestrate:initiative, orchestrate:monitor, task:claim
Packspack:author, pack:hash, pack:install, pack:publish, pack:scaffold, pack:search, pack:validate
Plansplan:create, plan:edit, plan:link, plan:promote
Setup & Developmentbacklog:prune, cloud:connect, config:get, config:set, file:delete, file:edit, file:read, file:write, git:branch, git:diff, git:log, git:status, lumenflow, lumenflow:commands, lumenflow:docs-sync, lumenflow:doctor, lumenflow:integrate, lumenflow:release, lumenflow:sync-templates, lumenflow:upgrade
State Managementstate:bootstrap, state:cleanup, state:doctor, state:emit
WU Lifecycleapproval:list, approval:request, approval:review, wu:block, wu:brief, wu:claim, wu:create, wu:delegate, wu:done, wu:edit, wu:escalate, wu:prep, wu:recover, wu:release, wu:sandbox, wu:status, wu:unblock, wu:validate, wu:verify
WU Maintenancewu:cleanup, wu:delete, wu:deps, wu:infer-lane, wu:preflight, wu:proto, wu:prune, wu:repair, wu:unlock-lane

Manage co-change gate rules (add, remove, edit, list)

pnpm gate:co-change

Run all quality gates

pnpm gates

Create a new lane definition

pnpm lane:create

Edit a lane definition (rename, wip-limit, paths, description)

pnpm lane:edit

Check lane config health

pnpm lane:health

Lock lane lifecycle for delivery WUs

pnpm lane:lock

Create/update draft lane artifacts

pnpm lane:setup

Show lane lifecycle status and next step

pnpm lane:status

Suggest workspace lane definitions from project context

pnpm lane:suggest

Validate lane artifacts before lock

pnpm lane:validate

Run enforcement checks used by pre-commit and CI

pnpm lumenflow:pre-commit-check

Run validation checks

pnpm validate

Add WU to initiative

pnpm initiative:add-wu --initiative <ref>

Options:

FlagDescriptionRequired
--initiative &lt;ref&gt;Parent initiative (INIT-XXX or slug)Yes

Bulk assign WUs to initiative

pnpm initiative:bulk-assign

Options:

FlagDescriptionRequired
--config &lt;path&gt;Path to config file (tool-specific)No
--applyApply changes (default is dry-run)No
--sync-from-initiativeEnsure WU initiative fields exist for WUs listed in initiativesNo

Create new initiative

pnpm initiative:create --slug <slug> --title <title>

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.No
-s, --slug &lt;slug&gt;Initiative slug (kebab-case)Yes
-t, --title &lt;title&gt;Work Unit titleYes
-p, --priority &lt;priority&gt;Priority level (P0, P1, P2, P3)No
-o, --owner &lt;owner&gt;Initiative owner (team or individual)No
--target-date &lt;date&gt;Target completion date (YYYY-MM-DD)No

Edit initiative fields and phase metadata

pnpm initiative:edit

Options:

FlagDescriptionRequired
-i, --id &lt;initId&gt;Initiative ID (e.g., INIT-001)No
--blocked-by &lt;initId&gt;Initiative ID that blocks this initiativeNo
--blocked-reason &lt;text&gt;Reason for blocking (required with —blocked-by)No
--unblockRemove blocked_by and blocked_reason fieldsNo
--add-lane &lt;lane&gt;Lane to add (repeatable)No
--remove-lane &lt;lane&gt;Lane to remove (repeatable)No
--notes &lt;text&gt;Note to append to notes arrayNo
--description &lt;text&gt;Replace the initiative description fieldNo
--add-phase &lt;title&gt;Append a new phase with auto-incremented id and pending status (repeatable)No
--add-success-metric &lt;text&gt;Append to success_metrics array, avoiding duplicates (repeatable)No
--remove-success-metric &lt;text&gt;Remove exact match from success_metrics array (repeatable)No
--phase-id &lt;id&gt;Phase ID to update (use with —phase-status)No
--phase-title &lt;title&gt;Update phase title (use with —phase-id)No
--created &lt;date&gt;Set created date (YYYY-MM-DD format)No
--phase-execution-order &lt;order&gt;Phase execution order (sequential, parallel)No
--dependency-model &lt;model&gt;Dependency model for the initiativeNo

List all initiatives

pnpm initiative:list

Options:

FlagDescriptionRequired
--format &lt;format&gt;Output format (table, json, ascii, mermaid)No
--status &lt;status&gt;Filter by statusNo
--colorEnable colored outputNo

Link plan to initiative

pnpm initiative:plan --initiative <ref>

Options:

FlagDescriptionRequired
--initiative &lt;ref&gt;Parent initiative (INIT-XXX or slug)Yes

Remove WU from initiative

pnpm initiative:remove-wu --initiative <ref> --wu <wuId>

Options:

FlagDescriptionRequired
--initiative &lt;ref&gt;Parent initiative (INIT-XXX or slug)Yes
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)Yes

Show initiative status

pnpm initiative:status

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.No
--format &lt;format&gt;Output format (table, json, ascii, mermaid)No
--colorEnable colored outputNo

Save progress checkpoint

pnpm mem:checkpoint

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)No
-n, --note &lt;text&gt;Checkpoint note (required if not positional)No
-s, --session &lt;id&gt;Session ID to link checkpoint to (UUID)No
-p, --progress &lt;text&gt;Progress summaryNo
--next-steps &lt;text&gt;Next steps descriptionNo
-t, --trigger &lt;type&gt;Handoff trigger type (e.g., clear, handoff)No
--git-diff-stat &lt;text&gt;Git diff —stat output to include in checkpoint metadata (WU-2157)No
-d, --base-dir &lt;path&gt;Base directory (defaults to current directory)No
-q, --quietSuppress output except errorsNo

Clean up stale memory data

pnpm mem:cleanup

Options:

FlagDescriptionRequired
--dry-runPreview cleanup without making changesNo
--ttl &lt;duration&gt;Remove nodes older than duration (e.g., 30d, 7d, 24h). Active sessions are protected.No
--session-id &lt;uuid&gt;Session ID to consider closed (removes session lifecycle nodes)No
--jsonOutput as JSONNo
-q, --quietSuppress output except errorsNo
-b, --base-dir &lt;path&gt;Base directory (defaults to current directory)No
--decayRun decay-based archival (archive stale nodes below threshold). Uses config from workspace.yaml software_delivery or defaults.No

Get context for current lane/WU

pnpm mem:context --wu <wuId>

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)Yes
-m, --max-size &lt;bytes&gt;Maximum context size in bytes (default: 4096)No
--delegation-context-max-size &lt;bytes&gt;Alias for —max-size (for config parity with delegation_context_max_size)No
-l, --lane &lt;lane&gt;Filter project memories by lane (e.g., “Framework: CLI”)No
--max-recent-summaries &lt;count&gt;Maximum number of recent summaries to include (default: 5)No
--max-project-nodes &lt;count&gt;Maximum number of project nodes to include (default: 10)No
-f, --format &lt;format&gt;Output format: json or human (default: human)No
-d, --base-dir &lt;path&gt;Base directory (defaults to current directory)No
-q, --quietSuppress header/footer output, only show context blockNo

Create memory node (bug discovery)

pnpm mem:create

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)No
-t, --title &lt;text&gt;Node title/content (required if not positional)No
-d, --discovered-from &lt;id&gt;Parent node ID for provenance tracking (mem-XXXX format)No
-s, --session &lt;id&gt;Session ID to link node to (UUID)No
--tags &lt;tags&gt;Comma-separated tags for categorizationNo
-p, --priority &lt;level&gt;Priority level (P0, P1, P2, P3)No
-b, --base-dir &lt;path&gt;Base directory (defaults to current directory)No
-q, --quietSuppress output except errorsNo

Delete/archive a memory node

pnpm mem:delete

Options:

FlagDescriptionRequired
--dry-runPreview deletion without making changesNo
--tag &lt;tag&gt;Delete all nodes matching this tagNo
--older-than &lt;duration&gt;Delete nodes older than duration (e.g., 30d, 7d, 24h, 2w)No
--jsonOutput as JSONNo
-q, --quietSuppress output except errorsNo
-b, --base-dir &lt;path&gt;Base directory (defaults to current directory)No

Export memory as markdown

pnpm mem:export

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)No
-l, --lifecycle &lt;lifecycle&gt;Filter by lifecycle (ephemeral, session, wu, project)No
-f, --format &lt;format&gt;Output format (markdown, json). Default: markdownNo
-d, --base-dir &lt;path&gt;Base directory (defaults to current directory)No
-q, --quietSuppress header/footer outputNo

Check coordination signals

pnpm mem:inbox

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)No
-l, --lane &lt;lane&gt;Lane name (e.g., “Operations: Tooling”)No
-s, --since &lt;time&gt;Filter signals since time (e.g., “1h”, “30m”, “2025-12-09”)No
-w, --watchContinuously monitor for new signalsNo
-q, --quietSuppress output except signal contentNo
--no-markDo not mark signals as read after displayNo
-c, --countOutput only signal count (lightweight polling for orchestrators)No

Initialize memory for WU

pnpm mem:init

Options:

FlagDescriptionRequired
-d, --base-dir &lt;path&gt;Base directory to initialize (defaults to current directory)No
-q, --quietSuppress output except errorsNo

Check pending memory nodes

pnpm mem:ready --wu <wuId>

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)Yes
-f, --format &lt;format&gt;Output format (json, human). Default: humanNo
-d, --base-dir &lt;path&gt;Base directory (defaults to current directory)No
-q, --quietSuppress header/footer output, only show nodesNo

Generate recovery context after compaction

pnpm mem:recover --wu <wuId>

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)Yes
-m, --max-size &lt;bytes&gt;Maximum output size in bytes (default: 2048)No
-f, --format &lt;format&gt;Output format: json or human (default: human)No
-d, --base-dir &lt;path&gt;Base directory (defaults to current directory)No
-q, --quietSuppress header/footer output, only show recovery contextNo

Broadcast coordination signal

pnpm mem:signal

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)No
-l, --lane &lt;lane&gt;Lane name (e.g., “Operations: Tooling”)No
-m, --message &lt;text&gt;Signal message (required if not positional)No
-q, --quietSuppress output except errors (outputs signal ID only)No

Start a memory session

pnpm mem:start --wu <wuId>

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)Yes
-a, --agent-type &lt;type&gt;Agent type (e.g., general-purpose, explore, test-engineer)No
-c, --context-tier &lt;tier&gt;Context tier (core, full, minimal)No
-d, --base-dir &lt;path&gt;Base directory (defaults to current directory)No
-q, --quietSuppress output except errorsNo

Summarize memory context

pnpm mem:summarize --wu <id>

Options:

FlagDescriptionRequired
--wu &lt;id&gt;WU ID to summarize (e.g., WU-1234)Yes
--dry-runPreview summary without making changesNo
--jsonOutput as JSONNo
-q, --quietSuppress output except errorsNo
-b, --base-dir &lt;path&gt;Base directory (defaults to current directory)No

Triage discovered bugs

pnpm mem:triage

Options:

FlagDescriptionRequired
-l, --listList open discoveries (default action)No
-p, --promote &lt;nodeId&gt;Promote discovery to WU (mem-XXXX format)No
-a, --archive &lt;nodeId&gt;Archive discovery without promotion (mem-XXXX format)No
-r, --reason &lt;text&gt;Reason for archiving (required with —archive)No
--title &lt;text&gt;Custom title for promoted WU (optional)No
--lane &lt;lane&gt;Lane for promoted WU (required with —promote)No
--wu-id &lt;id&gt;Explicit WU ID for promotion (optional)No
--wu &lt;id&gt;Filter discoveries by WU ID (or “unlinked”)No
--tag &lt;tag&gt;Filter discoveries by tagNo
--dry-runPreview promotion without creating WUNo
--jsonOutput as JSONNo
-q, --quietSuppress output except errorsNo

Clean up stale signals

pnpm signal:cleanup

Options:

FlagDescriptionRequired
--dry-runPreview cleanup without making changesNo
--ttl &lt;duration&gt;TTL for read signals (e.g., 7d, 24h). Default: 7dNo
--unread-ttl &lt;duration&gt;TTL for unread signals (e.g., 30d). Default: 30dNo
--max-entries &lt;count&gt;Maximum signals to retain. Default: 500No
--jsonOutput as JSONNo
-q, --quietSuppress output except errorsNo
-b, --base-dir &lt;path&gt;Base directory (defaults to current directory)No

Summarize local cost telemetry

pnpm cost:summary

Identify flow bottlenecks

pnpm flow:bottlenecks

Generate flow metrics report

pnpm flow:report

View workflow metrics

pnpm metrics

Capture metrics snapshot

pnpm metrics:snapshot

Query GitHub issues for agent work

pnpm agent:issues-query

Log issue during agent session

pnpm agent:log-issue --category <cat> --severity <sev> --title <title> --description <desc>

Options:

FlagDescriptionRequired
--category &lt;cat&gt;Issue category (workflow|tooling|confusion|violation|error)Yes
--severity &lt;sev&gt;Severity level (blocker|major|minor|info)Yes
--title &lt;title&gt;Short description (5-100 chars)Yes
--description &lt;desc&gt;Detailed context (10-2000 chars)Yes
--resolution &lt;res&gt;How the issue was resolvedNo
--tag &lt;tag&gt;Tag for categorization (repeatable)No
--step &lt;step&gt;Current workflow step (e.g., wu:done, gates)No
--file &lt;file&gt;Related file path (repeatable)No

Start agent session

pnpm agent:session --wu <wuId> --tier <tier>

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;WU ID to work on (e.g., WU-1234)Yes
--tier &lt;tier&gt;Context tier (1, 2, or 3)Yes
--agent-type &lt;type&gt;Agent type (default: claude-code)No

End agent session

pnpm agent:session-end

List active delegation records

pnpm delegation:list

Options:

FlagDescriptionRequired
--wu &lt;wuId&gt;Work Unit ID to link (e.g., WU-123)No
--initiative &lt;initId&gt;Initiative ID to show all delegations for (e.g., INIT-001)No
--jsonOutput as JSONNo

Compact initiative progress view

pnpm orchestrate:init-status

Orchestrate initiative execution

pnpm orchestrate:initiative

Monitor spawn/agent activity

pnpm orchestrate:monitor

Claim a task directly through KernelRuntime

pnpm task:claim

Author a secure domain pack from templates

pnpm pack:author

Options:

FlagDescriptionRequired
-f, --forceForce operationNo
--spec-file &lt;path&gt;Path to YAML/JSON request file for non-interactive generationNo
--skip-validateSkip post-generation pack validationNo

Compute integrity hash for a domain pack

pnpm pack:hash

Options:

FlagDescriptionRequired
-f, --forceForce operationNo
--pack-root &lt;dir&gt;Direct path to pack directory (overrides —id and —packs-root)No

Install a domain pack into workspace

pnpm pack:install --source <source> --version <version>

Options:

FlagDescriptionRequired
-f, --forceForce operationNo
--source &lt;source&gt;Pack source: local, git, or registryYes
--version &lt;version&gt;Pack version in semver formatYes
--url &lt;url&gt;Git repository URL (required for source: git)No
--registry-url &lt;url&gt;Registry base URL (for source: registry)No
--pack-root &lt;dir&gt;Direct path to resolved pack directory on disk (overrides default resolution)No
--integrity &lt;hash&gt;Expected SHA-256 integrity hash in “sha256:<hex>” format (optional)No

Publish a domain pack to a registry

pnpm pack:publish

Options:

FlagDescriptionRequired
-f, --forceForce operationNo
--pack-root &lt;dir&gt;Direct path to pack directory (overrides —id and —packs-root)No

Scaffold a new domain pack

pnpm pack:scaffold --version <version>

Options:

FlagDescriptionRequired
-f, --forceForce operationNo
--version &lt;version&gt;Pack version in semver format (e.g., “0.1.0”)Yes
--task-type &lt;type&gt;Task type name (repeatable)No
--tool &lt;name&gt;Tool name to scaffold (repeatable)No

Search for domain packs in a registry

pnpm pack:search

Options:

FlagDescriptionRequired
--query &lt;query&gt;Search query stringNo

Validate a domain pack for integrity

pnpm pack:validate

Options:

FlagDescriptionRequired
-f, --forceForce operationNo
--pack-root &lt;dir&gt;Direct path to pack directory (overrides —id and —packs-root)No

Create a new plan

pnpm plan:create --id <wuId> --title <title>

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.Yes
-t, --title &lt;title&gt;Work Unit titleYes

Edit plan content

pnpm plan:edit --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

Link plan to WU or initiative

pnpm plan:link --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

Promote plan to WU

pnpm plan:promote --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

Clean stale backlog entries

pnpm backlog:prune

Connect workspace.yaml to cloud control plane

pnpm cloud:connect

Read and display a value from workspace.yaml software_delivery

pnpm config:get

Safely update workspace.yaml software_delivery via micro-worktree

pnpm config:set

Delete file with audit trail

pnpm file:delete

Edit file with audit trail

pnpm file:edit

Read file with audit trail

pnpm file:read

Write file with audit trail

pnpm file:write

Show git branch with audit trail

pnpm git:branch

Show git diff with audit trail

pnpm git:diff

Show git log with audit trail

pnpm git:log

Show git status with audit trail

pnpm git:status

Initialize LumenFlow in a project

pnpm lumenflow

List all available CLI commands

pnpm lumenflow:commands

Refresh core docs, onboarding docs, and supported vendor assets

pnpm lumenflow:docs-sync

Diagnose LumenFlow configuration

pnpm lumenflow:doctor

Generate enforcement hooks for client

pnpm lumenflow:integrate

Run release workflow

pnpm lumenflow:release

Sync templates to project

pnpm lumenflow:sync-templates

Upgrade LumenFlow packages

pnpm lumenflow:upgrade

Bootstrap state store

pnpm state:bootstrap

Clean up stale state data

pnpm state:cleanup

Options:

FlagDescriptionRequired
--dry-runPreview cleanup without making changesNo
--signals-onlyOnly execute signal cleanupNo
--memory-onlyOnly execute memory cleanupNo
--events-onlyOnly execute event archivalNo
--jsonOutput as JSONNo
-q, --quietSuppress output except errors and summaryNo
-b, --base-dir &lt;path&gt;Base directory (defaults to current directory)No

Diagnose state store issues

pnpm state:doctor

Options:

FlagDescriptionRequired
--fixAuto-repair safe issuesNo
--dry-runPreview repairs without making changesNo
--jsonOutput as JSONNo
-q, --quietSuppress output except errors and summaryNo
-b, --base-dir &lt;path&gt;Base directory (defaults to current directory)No

Emit corrective event to state store (WU-2241)

pnpm state:emit

List control-plane approvals with optional filters

pnpm approval:list

Request control-plane approval for a workflow action

pnpm approval:request

Resolve a control-plane approval decision

pnpm approval:review

Block WU with reason

pnpm wu:block --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
-r, --reason &lt;reason&gt;Reason for action (required with —skip-gates, —override-owner)No
-w, --worktree &lt;path&gt;Override worktree pathNo
--remove-worktreeRemove worktree when blockingNo
--no-autoSkip auto-updating YAML/backlog/statusNo
--override-ownerOverride ownership check (requires —reason)No

Generate handoff prompt for sub-agent WU execution

pnpm wu:brief

Claim WU and create worktree

pnpm wu:claim --id <wuId> --lane <lane>

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”)Yes
-w, --worktree &lt;path&gt;Override worktree pathNo
-b, --branch &lt;branch&gt;Override branch nameNo
--branch-onlyUse branch-only mode (no worktree)No
--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 issues (WU-1359)No
-r, --reason &lt;reason&gt;Reason for action (required with —skip-gates, —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

Create new WU spec

pnpm wu:create --lane <lane> --title <title>

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.No
-l, --lane &lt;lane&gt;Lane name (e.g., “Operations: Tooling”)Yes
-t, --title &lt;title&gt;Work Unit titleYes
-p, --priority &lt;priority&gt;Priority level (P0, P1, P2, P3)No
--type &lt;type&gt;WU type (feature, bug, refactor, documentation)No
--initiative &lt;ref&gt;Parent initiative (INIT-XXX or slug)No
--phase &lt;number&gt;Phase number within initiativeNo
--blocked-by &lt;wuIds&gt;WU IDs that block this WU (repeatable)No
--blocks &lt;wuIds&gt;WU IDs this WU blocks (repeatable)No
--labels &lt;labels&gt;Labels (repeatable)No
--assigned-to &lt;email&gt;Override assigned_to (defaults to git config user.email)No
--description &lt;text&gt;WU description text (Context/Problem/Solution)No
--acceptance &lt;criterion&gt;Acceptance criterion (repeatable, use multiple times)No
--notes &lt;text&gt;Implementation notes or context (optional)No
--code-paths &lt;paths&gt;Code paths (repeatable)No
--test-paths-manual &lt;tests&gt;Manual test descriptions (repeatable)No
--test-paths-unit &lt;paths&gt;Unit test file paths (repeatable)No
--test-paths-e2e &lt;paths&gt;E2E test file paths (repeatable)No
--validateValidate spec completeness (requires description, acceptance, test paths)No
--spec-refs &lt;paths&gt;Spec/plan references (repeatable or comma-separated, required for type: feature)No
--exposure &lt;type&gt;Exposure level (ui, api, backend-only, documentation)No
--user-journey &lt;text&gt;User journey description (recommended for ui/api exposure)No
--ui-pairing-wus &lt;wuIds&gt;UI WU IDs that consume this API (repeatable or comma-separated, for api exposure)No
--planCreate plan template in $LUMENFLOW_HOME/plans/ (external plan storage)No
--estimated-files &lt;count&gt;Optional sizing estimate: expected number of files to modify (non-negative integer)No
--estimated-tool-calls &lt;count&gt;Optional sizing estimate: expected number of tool calls (non-negative integer)No
--sizing-strategy &lt;strategy&gt;Optional sizing strategy (single-session, checkpoint-resume, orchestrator-worker, decomposition)No
--sizing-exception-type &lt;type&gt;Optional sizing exception type when thresholds are exceeded (docs-only, shallow-multi-file)No
--sizing-exception-reason &lt;text&gt;Optional sizing exception justification textNo
--no-strictBypass strict validation (skip code_paths/test_paths existence checks, treat warnings as advisory). Logged when used.No
--cloudUse cloud/branch-pr mode (no worktree, PR-based completion for cloud agents and MCP callers)No
--offlineSkip remote fetch during ID generation (air-gapped/offline mode)No

Generate delegation prompt and record explicit lineage intent

pnpm wu:delegate

Complete WU (merge, stamp, cleanup) from main

pnpm wu:done

Edit WU spec fields

pnpm wu:edit --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
--test-paths-manual &lt;tests&gt;Manual test descriptions (repeatable)No
--test-paths-unit &lt;paths&gt;Unit test file paths (repeatable)No
--test-paths-e2e &lt;paths&gt;E2E test file paths (repeatable)No
--exposure &lt;type&gt;Exposure level (ui, api, backend-only, documentation)No
--no-strictBypass strict validation (skip code_paths/test_paths existence checks, treat warnings as advisory). Logged when used.No
--spec-file &lt;path&gt;Path to YAML file with updated spec contentNo
--title &lt;text&gt;New title text (replaces existing)No
--description &lt;text&gt;New description text (replaces existing)No
--acceptance &lt;criterion&gt;Acceptance criterion (repeatable, appends to existing; use —replace-acceptance to overwrite)No
--notes &lt;text&gt;Notes text (appends to existing; use —replace-notes to overwrite)No
--replace-notesReplace existing notes instead of appendingNo
--replace-acceptanceReplace existing acceptance criteria instead of appendingNo
--code-paths &lt;path&gt;Code path (repeatable, appends to existing; use —replace-code-paths to overwrite)No
--replace-code-pathsReplace existing code_paths instead of appendingNo
--risks &lt;risk&gt;Risk entry (repeatable, appends to existing; use —replace-risks to overwrite)No
--replace-risksReplace existing risks instead of appendingNo
--append[DEPRECATED] Arrays now append by default. Use —replace-* flags to replace.No
--replace-test-paths-unitReplace existing unit test paths instead of appendingNo
--replace-test-paths-e2eReplace existing e2e test paths instead of appendingNo
--replace-test-paths-manualReplace existing manual test descriptions instead of appendingNo
--lane &lt;lane&gt;New lane assignment (e.g., “Operations: Tooling”)No
--type &lt;type&gt;New WU type (feature, bug, refactor, documentation)No
--priority &lt;priority&gt;New priority (P0, P1, P2, P3)No
--initiative &lt;initId&gt;Initiative ID (e.g., INIT-001). Updates WU and initiative wus: arrays bidirectionally.No
--phase &lt;number&gt;Phase number within initiative (e.g., 1, 2)No
--blocked-by &lt;wuIds&gt;Comma-separated WU IDs that block this WU (appends to existing; use —replace-blocked-by to overwrite)No
--replace-blocked-byReplace existing blocked_by instead of appendingNo
--add-dep &lt;wuIds&gt;Comma-separated WU IDs to add to dependencies array (appends to existing; use —replace-dependencies to overwrite)No
--replace-dependenciesReplace existing dependencies instead of appendingNo
--plan &lt;uri&gt;Plan file URI (lumenflow://plans/… or repo-relative path)No

Show or resolve WU escalation status

pnpm wu:escalate --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
--resolveResolve the escalation (set resolved_by and resolved_at)No
--resolver &lt;email&gt;Override resolver email (defaults to git user.email)No

Run gates in worktree, prep for wu:done

pnpm wu:prep --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
--docs-onlyRun docs-only gates (format, spec-linter)No
--full-testsRun full incremental test suite (disable tests.unit scoped execution)No

Analyze and fix WU state inconsistencies

pnpm wu:recover --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
--override-ownerOverride ownership check (requires —reason)No
-r, --reason &lt;reason&gt;Reason for action (required with —skip-gates, —override-owner)No

Release orphaned WU (in_progress to ready)

pnpm wu:release --id <wuId> --reason <reason>

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.Yes
-r, --reason &lt;reason&gt;Reason for action (required with —skip-gates, —override-owner)Yes
--override-ownerOverride ownership check (requires —reason)No

Run command through hardened WU sandbox backend

pnpm wu:sandbox --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
-w, --worktree &lt;path&gt;Override worktree pathNo

Show WU status, location, valid commands

pnpm wu:status

Unblock WU

pnpm wu:unblock --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
-r, --reason &lt;reason&gt;Reason for action (required with —skip-gates, —override-owner)No
--create-worktreeCreate worktree when unblockingNo
-w, --worktree &lt;path&gt;Override worktree pathNo
-b, --branch &lt;branch&gt;Override branch nameNo
--no-autoSkip auto-updating YAML/backlog/statusNo
-f, --forceForce operationNo
--override-ownerOverride ownership check (requires —reason)No

Validate WU spec

pnpm wu:validate

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.No
--no-strictBypass strict validation (skip code_paths/test_paths existence checks, treat warnings as advisory). Logged when used.No

Verify WU completion (stamp, commit, clean tree)

pnpm wu:verify --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

Cleanup after PR merge

pnpm wu:cleanup

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.No
--artifactsRemove build artifacts (dist, tsbuildinfo) in current worktreeNo

Delete WU spec and cleanup

pnpm wu:delete

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.No
--dry-runShow what would be deleted without making changesNo
--batch &lt;ids&gt;Delete multiple WUs atomically (comma-separated: WU-1,WU-2,WU-3)No

Show WU dependencies

pnpm wu:deps

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.No
--format &lt;format&gt;Output format (table, json, ascii, mermaid)No
-d, --depth &lt;number&gt;Maximum traversal depthNo
--direction &lt;dir&gt;Graph direction (up, down, both)No

Infer lane from code paths/description using workspace definitions

pnpm wu:infer-lane

Pre-flight checks before wu:done

pnpm wu:preflight --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
-w, --worktree &lt;path&gt;Override worktree pathNo

Create WU prototype

pnpm wu:proto --lane <lane> --title <title>

Options:

FlagDescriptionRequired
-l, --lane &lt;lane&gt;Lane name (e.g., “Operations: Tooling”)Yes
-t, --title &lt;title&gt;Work Unit titleYes
--description &lt;text&gt;WU description text (Context/Problem/Solution)No
--code-paths &lt;paths&gt;Code paths (repeatable)No
--labels &lt;labels&gt;Labels (repeatable)No
--assigned-to &lt;email&gt;Override assigned_to (defaults to git config user.email)No

Clean stale worktrees

pnpm wu:prune

Repair WU state issues

pnpm wu:repair

Unlock stuck lane

pnpm wu:unlock-lane

Options:

FlagDescriptionRequired
-l, --lane &lt;lane&gt;Lane name (e.g., “Operations: Tooling”)No
-r, --reason &lt;reason&gt;Reason for action (required with —skip-gates, —override-owner)No
-f, --forceForce operationNo