Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Swarm investigation guide

Use a workspace API key with traces:read to list swarms and inspect their recorded evidence.
ReferenceEvidence
Swarm overviewLane summaries, findings, and the measured dependency chain.
EventsLive commit cursors, historical cutoff, and event filters.
AttemptsTask attempts, usage, outcomes, retries, and configuration versions.
DiagnosticsRecorded time, token overhead, evaluation provenance, and delivery receipts.
Exact evidenceConsumers, findings, and artifact versions for one event.
Artifact contentRetained redacted bytes with a digest and byte count.
AgentsAgent directory and trace counts.
Agent sessionsSessions that recorded one agent.
MessagesRecorded sends, deliveries, and consumption.
Journal entriesSwarm and session-only records, including archived content.

View swarm activity

Open Swarms in the dashboard and choose a run. The timeline follows new events as they arrive.
  • Agents lists the agents that emitted evidence and links to their session traces.
  • Messages shows who sent each message, who was expected to receive it, and which delivery or consumption receipts were recorded. Open a conversation to follow the exchange. Text appears when the producer captured a redacted body.
  • Logs starts with all recorded events. Choose Application logs to narrow the stream, or use Filter events to focus on an agent, task, span or severity. Next events opens earlier records. A session-only log without a known agent is marked unattributed.
For your own swarm, give cooperating workers the same swarm UUID. Give each agent instance and producer their own identifiers and report each observed send, delivery and read. TypeScript and OpenTelemetry ingestion
The collection supports status filters active, waiting, succeeded, failed, cancelled, unknown, stale, over_budget and incomplete. Sort by recent, cost, blocked or outcome. Costs sum the priced usage records. Check unpricedUsage before treating a sum as a complete cost.

Follow a live swarm

Fetch the newest event page and retain the first event's cursor. Poll /{id}/events?after={cursor} and apply each response in order. Advance to the last cursor processed. Use after=0 to follow an empty stream from its beginning. These cursors reflect commit order, so delivery can include events with earlier occurrence times.

Inspect a recorded state

Pass at with an RFC 3339 timestamp on a swarm overview, an event page or an exact evidence request. A historical view includes point events through that time and timed operations whose recorded end is at or before it. Links can remain unresolved until both events are visible. Current retention and workspace permissions apply to historical reads. An active swarm becomes stale after 15 minutes without a committed event. A terminal receipt supplies the final status.
The measured chain sums recorded durations across explicit wait_for_end dependencies. It requires timings on both sides. The response marks insufficient evidence as unknown and graphs exceeding the 1,024 measured-edge budget as limited. The timeline and event pages remain available in either case.

Investigate a failed review

From a source checkout, span hook ingest < examples/swarm-review.jsonl shares a small synthetic failed review to your configured workspace. Open Payment retry review in Swarms.
Select the artifact-version finding. The inspector identifies the consumed version, any expected version, and production evidence with SHA-256 digests. Open the handoff or a downstream consumer to inspect the source event. Redacted text previews appear when the producer supplied them.
An owner or admin can confirm or dispute a cause with a receipt, assign the finding, or enable an in-app alert for the rule in this project and environment. Export the selected evidence to save a regression case. The export identifies unexpanded and unavailable neighbors. Browser-saved investigations and comparisons retain navigation state for that device.
Self-hosted operators can restore a swarm's projections after migrating telemetry. The rebuild reads the retained tenant journal and preserves existing event cursors and review receipts.
services/bin/agent-retention --rebuild-swarm "$WORKSPACE_ID" "$SWARM_ID"

Explain progress and resource use

Open Diagnostics to inspect recorded time and token use alongside evaluation and delivery evidence. Select an evidence link to inspect the original event, its artifact version and related events. The API is GET /api/v1/observability/swarms/{swarm}/diagnostics; it accepts the same at cutoff as the timeline.
Diagnostics covers the latest 4,096 retained, unsuperseded events. limited means earlier events are outside this window. Counts and costs describe that window, not the entire run. Correction links exclude superseded measurements; original events remain inspectable. An empty category means no observations were recorded for it.
Timed execution and wait events accept activity: model, tool, coordination, compaction, or idle. Supply endAt through the SDK. Tool spans and compaction events identify their own activity. A point event has unknown duration. Overlapping intervals for the same agent, session and activity count once; different activities can overlap, and parallel agent sessions can accumulate more time than the wall-clock window. Do not add category durations together. A gap between timestamps does not establish that an agent was idle.
Usage events accept purpose: work, coordination, or compaction. Missing attribution appears as unknown. A compaction marker alone does not establish its token cost. Token and cost totals in diagnostics are decimal strings to preserve exact values. A null cost means no prices were supplied; unpricedRecords identifies partial pricing. Only attribute actual provider usage once per call, even when the call also has a timing event.
Emit evaluation from the evaluator with suite and evaluator versions, candidate revision, result and receipt. Comparative results (improved, regressed, unchanged) require baselineRevision. Link to the evaluated artifact and supporting outcome events. evaluatorKind records whether the producer reports an agent, external evaluator, or human; it does not prove independence or grant authority. Run independent evaluations outside agent workspaces and keep their private inputs inaccessible to the workers. Evaluation receipts remain separate from the mission's terminal outcome.
Emit delivery when a change is opened, review is requested, approval or changes are requested, a merge is attempted, merged, conflicted, or reverted. Include the change, revision and receipt. Counts measure recorded stage events, not queue depth or unique pull requests. Record review and merge queue waits with activity: 'coordination' and an appropriate wait reason.
Use the existing Compare action to compare recorded outcomes, elapsed time, cost and retries. Check evaluator, suite, baseline, capture coverage and workload before concluding that a configuration improved. Trace an unexpected cost or regression to its evidence before adding agents or compute.