1. Parse user arguments to extract worker prompt, verifier prompt (optional), and other parameters.
2. Determine the loop mode: self-terminating or worker + verifier.
3. Create or reuse a git worktree if specified.
4. Execute the worker agent with the worker prompt.
5. If a verifier is specified, execute the verifier agent with the verifier prompt.
6. Check the exit condition based on the worker's or verifier's output.
7. Sleep for the specified duration, if any.
8. Repeat steps 4-7 until the exit condition is met or the maximum number of iterations is reached.