# ekkolearnai/ekko-studio architecture

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

- Interactive diagram: https://gitdiagram.com/ekkolearnai/ekko-studio
- Repository: https://github.com/ekkolearnai/ekko-studio

## Overview

Ekko Studio is a local-first AI workspace delivered as a desktop app and self-hosted web console. The primary workflow is a user composing a chat request, Studio dispatching it to an agent runtime, and returning streamed output and session state. Separate branches cover visual workflows, coding-agent management, Hermes controls, and shared workspace tools. The README documents product-level connections; source excerpts confirm selected runtime and workflow calls. Several client and server subsystems are unsampled, so their internal links are shown only where documented.

Main entry points: [`packages/client/src/App.vue`](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/client/src/App.vue) (Studio client), [`packages/server/src/bootstrap/routes.ts`](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/bootstrap/routes.ts) (Studio server), [`packages/server/src/modules/studio/services/workflow/manager.ts`](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/studio/services/workflow/manager.ts) (Visual workflows), [`packages/server/src/modules/coding-agents/services/runtime/run-manager.ts`](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/coding-agents/services/runtime/run-manager.ts) (Coding agents)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Studio workspace"]
  node_client["Studio client<br/>[App.vue]"]
  node_session[("Chat sessions<br/>[session-store.ts]")]
  node_server["Studio server<br/>[routes.ts]"]
  node_usage["Run usage<br/>[run-state.ts]"]
end

subgraph group_runtime["Agent runtimes"]
  node_ekko["Ekko Agent<br/>[manager.ts]"]
  node_hermes["Hermes bridge<br/>[manager.ts]"]
  node_coding["Coding agents<br/>[run-manager.ts]"]
end

subgraph group_automation["Automation"]
  node_workflow["Visual workflows<br/>[manager.ts]"]
  node_mcp["MCP management<br/>[mcp-manager.ts]"]
end

subgraph group_controls["Agent control"]
  node_hermes_versions["Runtime versions<br/>[version-manager.ts]"]
  node_hermes_controls["Hermes controls"]
  node_agent_manager["Agent Manager UI"]
end

subgraph group_tools["Workspace tools"]
  node_files["Files and previews"]
  node_voice["Voice services"]
  node_devices["Devices and apps"]
  node_desktop_browser["Desktop Agent Browser<br/>[browser-manager.ts]"]
end

node_user(("User"))

node_user -->|"composes request"| node_client
node_client -->|"sends chat run"| node_server
node_server -->|"persists sessions"| node_session
node_server -.->|"dispatches runs"| node_ekko
node_server -.->|"dispatches runs"| node_hermes
node_server -.->|"dispatches runs"| node_coding
node_coding -->|"updates usage"| node_usage
node_client -->|"configures workflows"| node_workflow
node_workflow -.->|"runs agent steps"| node_ekko
node_workflow -->|"runs agent steps"| node_hermes
node_client -->|"manages MCP"| node_mcp
node_client -->|"configures agent"| node_hermes_controls
node_agent_manager -->|"manages versions"| node_hermes_versions
node_client -->|"browses files"| node_files
node_client -->|"uses voice"| node_voice
node_client -->|"connects devices"| node_devices
node_client -->|"uses browser"| node_desktop_browser

