Skip to content

Instantly share code, notes, and snippets.

View pierrecorsini's full-sized avatar
🎯
Focusing

Pierre CORSINI pierrecorsini

🎯
Focusing
View GitHub Profile
@pierrecorsini
pierrecorsini / gist:55c435b6b006f04ea2199b761c4ee1da
Created January 11, 2026 21:13
Minimal Ralph loop with Opencode (powershell)
$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