Today’s agent harnesses are built around one person in one session. When a job needs more than one agent, you either type “launch a sub-agent” into that session and hope, or you write Python against an agent SDK, at which point your script is the orchestrator. If you need it to survive a long run, you add Temporal, and now you have two systems with two ideas of state, and the agents still cannot talk to each other.
Convoy treats a swarm the way Terraform treats infrastructure and Kubernetes treats workloads: you declare what should exist, and a long-running server makes it so.
swarm "edge_chips" {
goal = "Ship a sourced 10-page market report on edge inference chips"
done_when = agent.critic.output.approved == true
max_runtime = "4h"
max_cost_usd = 60
}
agent "researcher" {
for_each = toset(["nvidia", "groq", "cerebras", "tenstorrent"])
provider = provider.anthropic
model = "claude-sonnet-5"
prompt = file("prompts/research.md")
writes = [topic.findings]
}What you get
- One language, one agent to many. A solo agent and a twelve-agent swarm are the same kind of file, run by the same server, the same way.
- Native swarm primitives. Topics and messages, typed outputs, dependency edges, and spawning are part of the language, not prompts.
- A runtime that holds the state.
convoydkeeps every swarm, agent, topic and message. The CLI exits; the swarm keeps running. - A control loop. A controller enforces the budget, the runtime limit, turn limits and stuck detection. An overseer agent judges progress and can add or redirect agents.
- Any provider. Claude Agent SDK, OpenAI Agents SDK, or any OpenAI-compatible endpoint, through one MCP tool surface.
The pieces
| Piece | What it is |
|---|---|
| The DSL | HCL with four block types: swarm, provider, topic, agent. Files end in .cvy. |
| The CLI | convoy, a single Go binary. It never holds state: it validates files and calls the server. |
| The runtime | convoyd, a Go server with a message board, a controller, an overseer and one runner process per agent. |
| The architecture | How the components fit, which seams are contracts, and how the repository is laid out. |