Code Plain
Glossary

Stopping Condition

The signal that tells the agent the task is done.

Every cycle needs a way to end. In an agent, the question is who decides it is finished — and the default answer, when nobody defines one, is the model deciding for itself.

"Looks good" does not qualify. It is a feeling, and feelings are not machine-checkable. An agent grading its own work has an incentive to declare victory.

The clearest practical example is the automated test written before the code: a failing test is a stopping condition the machine can check on its own. The agent knows where to go and knows when it arrived, without needing anyone's opinion.

Read the article: I counted dcode's loop and found the stopping condition