Primitive 10 / Loop

Agent loop card

An agentic loop — plan, act, observe, repeat. Halt conditions cap runaway work: max iterations, goal reached, tool error, budget cap, or a human pulling the cord. Click an iteration to expand its thought, action and observation.

Production answer

Agent loop card is a reusable Oak Flats Muffler Men UI primitive with documented states, accessibility expectations, theme behavior, and implementation evidence.

Primary CTAReview Agent loop card states
Generative search brief

Agent loop card: An agentic loop — plan, act, observe, repeat. Halt conditions cap runaway work: max iterations, goal reached, tool error, budget cap, or a human pulling the cord. Click an iteration to expand its thought, action and observation.

State A · halted on goal · SMS triage 4 iters
Agent loop

SMS triage · Mick N80

4/8
50%
Goal

Identify intent, capture vehicle year, run the quote estimator and reply with one SMS.

Goal reachedMax iterationsBudget capTool error
  1. Thought

    Goal reached. Send SMS reply with quote refresher and Bay 2 slot offer.

    Action

    hermes.respond({ template: 'quote.ack', vars: { quoteId: 'q_44521' } })

    Observation

    SMS sent · message-id sm_88421 · delivered receipt pending

State B · approaching iteration cap · still running
Agent loop

DPF warranty investigation

4/5
80%
Goal

Determine if the rattle is covered under the 24-month parts warranty.

Max iterationsTool errorHuman stop
  1. Thought

    Wait on Sam W reply

    Action

    wait({ timeoutMs: 720000 })

    Observation

    Pending · poll loop active

State C · stopped by budget cap · cost-aware halt
Agent loop

Blog draft · long-form research

3/12
25%
Goal

Produce a 1,200-word draft on DPF cleaning vs replacement.

Budget capMax iterationsGoal reached
  1. Thought

    Begin section 1 · costs

    Action

    claude.generate({ section: 1 })

    Observation

    Budget cap reached — $0.50 USD daily ceiling.