Define a stopping rule before giving an agent a loop
Separate one prompt, a goal with a completion test and a repeated timed check.
Watch the original video ↗Write an observable definition of done
Thanks to Omnisend for sponsoring this video.
The recording distinguishes prompts, goals and loops, using a thermostat analogy. An instruction to keep trying needs a check that can actually establish success.
- Choose a small task and write the expected output.
- Specify how the agent can test that output.
- Define what to do if the needed access or input is missing.
- Set a budget or iteration limit alongside the completion condition.
Match the mechanism to the task
The July examples use /go with until conditions and /loop for repeated work. These are commands shown in the recording, not a claim that every current client supports the same interface.
- Inspect the recorded goal examples, such as a checked game or generated sequence.
- Distinguish a task that finishes once from a timed check of changing state.
- Read the current client’s own instructions before using an exact command.
- Start with a small read-only or reversible experiment.
Review repeated actions and cost
The video also discusses PR watching and branch pruning. A repeated trigger should not silently acquire permission to make consequential changes.
- Keep external actions and deletion behind their required review boundary.
- Inspect the first result before enabling repetition.
- Make failures, unresolved conditions and token use visible.
- Stop or revise a loop that cannot establish progress instead of letting repeated attempts stand in for evidence.
The takeaway
A loop is useful when its inputs, limits and success check are clear. This guide does not create a schedule or grant permission for unattended repository changes.
About this article and its sources
Written companion prepared 31 October 2026 from this exact published description and its chapter sequence where available. Checklists are editorial adaptations, not quotations from a reviewed final-cut transcript. Reported outcomes belong to the original video; the product was not retested. Model availability, setup details, prices and offers can change. Use the retained video and resources for the demonstrated setup.
