CLI / MVP

convoy stop

Stop a whole swarm run or a single agent. Stopping a swarm ends its run as Stopped, after which convoy run can start a new one.

View .md
Text
convoy stop <swarm> [<agent>]

What it does

Sends {"reason": "stopped from the CLI"} to the server and prints the resulting status. It acts on the latest run.

  • convoy stop <swarm> calls POST /v1/swarms/{name}:stop. Every non-terminal agent is stopped: processes are killed and tokens revoked. The run ends as Stopped with reason stopped, and convoy run may then start a new run of that name.
  • convoy stop <swarm> <agent> calls POST /v1/swarms/{name}/agents/{agent}:stop. The agent’s children are stopped first, depth first, then the agent. The rest of the swarm keeps running.

Both are idempotent: stopping something already in a terminal state succeeds and changes nothing.

Examples

Terminal
$ convoy stop edge_chips
swarm "edge_chips" run 3 STOPPED (stopped), spend $4.87
Terminal
$ convoy stop edge_chips researcher[tenstorrent]
agent "researcher[tenstorrent]" stopped

Free the name, then start over:

Terminal
$ convoy stop edge_chips && convoy run

Notes

Stopping the whole swarm is the only way to replace a running one, because convoy run refuses with swarm_active. A run stopped by a human has end reason stopped. Runs stopped by the server itself end with budget or max_runtime. Outputs already produced are kept and readable with convoy status --run N.

The agent form needs the caller to be the CLI, the overseer, or the agent’s parent. The CLI always qualifies.

Exit codes

CodeCause
0Stopped, or already in a terminal state
1Unknown swarm or agent (404), or server unreachable
2Missing argument

API endpoints

  • POST /v1/swarms/{name}:stop
  • POST /v1/swarms/{name}/agents/{agent}:stop
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