diff --git a/autopilot.sh b/autopilot.sh index 04561cf..31f9947 100644 --- a/autopilot.sh +++ b/autopilot.sh @@ -1,9 +1,11 @@ #!/bin/bash # Pyramid-Autopilot (Pi/Linux): startet Claude-Sessions in Endlosschleife. # Läuft eine Session ins 5h-Limit, wird alle 20 Minuten neu versucht. -# Start (am besten in tmux): tmux new -s pyramid './autopilot.sh' -# Wieder reinschauen: tmux attach -t pyramid -# Stoppen: Strg+C in der tmux-Session +# Start (am besten in tmux): tmux new -d -s pyramid ./autopilot.sh +# Wieder reinschauen: tmux attach -t pyramid (verlassen: Strg+B, dann D) +# PAUSIEREN: touch ~/pyramid/PAUSE (greift vor der nächsten Session) +# FORTSETZEN: rm ~/pyramid/PAUSE +# GANZ STOPPEN: tmux kill-session -t pyramid cd "$(dirname "$0")" export PATH="$HOME/.local/bin:$HOME/flutter/bin:$PATH" @@ -12,6 +14,11 @@ Halte dich strikt an den Arbeitszyklus (PROGRESS.md pflegen, kleine Commits + Pu Arbeite so viele Punkte ab wie möglich." while true; do + if [ -f PAUSE ]; then + echo "===== $(date '+%F %T') PAUSE aktiv (rm PAUSE zum Fortsetzen) - pruefe wieder in 10 Minuten =====" + sleep 600 + continue + fi echo "===== $(date '+%F %T') Neue Claude-Session =====" | tee -a autopilot.log claude -p "$PROMPT" --dangerously-skip-permissions 2>&1 | tee -a autopilot.log echo "===== $(date '+%F %T') Session beendet - Neustart in 20 Minuten (Strg+C zum Stoppen) =====" | tee -a autopilot.log