Created
January 11, 2026 21:13
-
-
Save pierrecorsini/55c435b6b006f04ea2199b761c4ee1da to your computer and use it in GitHub Desktop.
Minimal Ralph loop with Opencode (powershell)
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 | |
| if ($found) { | |
| Write-Host "RALPHCOMPLETED found! Exiting." -ForegroundColor Green | |
| exit 0 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment