Stop¶
End a run on purpose. Raise Stop anywhere in a workflow, and the run ends with your message.
AGL prints Stopped: <message> and exits with code 7. Work
committed so far stays on agl/<label>, the same as when a workflow returns.
A Stop raised in a worktree or in a
tool's function ends the whole run too.
Use it when there is nothing left to do, or when a question in the terminal is answered no:
A stopped run isn't finished, so agl resume can continue
it. Its finished steps return their recorded results, and a question
is asked again when the resumed run reaches it.