Files
pyramid/autopilot.ps1
Bernd Steckmeister 25ed765a03 wip: Sicherungs-Commit aller Änderungen seit April + Arbeitsstruktur (CLAUDE.md, ROADMAP.md, PROGRESS.md, Autopilot)
6 Wochen uncommittete Arbeit (Voice-Channels, LiveKit-Manager, Settings-Modal u.v.m.)
als ein WIP-Commit gesichert, damit nichts verloren geht und der Pi den aktuellen
Stand klonen kann. Thematische Aufarbeitung: siehe ROADMAP M0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CPrAGBxBT6GfPXzeWQ4AXb
2026-07-03 05:47:18 +02:00

26 lines
1.2 KiB
PowerShell

# 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
}