# Pyramid-Autopilot: startet Claude-Sessions in Endlosschleife. # Läuft eine Session ins 5h-Limit, wird alle 20 Minuten ein Neustart versucht, # bis das Kontingent wieder da ist. Stoppen: Strg+C oder Fenster schließen. # # Start: Rechtsklick → "Mit PowerShell ausführen" # oder: pwsh -File autopilot.ps1 Set-Location $PSScriptRoot $prompt = "Lies CLAUDE.md und arbeite ROADMAP.md Punkt für Punkt weiter ab. " + "Halte dich strikt an den Arbeitszyklus (PROGRESS.md pflegen, kleine Commits + Push). " + "Arbeite so viele Punkte ab wie möglich." while ($true) { $ts = Get-Date -Format "yyyy-MM-dd HH:mm:ss" Add-Content autopilot.log "`n===== [$ts] Neue Claude-Session =====" Write-Host "`n===== [$ts] Neue Claude-Session (Log: autopilot.log) =====" -ForegroundColor Cyan claude -p $prompt --dangerously-skip-permissions 2>&1 | Tee-Object -FilePath autopilot.log -Append $ts = Get-Date -Format "yyyy-MM-dd HH:mm:ss" Add-Content autopilot.log "===== [$ts] Session beendet - naechster Versuch in 20 Minuten =====" Write-Host "===== [$ts] Session beendet - naechster Versuch in 20 Minuten (Strg+C zum Stoppen) =====" -ForegroundColor Yellow Start-Sleep -Seconds 1200 }