flow

/flow-orchestrate

Phase: Any

Usage: /flow-orchestrate

Processes decomposed issues sequentially overnight via flow-start --auto. Fetches open issues labeled “Decomposed”, filters out in-progress issues, and runs the full Start-Plan-Code-Review-Learn-Complete lifecycle for each one. Generates a morning report with results.


What It Does

  1. Fetches open issues with the “Decomposed” label, excludes those with “Flow In-Progress”
  2. Displays a prioritized queue table (same format as flow-issues) and creates an orchestration state file at .flow-states/orchestrate.json
  3. For each issue in the queue:
    • Invokes flow-start --auto with the issue title and number
    • The full 6-phase lifecycle runs autonomously
    • Detects the outcome from GitHub PR state (merged = completed, closed = failed)
    • Cleans up stuck features via flow-abort --auto if needed
  4. Marks the orchestration complete
  5. Generates a summary report at .flow-states/orchestrate-summary.md

Morning Report

The report is delivered in two ways:


Compaction Survival

The orchestrator state file (.flow-states/orchestrate.json) tracks the queue position and per-issue outcomes. Self-invocation after each feature keeps the working context bounded. The session-start hook detects in-progress orchestrations and injects resume instructions after compaction.


Multi-Run Lifecycle

The “Decomposed” label is the queue:

No configuration or manual queue management needed.


Gates