The cycle
An agent thinks in cycles. Adapters gather data in the background; a cycle is when the agent looks at it. Each cycle does three things:
- Refresh measures. SQL aggregates over the observation log become numbers like
m.spent. - Evaluate the goal. Each objective is
pass,failorno_data. - Reason, only if needed. If every objective passes, Loom records the status and stops: no model call. If one fails, the model reasons and answers with one structured object.
What the model returns
Section titled “What the model returns”The model never returns free text. It returns:
{ "proposals": [ { "method": "send_warning", "params": { "message": "…" } } ], "output": { "recommendation": "…", "rationale": "…" } }proposalsare capability calls. Each travels the safety pipeline.outputis what the agent concludes, shaped by the bundle’soutput_schema. It always carries arecommendationand arationale, plus any typed fields you declare.
Both are validated. An invalid answer is sent back with the errors, up to max_retries; after that
the cycle is marked errored and nothing is coerced. A model that is bad at structured output costs
retries, never a wrong action.
When does a cycle run?
Section titled “When does a cycle run?”Loom schedules nothing itself. A cycle runs when something asks:
- A heartbeat:
launchd(or cron, or any timer) runspython -m loom.coreon the goal’sevaluate_every. See Run on macOS. - On demand:
POST /cycleson the agent API. - A chat turn: a conversation’s first turn, or one that asks for fresh data.
limits caps model calls and tokens per rolling window. It is a circuit breaker for runaway loops,
not a budget: counts reset each window, so a tripped agent resumes on its own.