Openstatus
www.openstatus.dev
1#!/bin/bash
2set -e
3
4if [ -z "$1" ]; then
5 echo "Usage: $0 <iterations>"
6 exit 1
7fi
8
9for ((i=1; i<=$1; i++)); do
10 result=$(docker sandbox run claude --permission-mode acceptEdits -p "@prd.json @progress.txt \
11 1. Find the highest-priority task and implement it. \
12 2. Run your tests and type checks. \
13 3. Update the PRD with what was done. \
14 4. Append your progress to progress.txt. \
15 5. Commit your changes. \
16 ONLY WORK ON A SINGLE TASK. \
17 If the PRD is complete, output <promise>COMPLETE</promise>.")
18
19 echo "$result"
20
21 if [[ "$result" == *"<promise>COMPLETE</promise>"* ]]; then
22 echo "PRD complete after $i iterations."
23 exit 0
24 fi
25done