# Swarm

> Swarm is the view in AgentForge where a multi-agent mission is defined and followed. For one goal Swarm opens coordinator, builder, scout and reviewer panes; the coordinator splits the goal into cards, builders are fed automatically and a card that reaches review is sent to the reviewers. AgentForge pauses the mission when a mission limit is exceeded.

- Canonical: https://www.zekfy.com/agentforge/features/swarm/
- Türkçe: https://www.zekfy.com/tr/agentforge/ozellikler/swarm/
- Last updated: 2026-12-04
- Module: A team with a coordinator and reviewers
- Shortcut: `Ctrl+K`

Missions with a coordinator, builders and reviewers

## Four roles

An AgentForge [mission](https://www.zekfy.com/glossary/#mission) has four roles. The [coordinator](https://www.zekfy.com/glossary/#coordinator) splits the goal into cards and manages the team. A builder takes a card, does the work and adds evidence. A scout does read-only research. A reviewer approves or rejects a card in review; the owner of a card cannot vote on their own work.

Pane names are written to the [roster](https://www.zekfy.com/glossary/#roster) file (.forge/roster.json) and agents see the team through the mission_status tool.

## The two-second orchestration loop

While a swarm is running, AgentForge follows the same sequence every two seconds.

- Recovery: the card of an agent that crashed or closed returns to the queue; past the retry limit the card is parked.
- Feed: unowned todo cards with resolved dependencies are assigned to idle builders in a single write.
- Stuck handling: a live but silent [builder](https://www.zekfy.com/glossary/#builder) is nudged first, and if the silence continues the card is requeued.
- Review: a card in the in review column goes to the required number of reviewers; past the round limit the card is parked.
- Coordinator checkup: the coordinator is woken at the configured interval if the board changed since the last checkup; with no change it is still woken once after three intervals of silence.
- Completion: when every card is done the coordinator is asked for an evidence-backed summary. A mission that has been closed shows as Completed, and the team consoles stay open, so the last output can be read, until they are closed with Close team.

## Guardrails and templates

A mission can carry a runtime limit, a total dispatch limit, a parked-card threshold, a dollar ceiling and a token ceiling. When one of the thresholds is exceeded AgentForge pauses the mission: no new cards are assigned and agent terminals stay open. A WIP limit sets how many cards can be in progress at once, and a round limit sets how many times a card can enter review.

A set of roles and limits is saved as a mission template under .forge/missions/ and applied to a later mission with one click.

## The command bar and messages between agents

In the Swarm command bar "@builder-1 message" goes to one pane and "@all message" goes to every pane. Agents write to each other with the mailbox_send and message_send tools; if the target name is not in the roster the message is rejected and the tool returns the current agent list.

An agent [broadcast](https://www.zekfy.com/glossary/#broadcast) to "all" is information only: it reaches recipients with a broadcast label, and message types that assign work cannot be broadcast. Messages that pile up for an agent are delivered in one batch, and a message that is only an acknowledgment or a thank-you is not delivered.

A message that cannot be delivered is retried; if it still fails, the sending agent is told. Messages not yet taken into the delivery queue come back after the app restarts instead of being lost.

## Agent health and adding members to a running mission

The health strip in the Swarm view shows the age of the last activity for each agent and lets the user nudge an agent with one click. Message and [handoff](https://www.zekfy.com/glossary/#handoff) traffic between agents appears in a readable list.

The coordinator can add a builder, [reviewer](https://www.zekfy.com/glossary/#reviewer) or scout to a running mission with the team_add_member tool. An addition rests on concrete, unmet work on the board; if a suitable member is idle, the work goes to that member first. The default limit is three members per mission; going above it requires approval. Terminal capacity and the budget ceiling are never exceeded.

## Swarm features

The 8 features that live in this view. Each is also listed in the overview of all features.

### Specialty and model routing

Cards for frontend, backend, security, devops, testing and similar areas go to the matching specialist, and the routing policy chooses between an economy, a balanced and a powerful [profile](https://www.zekfy.com/glossary/#profile). Visual cards are given only to an agent with the visual specialty.

Listed under [Missions, teams and roles](https://www.zekfy.com/agentforge/features/#specialty-routing)

### One assignment per card

A two-second orchestration loop assigns each card whose dependencies are resolved to one builder only, in a single write guarded by the board revision number.

Listed under [Missions, teams and roles](https://www.zekfy.com/agentforge/features/#single-dispatch)

### Mission templates

A set of roles and limits is saved as a template under .forge/missions/. A template is applied with one click, and the template chips in [Command Center](https://www.zekfy.com/glossary/#command-center) start a saved goal through the [Main Brain](https://www.zekfy.com/glossary/#main-brain) flow.

Listed under [Missions, teams and roles](https://www.zekfy.com/agentforge/features/#mission-templates)

### Periodic coordinator checkup

The coordinator checks active work at an interval set between 30 seconds and 1 hour, but is woken only if the board changed since the last checkup; with no change it is still woken once after three intervals of silence. The result is reported with the checkup_report tool and shown in Command Center.

Listed under [Missions, teams and roles](https://www.zekfy.com/agentforge/features/#coordinator-checkup)

### Adding members to a running mission

The coordinator adds a builder, reviewer or scout to a running mission with the team_add_member tool. An addition has to rest on concrete, unmet work: a visual card with no visual builder, a review that needs more reviewers than the team has, a specialty missing from the team, or at least two more parallel cards than there are idle builders; if a suitable member is idle, that member gets the work first. The default limit is three members per mission; more requires approval, and terminal capacity and the budget ceiling are not exceeded.

Listed under [Missions, teams and roles](https://www.zekfy.com/agentforge/features/#add-members)

### Agent health strip and message stream

The Swarm view shows the age of the last activity per agent and allows a one-click nudge. Message and handoff traffic between agents is followed in a readable list.

Listed under [Missions, teams and roles](https://www.zekfy.com/agentforge/features/#agent-health)

### Message discipline

Agent messages are validated against the roster: sending to an unknown name is rejected and a broadcast to "all" is information only. Message text is cut at 800 characters and a broadcast at 400; a message that is only an acknowledgment is not delivered, and waiting messages arrive in one batch.

Listed under [Missions, teams and roles](https://www.zekfy.com/agentforge/features/#message-discipline)

### Routines: scheduled agent jobs

In the Routines view a job brief, a profile and a schedule are defined: at an interval, daily, on weekdays or on selected days of the week. A routine can also be run manually, and the last 20 runs are kept. Routines are part of the Ultra plan.

Listed under [Missions, teams and roles](https://www.zekfy.com/agentforge/features/#routines)

## At a glance

- **Name in the app menu:** Autonomous team
- **Roles:** coordinator, builder, scout, reviewer
- **Orchestration loop:** 2 seconds
- **Coordinator checkup interval:** 30 seconds to 1 hour, default 5 minutes
- **Mission limits:** runtime, dispatch count, parked cards, dollars, tokens
- **Members the coordinator can add:** default 3 per mission, more needs approval

## Questions about Swarm

### What is a swarm in AgentForge?

A swarm in AgentForge is a team of agents working together on one goal: a coordinator, one or more builders, an optional scout and one or more reviewers. Each agent runs in its own terminal pane and the team uses the shared board through [MCP](https://www.zekfy.com/glossary/#mcp) tools.

See also: [First mission: from a command to a verified result](https://www.zekfy.com/docs/first-mission/), [Swarm](https://www.zekfy.com/glossary/#swarm), [Coordinator](https://www.zekfy.com/glossary/#coordinator), [Builder](https://www.zekfy.com/glossary/#builder), [Reviewer](https://www.zekfy.com/glossary/#reviewer)

### What happens to a task when an agent crashes?

The card of an agent that crashes or closes returns to the queue and can be assigned to another builder. AgentForge keeps a retry count for each card; when the retry limit is exceeded the card is parked and waits for the user.

See also: [Parked card](https://www.zekfy.com/glossary/#parked-card)

### What happens when a reviewer rejects a card?

A reviewer rejection returns the card to the same builder as a new round, and the reason for the rejection is written to the card as a comment. If the mission defines a review round limit and the card exceeds it, the card is not sent to a reviewer again and is parked.

See also: [Evidence and review gates](https://www.zekfy.com/docs/evidence-and-review-gates/), [Reviewer quorum](https://www.zekfy.com/glossary/#quorum), [Parked card](https://www.zekfy.com/glossary/#parked-card)

### Can agents assign tasks to each other?

A message that assigns work can be sent to a single agent only, and the target name must be in the roster. A broadcast to "all" carries information only; the TASK_ASSIGN, NEED_HELP, REVIEW_REQUEST and HANDOFF types are rejected as broadcasts. Known roles other than the coordinator cannot move another agent's card.

See also: [Broadcast](https://www.zekfy.com/glossary/#broadcast), [Roster](https://www.zekfy.com/glossary/#roster), [Mailbox](https://www.zekfy.com/glossary/#mailbox)

## Related feature pages

- [Office](https://www.zekfy.com/agentforge/features/office/): Where you give the command
- [Board](https://www.zekfy.com/agentforge/features/board/): The task board agents work from
- [Control Plane](https://www.zekfy.com/agentforge/features/control-plane/): Approvals, evidence and rollback
- [Metrics](https://www.zekfy.com/agentforge/features/metrics/): What each agent costs and produces

- Previous feature: [Board](https://www.zekfy.com/agentforge/features/board/)
- Next feature: [Metrics](https://www.zekfy.com/agentforge/features/metrics/)
- [All features](https://www.zekfy.com/agentforge/features/)
