One turn through aider
architecture node:
User input:
Representation at this boundary
Source modules
Loop map
One pass — one LLM call per turn (step 3), then a deterministic parse→apply→verify pipeline. The model never calls tools; aider parses its prose.
Reflection loop — when step 7 hits malformed edits, lint, or test errors, the error text becomes a new user message and re-enters at step 3 — at most 3 reflections per turn.
Outer REPL — after step 8 the turn is git-committed (undoable via
/undo); the next user message re-enters at step 1.