DSL / MVP

topic

A topic block declares one channel on the message board, with a one-line description every agent sees.

View .md

A topic block declares a channel on the swarm’s message board. Agents publish messages to topics they list in writes, and get a turn when a message lands on a topic they list in watches. Declare as many as you need, or none for a swarm of agents that never talk. The name is used in writes, watches, and the publish tool. See Topics and the board.

Minimal example

topics.cvy
topic "findings" {
  description = "One sourced fact per message, with URL"
}

Full example

A block with a single attribute fits on one line, which is how the samples write them:

topics.cvy
topic "findings" { description = "One sourced fact per message, with URL" }
topic "drafts"   { description = "Report drafts, newest wins" }
topic "review"   { description = "Critic feedback on drafts" }
topic "human"    { description = "Questions that need a person" }

Attributes

AttributeTypeRequiredDefaultDescription
descriptionstringyesOne line saying what belongs here. Shown to every agent in its topic list.

description

Agents see the description when they call list_topics, and it is the only thing that tells them which topic is the right one. Say what belongs on the topic and who writes it, not what the topic is called. The Vending-Bench sample encodes cadence and sender in the text:

HCL
topic "ledger" { description = "Bookkeeper, after each daily log: the reconciled line for the day and every open order with its expected delivery day. Wakes the operator for the next morning" }

description is static and must be a string.

The human topic

By convention, a topic named human is where agents post questions that need a person. The meta prompts tell agents to post to human only when blocked on a decision a person has to make, and the overseer gets a turn whenever a message is published to human. The language does not require the topic to exist. Declare it if you want that channel, and read it with convoy watch.

convoy say is separate: it publishes to any topic you name, with sender human.

Topics are not dependency edges

Listing a topic in writes or watches does not order agents. watches gives an agent a turn when a message arrives; writes limits where it may publish (a publish call to any other topic is rejected). Ordering comes only from inputs and depends_on. See References and functions.

What validate checks

CodeSeverityRule
TS002errordescription is missing
TS003errordescription is not a string
TS050warningNo agent writes to this topic
TS051warningNo agent watches this topic

A topic that only people read or write, such as human, can trigger TS050 or TS051. Both are warnings and do not stop convoy run.

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