# myrtlepn/gran-maestro architecture

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

- Interactive diagram: https://gitdiagram.com/myrtlepn/gran-maestro
- Repository: https://github.com/myrtlepn/gran-maestro

## Overview

Gran Maestro is a plan-centered AI orchestration platform: people refine requests into plans, turn plans into implementation specs, approve execution, review against acceptance criteria, and accept completed work. The dashboard exposes that work alongside ideation, discussion, agile planning, design, browser captures, workflow tracking, and project settings. The graph combines documented product stages with the dashboard’s visible routing and server entry points. Some domain route implementations and frontend views were not sampled, so their detailed interactions are not inferred.

Main entry points: [`frontend/src/routes.tsx`](https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/routes.tsx) (Dashboard routes), [`plugins/mst/src/server.ts`](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/server.ts) (HTTP dashboard server), [`plugins/mst/src/routes/plans.ts`](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/plans.ts) (Q&A planning), [`plugins/mst/src/routes/dispatch.ts`](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/dispatch.ts) (Execution dispatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Dashboard experience"]
  node_app["Dashboard shell<br/>[App.tsx]"]
  node_routes["Dashboard routes<br/>[routes.tsx]"]
  node_plansview["Plans view<br/>[PlansView.tsx]"]
  node_workflowview["Workflow view<br/>[WorkflowView.tsx]"]
  node_agileview["Agile workspace<br/>[AgileView.tsx]"]
  node_designview["Design workspace<br/>[DesignView.tsx]"]
  node_ideationview["Ideation workspace<br/>[IdeationView.tsx]"]
  node_picksview["Browser picks<br/>[PicksView.tsx]"]
end

subgraph group_planning["Planning and discovery"]
  node_planning["Q&amp;A planning<br/>[plans.ts]"]
  node_ideation["Ideation and debate<br/>[ideation.ts]"]
  node_discussion["Team discussion<br/>[discussion.ts]"]
  node_agile["Agile planning<br/>[agile.ts]"]
  node_design["Plan review and design<br/>[designs.ts]"]
  node_captures["UI captures<br/>[captures.ts]"]
end

subgraph group_delivery["Implementation lifecycle"]
  node_requests["Implementation specs<br/>[requests.ts]"]
  node_dispatch["Execution dispatch<br/>[dispatch.ts]"]
  node_worktrees["Task worktrees"]
end

subgraph group_runtime["Dashboard runtime"]
  node_server["HTTP dashboard server<br/>[server.ts]"]
  node_config["Project configuration<br/>[config.ts]"]
  node_events["Live event stream<br/>[sse.ts]"]
end

node_person(("User"))
node_ai(("AI team"))

node_person -->|"uses dashboard"| node_app
node_app -->|"renders routes"| node_routes
node_routes -->|"routes to"| node_plansview
node_routes -->|"routes to"| node_workflowview
node_routes -->|"routes to"| node_agileview
node_routes -->|"routes to"| node_designview
node_routes -->|"routes to"| node_ideationview
node_routes -->|"routes to"| node_picksview
node_person -->|"refines request"| node_planning
node_planning -->|"asks questions"| node_ai
node_person -->|"starts brainstorming"| node_ideation
node_ideation -->|"collects perspectives"| node_ai
node_person -->|"starts team debate"| node_discussion
node_person -->|"requests review"| node_design
node_person -->|"captures UI"| node_captures
node_planning -->|"creates specification"| node_requests
node_requests -->|"approved for execution"| node_dispatch
node_dispatch -->|"delegates implementation"| node_ai
node_dispatch -.->|"manages task worktrees"| node_worktrees
node_person -->|"tracks delivery"| node_workflowview
node_person -->|"opens dashboard"| node_server
node_server -->|"loads configuration"| node_config
node_server -->|"initializes stream"| node_events
node_server -->|"registers route"| node_agile
node_server -->|"registers route"| node_design
node_server -->|"registers route"| node_requests

click node_app "https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/App.tsx"
click node_routes "https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/routes.tsx"
click node_plansview "https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/PlansView.tsx"
click node_workflowview "https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/WorkflowView.tsx"
click node_agileview "https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/AgileView.tsx"
click node_designview "https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/DesignView.tsx"
click node_ideationview "https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/IdeationView.tsx"
click node_picksview "https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/PicksView.tsx"
click node_planning "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/plans.ts"
click node_ideation "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/ideation.ts"
click node_discussion "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/discussion.ts"
click node_agile "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/agile.ts"
click node_design "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/designs.ts"
click node_captures "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/captures.ts"
click node_requests "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/requests.ts"
click node_dispatch "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/dispatch.ts"
click node_worktrees "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/core/worktree-manager.ts"
click node_server "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/server.ts"
click node_config "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/config.ts"
click node_events "https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/sse.ts"

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_app,node_routes,node_plansview,node_workflowview,node_agileview,node_designview,node_ideationview,node_picksview,node_person toneBlue
class node_planning,node_ideation,node_discussion,node_agile,node_design,node_captures toneAmber
class node_requests,node_dispatch,node_worktrees toneMint
class node_server,node_config,node_events toneRose
class node_ai toneIndigo
```

## Components

### Dashboard experience

- [Dashboard shell](https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Dashboard routes](https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/routes.tsx): `frontend/src/routes.tsx`
- [Plans view](https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/PlansView.tsx): `frontend/src/views/PlansView.tsx`
- [Workflow view](https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/WorkflowView.tsx): `frontend/src/views/WorkflowView.tsx`
- [Agile workspace](https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/AgileView.tsx): `frontend/src/views/AgileView.tsx`
- [Design workspace](https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/DesignView.tsx): `frontend/src/views/DesignView.tsx`
- [Ideation workspace](https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/IdeationView.tsx): `frontend/src/views/IdeationView.tsx`
- [Browser picks](https://github.com/myrtlepn/gran-maestro/blob/master/frontend/src/views/PicksView.tsx): `frontend/src/views/PicksView.tsx`

### Planning and discovery

- [Q&A planning](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/plans.ts): `plugins/mst/src/routes/plans.ts`
- [Ideation and debate](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/ideation.ts): `plugins/mst/src/routes/ideation.ts`
- [Team discussion](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/discussion.ts): `plugins/mst/src/routes/discussion.ts`
- [Agile planning](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/agile.ts): `plugins/mst/src/routes/agile.ts`
- [Plan review and design](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/designs.ts): `plugins/mst/src/routes/designs.ts`
- [UI captures](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/captures.ts): `plugins/mst/src/routes/captures.ts`

### Implementation lifecycle

- [Implementation specs](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/requests.ts): `plugins/mst/src/routes/requests.ts`
- [Execution dispatch](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/routes/dispatch.ts): `plugins/mst/src/routes/dispatch.ts`
- [Task worktrees](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/core/worktree-manager.ts): `plugins/mst/src/core/worktree-manager.ts`

### Dashboard runtime

- [HTTP dashboard server](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/server.ts): `plugins/mst/src/server.ts`
- [Project configuration](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/config.ts): `plugins/mst/src/config.ts`
- [Live event stream](https://github.com/myrtlepn/gran-maestro/blob/master/plugins/mst/src/sse.ts): `plugins/mst/src/sse.ts`

### Other components

- **User**
- **AI team**

## Connections

- User → Dashboard shell: uses dashboard (evidence: `README.md`)
- Dashboard shell → Dashboard routes: renders routes (evidence: `frontend/src/App.tsx`)
- Dashboard routes → Plans view: routes to (evidence: `frontend/src/routes.tsx`)
- Dashboard routes → Workflow view: routes to (evidence: `frontend/src/routes.tsx`)
- Dashboard routes → Agile workspace: routes to (evidence: `frontend/src/routes.tsx`)
- Dashboard routes → Design workspace: routes to (evidence: `frontend/src/routes.tsx`)
- Dashboard routes → Ideation workspace: routes to (evidence: `frontend/src/routes.tsx`)
- Dashboard routes → Browser picks: routes to (evidence: `frontend/src/routes.tsx`)
- User → Q&A planning: refines request (evidence: `README.md`)
- Q&A planning → AI team: asks questions (evidence: `README.md`)
- User → Ideation and debate: starts brainstorming (evidence: `README.md`)
- Ideation and debate → AI team: collects perspectives (evidence: `README.md`)
- User → Team discussion: starts team debate (evidence: `README.md`)
- User → Plan review and design: requests review (evidence: `README.md`)
- User → UI captures: captures UI (evidence: `README.md`)
- Q&A planning → Implementation specs: creates specification (evidence: `README.md`)
- Implementation specs → Execution dispatch: approved for execution (evidence: `README.md`)
- Execution dispatch → AI team: delegates implementation (evidence: `README.md`)
- Execution dispatch → Task worktrees: manages task worktrees
- User → Workflow view: tracks delivery (evidence: `README.md`)
- User → HTTP dashboard server: opens dashboard (evidence: `README.md`)
- HTTP dashboard server → Project configuration: loads configuration (evidence: `plugins/mst/src/server.ts`)
- HTTP dashboard server → Live event stream: initializes stream (evidence: `plugins/mst/src/server.ts`)
- HTTP dashboard server → Agile planning: registers route (evidence: `plugins/mst/src/server.ts`)
- HTTP dashboard server → Plan review and design: registers route (evidence: `plugins/mst/src/server.ts`)
- HTTP dashboard server → Implementation specs: registers route (evidence: `plugins/mst/src/server.ts`)
