Every AI System Needs a Loop
The industry has been obsessed with prompts for 2 years. Bigger prompts. Structured prompts. Role-based prompts with 15 paragraphs of you are an expert.
The systems that actually work follow a different pattern. They follow a loop: Act, Observe, Evaluate, Update, Repeat. That is the only thing that matters. Not the prompt. The loop.
A prompt does not recover from failure. A loop catches failure at every transition.
What the Loop Looks Like in Practice
Two loops, one architecture. Both run on the same Act→Observe→Evaluate→Update→Repeat pattern.
Act INGEST a raw source file, ANALYZE its entities, RECONCILE against existing pages. The first half of the loop.
Observe Check the validation gates. Does the page have frontmatter. Do the links work. The first feedback signal.
Evaluate Score the output. Pass or fail. The decision point that decides whether the loop advances.
Update Write the new page, log the action, bump the state file. The system now reflects the new state.
Repeat Next source file, or back to IDLE. The loop continues.
/extract → INGEST → ANALYZE → RECONCILE → INDEX → VALIDATE → IDLE
/post → SESSION → STRATEGY → DRAFT → GATES → QUEUE → REVIEW? → PUBLISH → ARCHIVE → ANALYZE → IDLETwo loops. One architecture. The Act→Observe→Evaluate→Update→Repeat pattern is the same.
Why Loops Beat Prompts
The smallest possible example of the loop pattern replacing the prompt pattern.
The first is a prohibition the model must hold across time. The second is a decision tree the model executes right now. Models are bad at the first and good at the second.
The Human Toggle
Here is the other thing loops enable that prompts cannot: conditional human involvement.
A prompt cannot do this. A prompt cannot say if quality is above 0.85, proceed, otherwise pause. A prompt is static. A loop is dynamic.
The Real Insight
Prompt engineering is the past. Agentic loops are the future. The people building with state machines and execution gates are shipping.
I absolutely wrote the big prompt first. I spent months adding rules to it. The day I replaced it with a 200-line state machine was the day the system started working. The model did not change. The architecture did.
Do not build a bigger prompt. Build a loop.
Two loops. 200 lines. 30 gates. The model did not change. The architecture did. Clone the Spiel OS repo and see for yourself.
Clone the SpielOS repo