# sureshbujji/multi-agent-orchestrator architecture

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

- Interactive diagram: https://gitdiagram.com/sureshbujji/multi-agent-orchestrator
- Repository: https://github.com/sureshbujji/multi-agent-orchestrator

## Overview

This is a deterministic multi-agent orchestrator that turns a task—demonstrated with login-API test planning—into subtasks, generated artifacts, critic reviews, and a bounded rework cycle. The orchestrator coordinates Planner, Worker, and Critic agents through an in-memory blackboard that records state and messages. The demo computes run metrics and writes a transcript and summary. The README documents the workflow and outputs; role-to-blackboard interactions are shown at the architecture level, while some role implementation details were not sampled.

Main entry points: [`src/orchestrator.py`](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/orchestrator.py) (Orchestrator), [`src/demo.py`](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/demo.py) (Demo runner), [`src/blackboard.py`](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/blackboard.py) (Blackboard), [`src/roles.py`](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/roles.py) (Planner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_coordination["Run coordination"]
  node_orchestrator["Orchestrator<br/>[orchestrator.py]"]
end

subgraph group_agents["Agent roles"]
  node_planner["Planner<br/>[roles.py]"]
  node_worker["Worker<br/>[roles.py]"]
  node_critic["Critic<br/>[roles.py]"]
end

subgraph group_state["Shared run state"]
  node_blackboard["Blackboard<br/>[blackboard.py]"]
end

subgraph group_results["Run results"]
  node_demo["Demo runner<br/>[demo.py]"]
  node_metrics["Run metrics<br/>[metrics.py]"]
  node_reports["Run reports"]
end

node_user(("Task requester"))

node_user -->|"runs demo"| node_demo
node_demo -->|"starts run"| node_orchestrator
node_orchestrator -->|"creates, reads, writes"| node_blackboard
node_orchestrator -->|"invokes planning"| node_planner
node_orchestrator -->|"invokes work"| node_worker
node_orchestrator -->|"invokes review"| node_critic
node_planner -->|"posts plan"| node_blackboard
node_worker -->|"shares artifacts"| node_blackboard
node_critic -->|"shares reviews"| node_blackboard
node_demo -->|"computes metrics"| node_metrics
node_demo -->|"writes transcript and summary"| node_reports

click node_orchestrator "https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/orchestrator.py"
click node_planner "https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/roles.py"
click node_worker "https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/roles.py"
click node_critic "https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/roles.py"
click node_blackboard "https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/blackboard.py"
click node_demo "https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/demo.py"
click node_metrics "https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/metrics.py"
click node_reports "https://github.com/sureshbujji/multi-agent-orchestrator/tree/main/reports"

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_orchestrator toneBlue
class node_planner,node_worker,node_critic toneAmber
class node_blackboard toneMint
class node_demo,node_metrics,node_reports,node_user toneRose
```

## Components

### Run coordination

- [Orchestrator](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/orchestrator.py): `src/orchestrator.py`

### Agent roles

- [Planner](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/roles.py): `src/roles.py`
- [Worker](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/roles.py): `src/roles.py`
- [Critic](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/roles.py): `src/roles.py`

### Shared run state

- [Blackboard](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/blackboard.py): `src/blackboard.py`

### Run results

- [Demo runner](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/demo.py): `src/demo.py`
- [Run metrics](https://github.com/sureshbujji/multi-agent-orchestrator/blob/main/src/metrics.py): `src/metrics.py`
- [Run reports](https://github.com/sureshbujji/multi-agent-orchestrator/tree/main/reports): `reports`

### Other components

- **Task requester**

## Connections

- Task requester → Demo runner: runs demo (evidence: `README.md`)
- Demo runner → Orchestrator: starts run (evidence: `src/demo.py`)
- Orchestrator → Blackboard: creates, reads, writes (evidence: `src/orchestrator.py`)
- Orchestrator → Planner: invokes planning (evidence: `src/orchestrator.py`)
- Orchestrator → Worker: invokes work (evidence: `src/orchestrator.py`)
- Orchestrator → Critic: invokes review (evidence: `src/orchestrator.py`)
- Planner → Blackboard: posts plan (evidence: `src/roles.py`)
- Worker → Blackboard: shares artifacts (evidence: `README.md`)
- Critic → Blackboard: shares reviews (evidence: `README.md`)
- Demo runner → Run metrics: computes metrics (evidence: `src/demo.py`)
- Demo runner → Run reports: writes transcript and summary (evidence: `src/demo.py`)
