# bespokelabsai/multi-agent-coordination-bench architecture

> Architecture diagram of the GitHub repository bespokelabsai/multi-agent-coordination-bench, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bespokelabsai/multi-agent-coordination-bench
- Repository: https://github.com/bespokelabsai/multi-agent-coordination-bench

## Overview

MAC Bench is a benchmark of twelve long-horizon tasks designed to measure multi-agent coordination. The team workflow runs agents in Harbor sandboxes, with orchestration strategies controlling their runs and a shared board supporting coordination; the model proxy provides metering and budget controls. Tasks run either singly or with teams, with shared or distributed information. Task implementations vary widely, so the task nodes represent the benchmark’s documented domains rather than asserting unverified internal call flows. Relationships are limited to README statements and the sampled harness excerpts.

Main entry points: [`harness/src/multi_agent_harness/harbor/agent.py`](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/harbor/agent.py) (Team agent), [`harness/src/multi_agent_harness/board/server.py`](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/board/server.py) (Message board API), [`harness/src/multi_agent_harness/proxy/server.py`](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/proxy/server.py) (Model proxy), [`harness/src/multi_agent_harness/harbor/orchestration.py`](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/harbor/orchestration.py) (Run strategy)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Team runtime"]
  node_team_agent["Team agent<br/>[agent.py]"]
  node_orchestration["Run strategy<br/>[orchestration.py]"]
  node_board_server["Message board API<br/>[server.py]"]
  node_board_core[("Board messaging<br/>[core.py]")]
  node_proxy["Model proxy<br/>[server.py]"]
  node_metering["Usage metering<br/>[metering.py]"]
end

subgraph group_sim_tasks["Simulation tasks"]
  node_cave["Cave Rescue"]
  node_holdout["Holdout-game"]
  node_legion["0 A.D."]
  node_mindustry["Mindustry"]
  node_dxb["Dubai ATC"]
  node_power["Power Outage"]
end

subgraph group_domain_tasks["Domain tasks"]
  node_mars["Mars Return"]
  node_seed["Seed to Profit"]
  node_skyline["Chicago Skyline"]
  node_spectrum["Spectrum to Molecule"]
end

subgraph group_technical_tasks["Technical tasks"]
  node_rna["RNA Structure"]
  node_compressor["SOTA Compressor"]
end

node_user(("Benchmark user"))
node_harbor{{"Harbor runtime"}}

node_user -->|"runs team"| node_team_agent
node_harbor -->|"hosts team"| node_team_agent
node_team_agent -->|"uses strategy"| node_orchestration
node_team_agent -->|"registers agents"| node_board_server
node_team_agent -->|"registers agents"| node_proxy
node_board_server -->|"routes messages"| node_board_core
node_proxy -->|"meters usage"| node_metering
node_team_agent -->|"runs task"| node_cave
node_team_agent -->|"runs task"| node_holdout
node_team_agent -->|"runs task"| node_legion
node_team_agent -->|"runs task"| node_mindustry
node_team_agent -->|"runs task"| node_dxb
node_team_agent -->|"runs task"| node_power
node_team_agent -->|"runs task"| node_mars
node_team_agent -->|"runs task"| node_seed
node_team_agent -->|"runs task"| node_skyline
node_team_agent -->|"runs task"| node_spectrum
node_team_agent -->|"runs task"| node_rna
node_team_agent -->|"runs task"| node_compressor

click node_team_agent "https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/harbor/agent.py"
click node_orchestration "https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/harbor/orchestration.py"
click node_board_server "https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/board/server.py"
click node_board_core "https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/board/core.py"
click node_proxy "https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/proxy/server.py"
click node_metering "https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/proxy/metering.py"
click node_cave "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/caverescue"
click node_holdout "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/holdout"
click node_legion "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/legion"
click node_mindustry "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/mindustry"
click node_dxb "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/dxb-atc-live"
click node_power "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/power-outage"
click node_mars "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/mars-return"
click node_seed "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/seed-to-profit"
click node_skyline "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/chicago-skyline-survey"
click node_spectrum "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/spectrum-to-molecule"
click node_rna "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/rna-secondary-structure"
click node_compressor "https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/compressor-sprint"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_team_agent,node_orchestration,node_board_server,node_board_core,node_proxy,node_metering,node_user toneBlue
class node_cave,node_holdout,node_legion,node_mindustry,node_dxb,node_power toneAmber
class node_mars,node_seed,node_skyline,node_spectrum toneMint
class node_rna,node_compressor toneRose
class node_harbor toneIndigo
```

## Components

### Team runtime

- [Team agent](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/harbor/agent.py): `harness/src/multi_agent_harness/harbor/agent.py`
- [Run strategy](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/harbor/orchestration.py): `harness/src/multi_agent_harness/harbor/orchestration.py`
- [Message board API](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/board/server.py): `harness/src/multi_agent_harness/board/server.py`
- [Board messaging](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/board/core.py): `harness/src/multi_agent_harness/board/core.py`
- [Model proxy](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/proxy/server.py): `harness/src/multi_agent_harness/proxy/server.py`
- [Usage metering](https://github.com/bespokelabsai/multi-agent-coordination-bench/blob/main/harness/src/multi_agent_harness/proxy/metering.py): `harness/src/multi_agent_harness/proxy/metering.py`

### Simulation tasks

- [Cave Rescue](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/caverescue): `tasks/caverescue`
- [Holdout-game](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/holdout): `tasks/holdout`
- [0 A.D.](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/legion): `tasks/legion`
- [Mindustry](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/mindustry): `tasks/mindustry`
- [Dubai ATC](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/dxb-atc-live): `tasks/dxb-atc-live`
- [Power Outage](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/power-outage): `tasks/power-outage`

### Domain tasks

- [Mars Return](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/mars-return): `tasks/mars-return`
- [Seed to Profit](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/seed-to-profit): `tasks/seed-to-profit`
- [Chicago Skyline](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/chicago-skyline-survey): `tasks/chicago-skyline-survey`
- [Spectrum to Molecule](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/spectrum-to-molecule): `tasks/spectrum-to-molecule`

### Technical tasks

- [RNA Structure](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/rna-secondary-structure): `tasks/rna-secondary-structure`
- [SOTA Compressor](https://github.com/bespokelabsai/multi-agent-coordination-bench/tree/main/tasks/compressor-sprint): `tasks/compressor-sprint`

### Other components

- **Benchmark user**
- **Harbor runtime**

## Connections

- Benchmark user → Team agent: runs team
- Harbor runtime → Team agent: hosts team
- Team agent → Run strategy: uses strategy (evidence: `harness/src/multi_agent_harness/harbor/agent.py`)
- Team agent → Message board API: registers agents (evidence: `harness/src/multi_agent_harness/harbor/agent.py`)
- Team agent → Model proxy: registers agents (evidence: `harness/src/multi_agent_harness/harbor/agent.py`)
- Message board API → Board messaging: routes messages (evidence: `harness/src/multi_agent_harness/board/server.py`)
- Model proxy → Usage metering: meters usage (evidence: `harness/src/multi_agent_harness/proxy/server.py`)
- Team agent → Cave Rescue: runs task
- Team agent → Holdout-game: runs task
- Team agent → 0 A.D.: runs task
- Team agent → Mindustry: runs task
- Team agent → Dubai ATC: runs task
- Team agent → Power Outage: runs task
- Team agent → Mars Return: runs task
- Team agent → Seed to Profit: runs task
- Team agent → Chicago Skyline: runs task
- Team agent → Spectrum to Molecule: runs task
- Team agent → RNA Structure: runs task
- Team agent → SOTA Compressor: runs task
