Vibe Engines
YouTube
← All decks

Loop Engineering

Loading your review…

All 12 cards in this deck

Outer loops, stopping conditions, verification splits — running agents without being the keyboard. Answer each question before you open it — then run the review above, which schedules every card with spaced repetition so it comes back right before you would forget it.

  1. What is loop engineering?

    Designing the system that prompts your agent instead of prompting it yourself: a trigger, task framing from state, independent verification, external memory, and an explicit stopping condition.

  2. Inner loop vs outer loop?

    Inner = plan-act-observe inside one agent run (the harness builds it). Outer = trigger → frame → run → verify → record around whole runs — the part you engineer.

  3. Name the four loop types.

    Heartbeat (continuous interval), cron (schedule), hook (event-triggered), goal (iterate until a verifiable condition — always with a hard cap).

  4. Which loop type is most dangerous, and why?

    The goal loop — its natural state is "keep going", so without a max-iterations cap it burns budget forever on an unachievable condition.

  5. The three guards that make a loop stop correctly?

    Hard caps (max iterations, budget), verifiable conditions (tests green, zero lint errors), and independent verification — a verifier that is not the implementer.

  6. What is the verification split?

    The agent that wrote the change never approves it. A separate verifier — test suite, reviewer subagent, different model — judges the output, so the model is not grading its own homework.

  7. What is state amnesia?

    A loop with no external memory repeats prior work each run — busy but not progressing. Fix: a checkpoint the loop reads first and writes last.

  8. Name the six building blocks of a production loop.

    Automations (find work), worktrees (isolation), skills (codified knowledge), MCP connectors (reach), subagents (verification), external memory (state).

  9. Two rules for trustworthy loop state?

    Read state before framing the task, write it only after verification (a crashed run records nothing); and record facts — "converted file X, tests pass" — never vibes.

  10. The model-routing rule of thumb for loop cost?

    Cheap models watch, expensive models act, the most expensive model only reviews. Routing by step difficulty saves 60–80% of token spend.

  11. What is comprehension debt?

    The loop ships faster than the team reads; understanding of your own codebase decays. Guard: read what merges, keep loop throughput inside human review bandwidth.

  12. What is the orchestration tax?

    The real ceiling on parallel agents: not model capability but your bandwidth to review what they produce. Parallelism past it manufactures unreviewed changes.