CLI / MVP

convoy status

Print a run's status, elapsed time, spend against budget, end reason, and one row per agent. Use --json for scripts and --runs for history.

View .md
Text
convoy status <swarm> [--run <N>] [--runs] [--json]

What it does

Calls GET /v1/swarms/{name} and GET /v1/swarms/{name}/agents for the latest run, or run N with --run. It prints a header, the goal, an agent table, and the latest overseer progress note.

Terminal
$ convoy status edge_chips
swarm edge_chips   run 3   RUNNING   elapsed 00:41:12 / 4h   spend $4.12 / $20.00   agents 7 (running 2, idle 4, done 1)
goal: Ship a sourced 10-page market report on edge inference chips

AGENT                 STATUS   TURNS  PROVIDER   SPEND   LAST PROGRESS
researcher[cerebras]  done     12     anthropic  $0.61   published 9 findings
researcher[groq]      idle     8      anthropic  $0.48   waiting on patent search results
writer                running  3      openai     $0.92   drafting section 2
critic                idle     1      anthropic  $0.70   reviewed draft 1, score 0.6
overseer              idle     4      anthropic  $0.31   all researchers productive

progress (latest): 3 of 4 researchers done; writer has started.

Reading the output

FieldMeaning
elapsedTime since the run started, against max_runtime
spendThe run’s total against max_cost_usd, or spend $4.12 (no limit) when unset. Priced from each turn’s reported tokens
STATUSAgent status: pending, running, idle, stuck, done, stopped, failed. See Agents and turns
TURNSTurns the agent has taken
LAST PROGRESSThe agent’s latest report_progress summary

Turns in flight finish after the limit is reached, so total spend can exceed max_cost_usd. It is shown as is.

For an ended run, the header shows the end status and reason:

Terminal
$ convoy status edge_chips --run 2
swarm edge_chips   run 2   STOPPED (budget)   elapsed 02:13:50 / 4h   spend $20.38 / $20.00   agents 7 (done 4, stopped 3)

Possible endings: DONE, STOPPED (budget), STOPPED (max_runtime), STOPPED (stopped) for a human stop, and FAILED (failed) or FAILED (server_restart).

Flags

FlagMeaning
--run NRead run N instead of the latest
--runsList every run of the swarm
--jsonPrint one merged JSON object

Run history

Terminal
$ convoy status edge_chips --runs
RUN  STATUS   END REASON  STARTED              ELAPSED   SPEND
3    running  -           2026-11-05 12:04:02  00:41:12  $4.12
2    stopped  budget      2026-11-04 09:30:11  02:13:50  $20.38
1    done     done        2026-11-03 16:02:44  01:05:09  $11.77

JSON

--json merges the two responses. It always includes run, status, end_reason (null while running), started_at, ended_at, elapsed_seconds, spend_usd, max_cost_usd (null when unset), and per agent spend_usd, turns, status, and output once the agent has finished.

Terminal
$ convoy status edge_chips --json | jq '{status, end_reason, spend_usd, max_cost_usd}'
{
  "status": "running",
  "end_reason": null,
  "spend_usd": 4.12,
  "max_cost_usd": 20
}

This is the form for comparing runs, for example the team and solo arms of the Commit0 example.

Exit codes

CodeCause
0Status printed, whatever the run’s own status
1Unknown swarm (404), unknown run, or server unreachable
2Missing swarm argument

API endpoints

  • GET /v1/swarms/{name}?run=N
  • GET /v1/swarms/{name}/agents?run=N
  • GET /v1/swarms/{name}/runs for --runs
Last updated 2026-11-05
esc
    ↑↓ to move · ↵ to open
    Menu
    Get started
    IntroductionInstallQuickstartYour first swarm
    Concepts
    Swarms and runsAgents and turnsTopics and the boardThe overseerSpawning agentsBudgets and limits
    DSL
    Language rulesswarmprovidertopicagentReferences and functionsValidation rules
    Providers
    Provider typesUsing a provider typeWriting a provider type
    CLI
    Overviewconvoy goalconvoy validateconvoy runconvoy statusconvoy watchconvoy sayconvoy stopconvoy uiconvoy provider
    Runtime
    convoydControllerMessage boardRunnerSwarm tools (MCP)Web UIDurability
    Architecture
    OverviewRepository layoutSeams and contractsHTTP API
    Examples
    OverviewWriter and criticResearch teamCode teamPaperBench replicationCommit0 libraryVending-BenchSWE-Lancer bountyτ²-bench loop
    Inspiration
    What we borrowedThe harness landscape