This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $prompt = "Improve app; reply RALPHCOMPLETED when completely done" | |
| for ($i = 1; $i -le 50; $i++) { | |
| Write-Host "Attempt #$i running..." -ForegroundColor Cyan | |
| # Removed --format text (not a valid option) | |
| $found = opencode run $prompt 2>&1 | ForEach-Object { | |
| Write-Host $_ | |
| $_ | |
| } | Select-String -Pattern "RALPHCOMPLETED" -Quiet |