click node_client "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/client/src/App.vue"
click node_session "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/studio/repositories/session-store.ts"
click node_server "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/bootstrap/routes.ts"
click node_ekko "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/ekko-agent/src/agent/manager.ts"
click node_hermes "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/hermes/services/bridge/manager.ts"
click node_coding "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/coding-agents/services/runtime/run-manager.ts"
click node_workflow "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/studio/services/workflow/manager.ts"
click node_mcp "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/coding-agents/services/mcp-manager.ts"
click node_hermes_versions "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/hermes/services/runtime/version-manager.ts"
click node_hermes_controls "https://github.com/ekkolearnai/ekko-studio/tree/main/packages/client/src/api/hermes"
click node_agent_manager "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/client/src/views/hermes/AgentManagerView.vue"
click node_files "https://github.com/ekkolearnai/ekko-studio/tree/main/packages/client/src/components/hermes/files"
click node_voice "https://github.com/ekkolearnai/ekko-studio/tree/main/packages/server/src/modules/studio/services/voice"
click node_devices "https://github.com/ekkolearnai/ekko-studio/tree/main/packages/server/src/modules/studio/services"
click node_desktop_browser "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/desktop/src/main/browser/browser-manager.ts"
click node_usage "https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/studio/public/run-state.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_session,node_server,node_usage,node_user toneBlue
class node_ekko,node_hermes,node_coding toneAmber
class node_workflow,node_mcp toneMint
class node_hermes_versions,node_hermes_controls,node_agent_manager toneRose
class node_files,node_voice,node_devices,node_desktop_browser toneIndigo
```

## Components

### Studio workspace

- [Studio client](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/client/src/App.vue): `packages/client/src/App.vue`
- [Chat sessions](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/studio/repositories/session-store.ts): `packages/server/src/modules/studio/repositories/session-store.ts`
- [Studio server](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/bootstrap/routes.ts): `packages/server/src/bootstrap/routes.ts`
- [Run usage](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/studio/public/run-state.ts): `packages/server/src/modules/studio/public/run-state.ts`

### Agent runtimes

- [Ekko Agent](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/ekko-agent/src/agent/manager.ts): `packages/ekko-agent/src/agent/manager.ts`
- [Hermes bridge](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/hermes/services/bridge/manager.ts): `packages/server/src/modules/hermes/services/bridge/manager.ts`
- [Coding agents](https://github.com/ekkolearnai/ekko-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`

### Automation

- [Visual workflows](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/studio/services/workflow/manager.ts): `packages/server/src/modules/studio/services/workflow/manager.ts`
- [MCP management](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/coding-agents/services/mcp-manager.ts): `packages/server/src/modules/coding-agents/services/mcp-manager.ts`

### Agent control

- [Runtime versions](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/server/src/modules/hermes/services/runtime/version-manager.ts): `packages/server/src/modules/hermes/services/runtime/version-manager.ts`
- [Hermes controls](https://github.com/ekkolearnai/ekko-studio/tree/main/packages/client/src/api/hermes): `packages/client/src/api/hermes`
- [Agent Manager UI](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/client/src/views/hermes/AgentManagerView.vue): `packages/client/src/views/hermes/AgentManagerView.vue`

### Workspace tools

- [Files and previews](https://github.com/ekkolearnai/ekko-studio/tree/main/packages/client/src/components/hermes/files): `packages/client/src/components/hermes/files`
- [Voice services](https://github.com/ekkolearnai/ekko-studio/tree/main/packages/server/src/modules/studio/services/voice): `packages/server/src/modules/studio/services/voice`
- [Devices and apps](https://github.com/ekkolearnai/ekko-studio/tree/main/packages/server/src/modules/studio/services): `packages/server/src/modules/studio/services`
- [Desktop Agent Browser](https://github.com/ekkolearnai/ekko-studio/blob/main/packages/desktop/src/main/browser/browser-manager.ts): `packages/desktop/src/main/browser/browser-manager.ts`

### Other components

- **User**

## Connections

- User → Studio client: composes request
- Studio client → Studio server: sends chat run
- Studio server → Chat sessions: persists sessions
- Studio server → Ekko Agent: dispatches runs
- Studio server → Hermes bridge: dispatches runs
- Studio server → Coding agents: dispatches runs
- Coding agents → Run usage: updates usage (evidence: `packages/server/src/modules/coding-agents/services/runtime/run-manager.ts`)
- Studio client → Visual workflows: configures workflows
- Visual workflows → Ekko Agent: runs agent steps
- Visual workflows → Hermes bridge: runs agent steps (evidence: `packages/server/src/modules/studio/services/workflow/manager.ts`)
- Studio client → MCP management: manages MCP
- Studio client → Hermes controls: configures agent
- Agent Manager UI → Runtime versions: manages versions
- Studio client → Files and previews: browses files
- Studio client → Voice services: uses voice
- Studio client → Devices and apps: connects devices
- Studio client → Desktop Agent Browser: uses browser
