diff --git a/infra/scripts/launch-flowchain-l1-long-loop-agents.ps1 b/infra/scripts/launch-flowchain-l1-long-loop-agents.ps1 index c11eaf39..dc4bee92 100644 --- a/infra/scripts/launch-flowchain-l1-long-loop-agents.ps1 +++ b/infra/scripts/launch-flowchain-l1-long-loop-agents.ps1 @@ -56,6 +56,13 @@ $agents = @( Branch = "agent/l1-loop-installer-ops" Prompt = "installer-ops.md" }, + @{ + Name = "hq-review" + Worktree = "E:\FlowMemory\flowmemory-hq-review-loop" + Branch = "agent/l1-loop-hq-review" + Prompt = "hq-review.md" + CreateWorktree = $true + }, @{ Name = "hardware-signals" Worktree = "E:\FlowMemory\flowmemory-hardware" @@ -108,7 +115,18 @@ foreach ($agent in $agents) { } if (-not (Test-Path -LiteralPath $worktree)) { - throw "Missing worktree: $worktree" + if ($agent.CreateWorktree) { + Write-Host "Creating worktree $worktree on $branch" + if (-not $DryRun) { + & git -C $repoRoot worktree add -B $branch $worktree origin/main + if ($LASTEXITCODE -ne 0) { + throw "Failed to create worktree $worktree" + } + } + } + else { + throw "Missing worktree: $worktree" + } } if (-not $NoBranchPrepare) {