Practical Implementation
Option 1: Manual loop
bash
# Simple fresh-context loop
for i in {1..10}; do
echo "=== Iteration $i ==="
claude -p "$(cat TASK.md PROGRESS.md)"
git diff --stat # Check progress
read -p "Continue? (y/n) " -n 1 -r
[[ ! $REPLY =~ ^[Yy]$ ]] && break
doneOption 2: Script (see examples/scripts/fresh-context-loop.sh)
bash
./fresh-context-loop.sh 10 TASK.md PROGRESS.mdOption 3: External orchestrators
- AFK CLI: Zero-config orchestration across task sources