What is the CodexPotter Loop ($loop)?
v2The $loop skill is a control protocol used to run subagents in a repetitive pattern to "reconcile" a repository to a specific target state or objective.
In this pattern, the coordinator agent does not perform any implementation, review, or testing itself. Instead, it manages the lifecycle of subagents that own all task execution. The loop continues until the subagent signals completion via specific markers or the maximum number of rounds is reached.
Control Markers
Subagents communicate their status using the following markers:
- No marker: Work is not yet proven complete. The coordinator continues with the same subagent.
::potter(ready): The subagent has a candidate completion that requires verification with fresh context. The coordinator should close the current subagent and start a fresh one in the next round.::potter(exit): Verification passed. The coordinator stops the loop with statecomplete.
Control Parameters
rounds=N(default10): The maximum number of counted rounds allowed before the loop stops.