Your agent loop is only as good as its context and prompt.
Loop engineering gets the attention: goals, guardrails, stop criteria.
But the loop runs inside a harness.
The harness feeds the LLM a context window.
And that context starts with a prompt.
Get the inner layers wrong and the loop makes and repeats mistakes.

