Skip to main content

Loops

A loop is a scheduled agent behavior that runs without human intervention. Loops are what make the mesh autonomous: while you sleep, they're watching, consolidating, proposing, and maintaining.

Two tiers of loops run on every mesh:

  • Supervisor loops — run on supervisor nodes; concerned with mesh-wide health and cross-node coordination.
  • Memory loops — run on supervisor nodes; concerned with the shared mesh memory.

On top of those, you can define custom loops for your team.

Supervisor loops (selected examples)

These are representative — the full list is visible in the mesh dashboard.

LoopWhat it does
Node Health MonitorWatches for stale nodes and restarts failing services
Cost TrackerAggregates per-node spend for the dashboard
Cost ForecasterProjects monthly spend and flags anomalies early
Idle Session ReaperStops agent sessions that have been idle past a threshold
Daily ReportSummarizes the mesh's activity and proposes follow-ups
Proposal TriageGroups and prioritizes inbound proposals
Lineage Drift DetectorWatches for divergence between apps and the appgrammars that built them
Trust Score AuditReviews external dependencies and ratings

Each loop runs on its own schedule. Scheduling details and on/off toggles are configurable per-mesh.

Memory loops

Memory loops keep the mesh's collective knowledge healthy.

LoopWhat it does
Memory ConsolidationMerges near-duplicates and decays stale entries
Memory DistributionPropagates high-value facts across the mesh
Daily Proposal SynthesisTurns observations into actionable proposals for human review

Custom loops

Define your own loops for team-specific behaviors — nightly security scans, weekly dependency upgrades, monthly cost reviews. A custom loop is an agent task plus a schedule plus a target (a specific node, all workers, or the supervisor).

Create a custom loop from the dashboard: Loops → New Loop. You pick the schedule, the target, and the prompt. The loop runs on your LLM keys like any other agent work.

Interaction with proposals

Most loops don't change your system directly — they produce proposals for human approval. See Tasks, Reports & Proposals. This keeps autonomy and safety in balance: the mesh can notice everything and act on nothing without your say-so.

Enabling loops

During mesh setup, you pick an initial set of loops to enable. You can enable or disable each loop individually from the dashboard at any time. Disabling a loop stops its schedule; it does not cancel any proposals or reports it already produced.

Next