# iamlukethedev/herald-os architecture

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

- Interactive diagram: https://gitdiagram.com/iamlukethedev/herald-os
- Repository: https://github.com/iamlukethedev/herald-os

## Overview

Herald OS is an agent-centered desktop operating system: people type or speak to Hermes, which can act across the host computer through permission-controlled system tools. The Electron main process starts and monitors the Hermes runtime and connects the desktop UI to native capabilities. Major product areas also include voice, scheduled automations, memory and missions, file management, software development, and a creative canvas. Edges are limited to README statements and shown source-index or excerpt references; several feature relationships are therefore left unconnected rather than inferred.

Main entry points: [`plugins/herald-os-bridge/bridge/tools.py`](https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/tools.py) (System tools), [`apps/desktop/src/shell/App.tsx`](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/shell/App.tsx) (Desktop UI), [`apps/desktop/electron/backend/manager.ts`](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/backend/manager.ts) (Backend manager), [`plugins/herald-os-bridge/bridge/host/base.py`](https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/host/base.py) (Host adapter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop shell"]
  node_desktop_ui["Desktop UI<br/>[App.tsx]"]
  node_app_catalog["App navigation<br/>[apps.ts]"]
  node_ui_state["UI state<br/>[windows.ts]"]
  node_electron["Electron main<br/>[main.ts]"]
  node_ipc_contract["IPC contract<br/>[ipc.ts]"]
end

subgraph group_agent["Agent runtime"]
  node_backend_manager["Backend manager<br/>[manager.ts]"]
  node_hermes["Hermes Agent"]
  node_voice["Voice conversation<br/>[chained-engine.ts]"]
end

subgraph group_host["Host capabilities"]
  node_os_tools["System tools<br/>[tools.py]"]
  node_permissions["Action permissions<br/>[permissions.py]"]
  node_files["File operations<br/>[fs.ts]"]
end

subgraph group_work["Workspaces"]
  node_canvas["Creative canvas<br/>[ipc.ts]"]
  node_canvas_format["Canvas format<br/>[comp-format.ts]"]
  node_canvas_models["Canvas models<br/>[models.ts]"]
  node_psd_import["PSD import<br/>[psd-map.ts]"]
  node_automation["Scheduled routines<br/>[automations.ts]"]
  node_missions_memory["Missions and memory<br/>[MissionsPage.tsx]"]
  node_studio["Software studio<br/>[StudioWindow.tsx]"]
end

subgraph group_platform["OS integration"]
  node_host_adapter["Host adapter<br/>[base.py]"]
  node_linux_adapter["Linux adapter<br/>[linux.py]"]
  node_mac_adapter["macOS adapter<br/>[darwin.py]"]
  node_bridge_plugin["OS bridge plugin<br/>[__init__.py]"]
end

node_person(("Person"))

node_person -->|"types or speaks"| node_desktop_ui
node_desktop_ui -->|"navigates apps"| node_app_catalog
node_electron -->|"starts runtime"| node_backend_manager
node_backend_manager -->|"launches and probes"| node_hermes
node_backend_manager -->|"ensures plugin"| node_bridge_plugin
node_bridge_plugin -->|"registers tools"| node_os_tools
node_os_tools -->|"authorizes actions"| node_permissions
node_os_tools -->|"executes host actions"| node_host_adapter
node_linux_adapter -->|"implements adapter"| node_host_adapter
node_mac_adapter -->|"implements adapter"| node_host_adapter
node_hermes -->|"acts on computer"| node_os_tools
node_desktop_ui -->|"offers voice interaction"| node_voice
node_electron -->|"uses IPC definitions"| node_ipc_contract
node_psd_import -->|"reads format"| node_canvas_format
node_canvas -->|"uses model IPC"| node_canvas_models
node_hermes -->|"runs scheduled routines"| node_automation
node_hermes -->|"uses memory and missions"| node_missions_memory
node_hermes -->|"finds and organizes files"| node_files
node_hermes -->|"builds software"| node_studio

click node_desktop_ui "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/shell/App.tsx"
click node_app_catalog "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/shell/apps.ts"
click node_ui_state "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/store/windows.ts"
click node_electron "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/main.ts"
click node_backend_manager "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/backend/manager.ts"
click node_voice "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/lib/voice/chained-engine.ts"
click node_os_tools "https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/tools.py"
click node_permissions "https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/permissions.py"
click node_host_adapter "https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/host/base.py"
click node_linux_adapter "https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/host/linux.py"
click node_mac_adapter "https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/host/darwin.py"
click node_files "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/ipc/fs.ts"
click node_canvas "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/canvas/ipc.ts"
click node_canvas_format "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/shared/canvas/comp-format.ts"
click node_canvas_models "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/shared/canvas/models.ts"
click node_psd_import "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/features/canvas/psd/psd-map.ts"
click node_automation "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/events/automations.ts"
click node_missions_memory "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/features/missions/MissionsPage.tsx"
click node_studio "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/features/studio/StudioWindow.tsx"
click node_ipc_contract "https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/shared/ipc.ts"
click node_bridge_plugin "https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/__init__.py"

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_desktop_ui,node_app_catalog,node_ui_state,node_electron,node_ipc_contract toneBlue
class node_backend_manager,node_hermes,node_voice toneAmber
class node_os_tools,node_permissions,node_files toneMint
class node_canvas,node_canvas_format,node_canvas_models,node_psd_import,node_automation,node_missions_memory,node_studio toneRose
class node_host_adapter,node_linux_adapter,node_mac_adapter,node_bridge_plugin,node_person toneIndigo
```

## Components

### Desktop shell

- [Desktop UI](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/shell/App.tsx): `apps/desktop/src/shell/App.tsx`
- [App navigation](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/shell/apps.ts): `apps/desktop/src/shell/apps.ts`
- [UI state](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/store/windows.ts): `apps/desktop/src/store/windows.ts`
- [Electron main](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/main.ts): `apps/desktop/electron/main.ts`
- [IPC contract](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/shared/ipc.ts): `apps/desktop/shared/ipc.ts`

### Agent runtime

- [Backend manager](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/backend/manager.ts): `apps/desktop/electron/backend/manager.ts`
- **Hermes Agent**
- [Voice conversation](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/lib/voice/chained-engine.ts): `apps/desktop/src/lib/voice/chained-engine.ts`

### Host capabilities

- [System tools](https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/tools.py): `plugins/herald-os-bridge/bridge/tools.py`
- [Action permissions](https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/permissions.py): `plugins/herald-os-bridge/bridge/permissions.py`
- [File operations](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/ipc/fs.ts): `apps/desktop/electron/ipc/fs.ts`

### Workspaces

- [Creative canvas](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/canvas/ipc.ts): `apps/desktop/electron/canvas/ipc.ts`
- [Canvas format](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/shared/canvas/comp-format.ts): `apps/desktop/shared/canvas/comp-format.ts`
- [Canvas models](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/shared/canvas/models.ts): `apps/desktop/shared/canvas/models.ts`
- [PSD import](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/features/canvas/psd/psd-map.ts): `apps/desktop/src/features/canvas/psd/psd-map.ts`
- [Scheduled routines](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/electron/events/automations.ts): `apps/desktop/electron/events/automations.ts`
- [Missions and memory](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/features/missions/MissionsPage.tsx): `apps/desktop/src/features/missions/MissionsPage.tsx`
- [Software studio](https://github.com/iamlukethedev/herald-os/blob/main/apps/desktop/src/features/studio/StudioWindow.tsx): `apps/desktop/src/features/studio/StudioWindow.tsx`

### OS integration

- [Host adapter](https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/host/base.py): `plugins/herald-os-bridge/bridge/host/base.py`
- [Linux adapter](https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/host/linux.py): `plugins/herald-os-bridge/bridge/host/linux.py`
- [macOS adapter](https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/bridge/host/darwin.py): `plugins/herald-os-bridge/bridge/host/darwin.py`
- [OS bridge plugin](https://github.com/iamlukethedev/herald-os/blob/main/plugins/herald-os-bridge/__init__.py): `plugins/herald-os-bridge/__init__.py`

### Other components

- **Person**

## Connections

- Person → Desktop UI: types or speaks
- Desktop UI → App navigation: navigates apps (evidence: `apps/desktop/src/shell/App.tsx`)
- Electron main → Backend manager: starts runtime (evidence: `apps/desktop/electron/main.ts`)
- Backend manager → Hermes Agent: launches and probes (evidence: `apps/desktop/electron/backend/manager.ts`)
- Backend manager → OS bridge plugin: ensures plugin (evidence: `apps/desktop/electron/backend/manager.ts`)
- OS bridge plugin → System tools: registers tools (evidence: `plugins/herald-os-bridge/__init__.py`)
- System tools → Action permissions: authorizes actions (evidence: `plugins/herald-os-bridge/bridge/tools.py`)
- System tools → Host adapter: executes host actions (evidence: `plugins/herald-os-bridge/bridge/tools.py`)
- Linux adapter → Host adapter: implements adapter (evidence: `plugins/herald-os-bridge/bridge/host/linux.py`)
- macOS adapter → Host adapter: implements adapter (evidence: `plugins/herald-os-bridge/bridge/host/darwin.py`)
- Hermes Agent → System tools: acts on computer
- Desktop UI → Voice conversation: offers voice interaction
- Electron main → IPC contract: uses IPC definitions (evidence: `apps/desktop/electron/main.ts`)
- PSD import → Canvas format: reads format (evidence: `apps/desktop/src/features/canvas/psd/psd-worker.ts`)
- Creative canvas → Canvas models: uses model IPC (evidence: `apps/desktop/electron/main.ts`)
- Hermes Agent → Scheduled routines: runs scheduled routines
- Hermes Agent → Missions and memory: uses memory and missions
- Hermes Agent → File operations: finds and organizes files
- Hermes Agent → Software studio: builds software
