HarnessLoop runners
Ralph Wiggum loop (fresh context)
The original pattern: a bash loop that starts a fresh agent session on the same prompt each time, with progress kept in files.
How each pass goes
- A shell loop runs the agent on PROMPT.md.
- Each run reads the plan and progress files, does one thing, and commits.
- The next run starts with clean context.
Stops when
The plan file has nothing left, or you kill the loop.
Command
while :; do cat PROMPT.md | claude -p; done