Concepts / MVP

The overseer

The overseer is a built-in agent that judges progress against the goal and steers the team. It cannot end the swarm or change its goal.

View .md

The overseer is an agent that convoyd starts for every swarm. It is not declared as an agent block. It does none of the work. It reads the board, judges whether the goal is on track, and changes the swarm through the same API as every other agent.

Controller and overseer

Controller (code)Overseer (LLM)
DecidesWhether an agent crashed, is stuck, finished, or hit a limit or the budgetWhether the goal is on track, whether an agent needs a narrower brief, whether a role is missing
Acts byStarting and stopping runner processesPublishing instructions, creating agents, stopping agents it created
ReadsAgent status, progress timestamps, spend, done_whenThe board, progress summaries, its own earlier notes
Is wrongRarely. It is testable codeSometimes, so its actions are limited and logged

Anything computable is the controller’s job. Judgment is the overseer’s.

Declaring it

Set overseer = { provider = provider.anthropic, model = "claude-sonnet-5", can_spawn = false } on the swarm block, or start convoyd with --overseer-provider and --overseer-model as a server-wide default. The swarm’s attribute wins. A run with neither is refused. can_spawn defaults to true; set it to false to keep the team at exactly what the file declares. The overseer’s token usage counts toward max_cost_usd.

When it wakes

The controller publishes to the system topic, addressed to the overseer, on these occasions:

  • The run starts.
  • Every 5 minutes (--overseer-interval), with a status line: elapsed time, spend, and agent counts.
  • An agent becomes Stuck, Failed, or finishes, or cannot start because a dependency failed.

The overseer is also woken by a message published to human, or by any message addressed to overseer. Events within the debounce window become one turn.

What it sees

Each turn carries the unread summary, with system messages and anything addressed to it in full. The prompt tells it to start by calling list_agents for every agent’s status and last progress summary, then to read the topics that matter and its own earlier notes on progress. It also sees the goal, done_when, and spend against max_cost_usd.

What it can do

  • Every swarm tool.
  • note_progress(text), which publishes to progress. It ends every turn with one. If it forgets, the server posts a placeholder note.
  • Instruct an agent by publishing to a topic with to set.
  • Create agents with create_agent (when can_spawn is true). It becomes their parent.
  • Stop agents it created, or any agent that is Stuck.
  • Post to human when a decision needs a person.

What it cannot do

The server enforces these. There is no endpoint for them.

  • Change the goal or done_when.
  • End the swarm. finish is rejected for the overseer.
  • Create agents when its can_spawn is false.
  • Create an agent that uses a tool, provider or model that no declared agent uses.
  • Write to system, or to any topic that does not exist.

If it believes the goal is met while done_when is false, it can only note that and publish a message to the agent whose output decides done_when.

Example

  1. The controller marks researcher[groq] Stuck after 20 minutes without a progress report and publishes that to system.
  2. The overseer reads findings, sees nothing from the groq researcher, stops it, and creates researcher_groq_patents with a prompt pointing at patent filings.
  3. The server checks the new agent against the swarm’s declared tools, providers and models, then starts it.
  4. The overseer calls note_progress and ends its turn.

With can_spawn = false, step 2 becomes a narrower instruction addressed to the stuck agent, which is left running. See spawning. The implementation is on the controller page.

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