Skip to content

Instantly share code, notes, and snippets.

@betomoedano
Created January 17, 2026 19:11
Show Gist options
  • Select an option

  • Save betomoedano/4776c23da0a6df39f1b53d21a41dd363 to your computer and use it in GitHub Desktop.

Select an option

Save betomoedano/4776c23da0a6df39f1b53d21a41dd363 to your computer and use it in GitHub Desktop.
Ralph Wiggum Script
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <iterations>"
exit 1
fi
for ((i=1; i<=$1; i++)); do
echo "Iteration $i"
echo "--------------------------------"
result=$(claude -p --permission-mode acceptEdits "@plans/todo-list.json @progress.txt \
1. Find the highest-priority feature to work on and work only on that feature. \
This should be the one YOU decide has the highest priority - not necessarily the first in the list. \
2. Update the todo-list.json with the work that was done. \
3. Append your progress to the progress.txt file. \
Use this to leave a note for the next person working in the codebase. \
4. Make a git commit of that feature. \
ONLY WORK ON A SINGLE FEATURE. \
If, while implementing the feature, you notice the todo-list.json is complete, output <promise>COMPLETE</promise>. \
")
echo "$result"
if [[ "$result" == *"<promise>COMPLETE</promise>"* ]]; then
echo "todo-list.json complete, exiting."
exit 0
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment