# monikalnbo/hermes-studio architecture

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

- Interactive diagram: https://gitdiagram.com/monikalnbo/hermes-studio
- Repository: https://github.com/monikalnbo/hermes-studio

## Overview

Ekko Studio is a local-first AI workspace offered as a desktop app and self-hosted web console. The main user journey is to choose an agent and session, submit a chat or workflow run, and receive streaming results with tool traces and generated files. The graph also preserves documented workspace branches—group chat, files, voice, devices, and agent control planes—and key runtime internals. Edges use README-level capability statements or shown route, call, and import references; unsampled wiring is omitted rather than inferred.

Main entry points: [`packages/server/src/bootstrap/routes.ts`](https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/bootstrap/routes.ts) (HTTP Server), [`packages/client/src`](https://github.com/monikalnbo/hermes-studio/tree/main/packages/client/src) (Workspace UI), [`packages/ekko-agent/src/agent/manager.ts`](https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/agent/manager.ts) (Ekko Agent), [`packages/ekko-agent/src/model/manager.ts`](https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/model/manager.ts) (Ekko Models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Shared Workspace"]
  node_client["Workspace UI"]
  node_chat["Chat Sessions<br/>[ChatView.vue]"]
  node_groupchat["Group Chat<br/>[GroupChatView.vue]"]
  node_files["Workspace Files<br/>[FilesView.vue]"]
  node_voice["Voice Services"]
  node_devices["Devices<br/>[routes.ts]"]
  node_server["HTTP Server<br/>[routes.ts]"]
  node_sessions[("Session Store<br/>[session-store.ts]")]
end

subgraph group_agents["Agent Runtimes"]
  node_hermes["Hermes Runtime<br/>[manager.ts]"]
  node_coding["Coding Runners<br/>[run-manager.ts]"]
  node_ekko["Ekko Agent<br/>[manager.ts]"]
  node_ekkomodel["Ekko Models<br/>[manager.ts]"]
  node_ekkoconfig[("Ekko Config<br/>[config-store.ts]")]
  node_ekkotools["Ekko Tools<br/>[manager.ts]"]
  node_ekkoskills["Ekko Skills<br/>[manager.ts]"]
end

subgraph group_automation["Automation"]
  node_workflowui["Workflow Canvas<br/>[WorkflowView.vue]"]
  node_workflow["Workflow Engine<br/>[manager.ts]"]
  node_workflowstore[("Workflow Run Store")]
end

subgraph group_control["Agent Control"]
end

subgraph group_desktop["Desktop Runtime"]
  node_browser["Agent Browser<br/>[browser-manager.ts]"]
  node_browserurl["Browser URL Rules<br/>[browser-url.ts]"]
  node_browsertype["Browser Types<br/>[browser-types.ts]"]
  node_desktopruntime["Desktop Runtime<br/>[runtime-manager.ts]"]
  node_desktopi18n["Desktop Localization<br/>[desktop-i18n.ts]"]
end

node_user(("User"))
node_externalmodels{{"Model Providers"}}

node_user -->|"uses"| node_client
node_client -->|"calls APIs"| node_server
node_client -->|"opens chat"| node_chat
node_chat -->|"submits runs"| node_server
node_server -->|"dispatches runs"| node_hermes
node_server -->|"dispatches runs"| node_coding
node_server -->|"dispatches runs"| node_ekko
node_server -->|"stores sessions"| node_sessions
node_server -->|"serves APIs"| node_groupchat
node_server -->|"serves APIs"| node_files
node_server -->|"routes voice"| node_voice
node_server -->|"routes devices"| node_devices
node_user -->|"authors workflow"| node_workflowui
node_workflowui -->|"calls APIs"| node_server
node_workflow -->|"runs nodes"| node_hermes
node_workflow -->|"persists runs"| node_workflowstore
node_ekkoskills -->|"uses tools"| node_ekkotools
node_ekko -.->|"uses models"| node_ekkomodel
node_ekko -.->|"uses tools"| node_ekkotools
node_ekkomodel -->|"reads settings"| node_ekkoconfig
node_ekkomodel -.->|"creates clients"| node_externalmodels
node_browser -->|"uses rules"| node_browserurl
node_browser -->|"uses types"| node_browsertype
node_desktopruntime -->|"imports"| node_desktopi18n
node_user -.->|"browses"| node_browser

click node_client "https://github.com/monikalnbo/hermes-studio/tree/main/packages/client/src"
click node_chat "https://github.com/monikalnbo/hermes-studio/blob/main/packages/client/src/views/hermes/ChatView.vue"
click node_groupchat "https://github.com/monikalnbo/hermes-studio/blob/main/packages/client/src/views/hermes/GroupChatView.vue"
click node_files "https://github.com/monikalnbo/hermes-studio/blob/main/packages/client/src/views/hermes/FilesView.vue"
click node_voice "https://github.com/monikalnbo/hermes-studio/tree/main/packages/server/src/modules/studio"
click node_devices "https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/bootstrap/routes.ts"
click node_workflowui "https://github.com/monikalnbo/hermes-studio/blob/main/packages/client/src/views/hermes/WorkflowView.vue"
click node_workflow "https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/studio/services/workflow/manager.ts"
click node_workflowstore "https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/studio/repositories/workflow-run-store.ts"
click node_server "https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/bootstrap/routes.ts"
click node_sessions "https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/studio/repositories/session-store.ts"
click node_hermes "https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/hermes/services/bridge/manager.ts"
click node_coding "https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/coding-agents/services/runtime/run-manager.ts"
click node_ekko "https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/agent/manager.ts"
click node_ekkomodel "https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/model/manager.ts"
click node_ekkoconfig "https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/config-store.ts"
click node_ekkotools "https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/tools/manager.ts"
click node_ekkoskills "https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/skills/manager.ts"
click node_browser "https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/browser/browser-manager.ts"
click node_browserurl "https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/browser/browser-url.ts"
click node_browsertype "https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/browser/browser-types.ts"
click node_desktopruntime "https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/runtime-manager.ts"
click node_desktopi18n "https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/desktop-i18n.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_client,node_chat,node_groupchat,node_files,node_voice,node_devices,node_server,node_sessions,node_user toneBlue
class node_hermes,node_coding,node_ekko,node_ekkomodel,node_ekkoconfig,node_ekkotools,node_ekkoskills toneAmber
class node_workflowui,node_workflow,node_workflowstore toneMint
class node_browser,node_browserurl,node_browsertype,node_desktopruntime,node_desktopi18n,node_externalmodels toneIndigo
```

## Components

### Shared Workspace

- [Workspace UI](https://github.com/monikalnbo/hermes-studio/tree/main/packages/client/src): `packages/client/src`
- [Chat Sessions](https://github.com/monikalnbo/hermes-studio/blob/main/packages/client/src/views/hermes/ChatView.vue): `packages/client/src/views/hermes/ChatView.vue`
- [Group Chat](https://github.com/monikalnbo/hermes-studio/blob/main/packages/client/src/views/hermes/GroupChatView.vue): `packages/client/src/views/hermes/GroupChatView.vue`
- [Workspace Files](https://github.com/monikalnbo/hermes-studio/blob/main/packages/client/src/views/hermes/FilesView.vue): `packages/client/src/views/hermes/FilesView.vue`
- [Voice Services](https://github.com/monikalnbo/hermes-studio/tree/main/packages/server/src/modules/studio): `packages/server/src/modules/studio`
- [Devices](https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/bootstrap/routes.ts): `packages/server/src/bootstrap/routes.ts`
- [HTTP Server](https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/bootstrap/routes.ts): `packages/server/src/bootstrap/routes.ts`
- [Session Store](https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/studio/repositories/session-store.ts): `packages/server/src/modules/studio/repositories/session-store.ts`

### Agent Runtimes

- [Hermes Runtime](https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/hermes/services/bridge/manager.ts): `packages/server/src/modules/hermes/services/bridge/manager.ts`
- [Coding Runners](https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/coding-agents/services/runtime/run-manager.ts): `packages/server/src/modules/coding-agents/services/runtime/run-manager.ts`
- [Ekko Agent](https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/agent/manager.ts): `packages/ekko-agent/src/agent/manager.ts`
- [Ekko Models](https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/model/manager.ts): `packages/ekko-agent/src/model/manager.ts`
- [Ekko Config](https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/config-store.ts): `packages/ekko-agent/src/config-store.ts`
- [Ekko Tools](https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/tools/manager.ts): `packages/ekko-agent/src/tools/manager.ts`
- [Ekko Skills](https://github.com/monikalnbo/hermes-studio/blob/main/packages/ekko-agent/src/skills/manager.ts): `packages/ekko-agent/src/skills/manager.ts`

### Automation

- [Workflow Canvas](https://github.com/monikalnbo/hermes-studio/blob/main/packages/client/src/views/hermes/WorkflowView.vue): `packages/client/src/views/hermes/WorkflowView.vue`
- [Workflow Engine](https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/studio/services/workflow/manager.ts): `packages/server/src/modules/studio/services/workflow/manager.ts`
- [Workflow Run Store](https://github.com/monikalnbo/hermes-studio/blob/main/packages/server/src/modules/studio/repositories/workflow-run-store.ts): `packages/server/src/modules/studio/repositories/workflow-run-store.ts`

### Desktop Runtime

- [Agent Browser](https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/browser/browser-manager.ts): `packages/desktop/src/main/browser/browser-manager.ts`
- [Browser URL Rules](https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/browser/browser-url.ts): `packages/desktop/src/main/browser/browser-url.ts`
- [Browser Types](https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/browser/browser-types.ts): `packages/desktop/src/main/browser/browser-types.ts`
- [Desktop Runtime](https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/runtime-manager.ts): `packages/desktop/src/main/runtime-manager.ts`
- [Desktop Localization](https://github.com/monikalnbo/hermes-studio/blob/main/packages/desktop/src/main/desktop-i18n.ts): `packages/desktop/src/main/desktop-i18n.ts`

### Other components

- **User**
- **Model Providers**

## Connections

- User → Workspace UI: uses (evidence: `README.md`)
- Workspace UI → HTTP Server: calls APIs (evidence: `README.md`)
- Workspace UI → Chat Sessions: opens chat (evidence: `README.md`)
- Chat Sessions → HTTP Server: submits runs (evidence: `README.md`)
- HTTP Server → Hermes Runtime: dispatches runs (evidence: `README.md`)
- HTTP Server → Coding Runners: dispatches runs (evidence: `README.md`)
- HTTP Server → Ekko Agent: dispatches runs (evidence: `README.md`)
- HTTP Server → Session Store: stores sessions (evidence: `README.md`)
- HTTP Server → Group Chat: serves APIs (evidence: `README.md`)
- HTTP Server → Workspace Files: serves APIs (evidence: `README.md`)
- HTTP Server → Voice Services: routes voice (evidence: `packages/server/src/bootstrap/routes.ts`)
- HTTP Server → Devices: routes devices (evidence: `packages/server/src/bootstrap/routes.ts`)
- User → Workflow Canvas: authors workflow (evidence: `README.md`)
- Workflow Canvas → HTTP Server: calls APIs (evidence: `README.md`)
- Workflow Engine → Hermes Runtime: runs nodes (evidence: `packages/server/src/modules/studio/services/workflow/manager.ts`)
- Workflow Engine → Workflow Run Store: persists runs (evidence: `packages/server/src/modules/studio/services/workflow/manager.ts`)
- Ekko Skills → Ekko Tools: uses tools (evidence: `packages/ekko-agent/src/skills/manager.ts`)
- Ekko Agent → Ekko Models: uses models
- Ekko Agent → Ekko Tools: uses tools
- Ekko Models → Ekko Config: reads settings (evidence: `packages/ekko-agent/src/model/manager.ts`)
- Ekko Models → Model Providers: creates clients
- Agent Browser → Browser URL Rules: uses rules (evidence: `packages/desktop/src/main/browser/browser-manager.ts`)
- Agent Browser → Browser Types: uses types (evidence: `packages/desktop/src/main/browser/browser-manager.ts`)
- Desktop Runtime → Desktop Localization: imports (evidence: `packages/desktop/src/main/runtime-manager.ts`)
- User → Agent Browser: browses
