HarnessLoop runnersClaude Code

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
  1. A shell loop runs the agent on PROMPT.md.
  2. Each run reads the plan and progress files, does one thing, and commits.
  3. 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