# vigneshssuvarna/hermes architecture

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

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

## Overview

Hermes is a desktop voice-and-text assistant for natural-language queries, autonomous planning, and computer control. Its principal workflow captures a command, routes it through the application entry point, interprets it with the brain or agent/orchestrator, and returns spoken or dashboard feedback; execution can involve desktop automation, web access, or system actions. The brain also has planning and memory/context subsystems. The README provides no capability detail, and many modules were not sampled, so links beyond indexed references are omitted rather than inferred.

Main entry points: [`main.py`](https://github.com/vigneshssuvarna/hermes/blob/main/main.py) (Command Runtime), [`modules/brain.py`](https://github.com/vigneshssuvarna/hermes/blob/main/modules/brain.py) (Language Brain), [`ui/dashboard.py`](https://github.com/vigneshssuvarna/hermes/blob/main/ui/dashboard.py) (HUD Dashboard), [`modules/agent.py`](https://github.com/vigneshssuvarna/hermes/blob/main/modules/agent.py) (Autonomous Agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User Interface"]
  node_dashboard["HUD Dashboard<br/>[dashboard.py]"]
  node_hudwidgets["HUD Widgets<br/>[hud_widgets.py]"]
  node_ears["Speech Input<br/>[ears.py]"]
  node_voice["Speech Output<br/>[voice.py]"]
end

subgraph group_intelligence["Reasoning and Memory"]
  node_brain["Language Brain<br/>[brain.py]"]
  node_agent["Autonomous Agent<br/>[agent.py]"]
  node_orchestrator["Goal Orchestrator<br/>[orchestrator.py]"]
  node_planner["Task Planner<br/>[planner.py]"]
  node_memory["Conversation Memory<br/>[memory.py]"]
  node_longmemory["Long-Term Memory"]
  node_context["Context Monitor<br/>[context_monitor.py]"]
  node_vectorstore[("Chroma Store")]
end

subgraph group_execution["Automation and Integrations"]
  node_tools["Code Execution<br/>[tools.py]"]
  node_automation["Desktop Automation<br/>[automation.py]"]
  node_eyes["Vision Input<br/>[eyes.py]"]
  node_internet["Internet Access<br/>[internet.py]"]
  node_connectors["Connector Base<br/>[base_connector.py]"]
  node_webconnector["Web Connector<br/>[web_connector.py]"]
  node_systemconnector["System Connector"]
  node_guiconnector["GUI Connector<br/>[gui_connector.py]"]
  node_officeconnector["Office Connector"]
end

subgraph group_services["Runtime Services"]
  node_main["Command Runtime<br/>[main.py]"]
  node_calendar["Calendar Sync<br/>[calendar_sync.py]"]
  node_safety["Safety Core<br/>[safety_core.py]"]
  node_daemon["Background Daemon<br/>[daemon.py]"]
end

node_user(("User"))

node_user -->|"types command"| node_dashboard
node_dashboard -.->|"submits command"| node_main
node_user -.->|"speaks command"| node_ears
node_main -->|"starts capture"| node_ears
node_main -->|"routes request"| node_brain
node_main -->|"dispatches task"| node_agent
node_main -->|"runs goal"| node_orchestrator
node_main -->|"executes action"| node_automation
node_main -->|"routes image"| node_eyes
node_main -->|"fetches information"| node_internet
node_main -->|"speaks reply"| node_voice
node_main -->|"logs status"| node_dashboard
node_dashboard -->|"renders widgets"| node_hudwidgets
node_brain -->|"plans complex goals"| node_planner
node_brain -->|"uses memory"| node_memory
node_brain -->|"reads context"| node_context
node_brain -->|"uses long-term memory"| node_longmemory
node_planner -->|"executes generated code"| node_tools
node_webconnector -->|"inherits interface"| node_connectors
node_systemconnector -->|"inherits interface"| node_connectors
node_agent -.->|"may dispatch actions"| node_automation
node_longmemory -.->|"may persist memory"| node_vectorstore

click node_main "https://github.com/vigneshssuvarna/hermes/blob/main/main.py"
click node_dashboard "https://github.com/vigneshssuvarna/hermes/blob/main/ui/dashboard.py"
click node_hudwidgets "https://github.com/vigneshssuvarna/hermes/blob/main/ui/hud_widgets.py"
click node_ears "https://github.com/vigneshssuvarna/hermes/blob/main/modules/ears.py"
click node_voice "https://github.com/vigneshssuvarna/hermes/blob/main/modules/voice.py"
click node_brain "https://github.com/vigneshssuvarna/hermes/blob/main/modules/brain.py"
click node_agent "https://github.com/vigneshssuvarna/hermes/blob/main/modules/agent.py"
click node_orchestrator "https://github.com/vigneshssuvarna/hermes/blob/main/core/orchestrator.py"
click node_planner "https://github.com/vigneshssuvarna/hermes/blob/main/modules/planner.py"
click node_tools "https://github.com/vigneshssuvarna/hermes/blob/main/modules/tools.py"
click node_memory "https://github.com/vigneshssuvarna/hermes/blob/main/modules/memory.py"
click node_longmemory "https://github.com/vigneshssuvarna/hermes/blob/main/modules/long_term_memory.py"
click node_context "https://github.com/vigneshssuvarna/hermes/blob/main/modules/context_monitor.py"
click node_automation "https://github.com/vigneshssuvarna/hermes/blob/main/modules/automation.py"
click node_eyes "https://github.com/vigneshssuvarna/hermes/blob/main/modules/eyes.py"
click node_internet "https://github.com/vigneshssuvarna/hermes/blob/main/modules/internet.py"
click node_connectors "https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/base_connector.py"
click node_webconnector "https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/web_connector.py"
click node_systemconnector "https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/system_connector.py"
click node_guiconnector "https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/gui_connector.py"
click node_officeconnector "https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/office_connector.py"
click node_calendar "https://github.com/vigneshssuvarna/hermes/blob/main/modules/calendar_sync.py"
click node_safety "https://github.com/vigneshssuvarna/hermes/blob/main/modules/safety_core.py"
click node_daemon "https://github.com/vigneshssuvarna/hermes/blob/main/modules/daemon.py"
click node_vectorstore "https://github.com/vigneshssuvarna/hermes/tree/main/data/chroma_db"

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_dashboard,node_hudwidgets,node_ears,node_voice,node_user toneBlue
class node_brain,node_agent,node_orchestrator,node_planner,node_memory,node_longmemory,node_context,node_vectorstore toneAmber
class node_tools,node_automation,node_eyes,node_internet,node_connectors,node_webconnector,node_systemconnector,node_guiconnector,node_officeconnector toneMint
class node_main,node_calendar,node_safety,node_daemon toneRose
```

## Components

### User Interface

- [HUD Dashboard](https://github.com/vigneshssuvarna/hermes/blob/main/ui/dashboard.py): `ui/dashboard.py`
- [HUD Widgets](https://github.com/vigneshssuvarna/hermes/blob/main/ui/hud_widgets.py): `ui/hud_widgets.py`
- [Speech Input](https://github.com/vigneshssuvarna/hermes/blob/main/modules/ears.py): `modules/ears.py`
- [Speech Output](https://github.com/vigneshssuvarna/hermes/blob/main/modules/voice.py): `modules/voice.py`

### Reasoning and Memory

- [Language Brain](https://github.com/vigneshssuvarna/hermes/blob/main/modules/brain.py): `modules/brain.py`
- [Autonomous Agent](https://github.com/vigneshssuvarna/hermes/blob/main/modules/agent.py): `modules/agent.py`
- [Goal Orchestrator](https://github.com/vigneshssuvarna/hermes/blob/main/core/orchestrator.py): `core/orchestrator.py`
- [Task Planner](https://github.com/vigneshssuvarna/hermes/blob/main/modules/planner.py): `modules/planner.py`
- [Conversation Memory](https://github.com/vigneshssuvarna/hermes/blob/main/modules/memory.py): `modules/memory.py`
- [Long-Term Memory](https://github.com/vigneshssuvarna/hermes/blob/main/modules/long_term_memory.py): `modules/long_term_memory.py`
- [Context Monitor](https://github.com/vigneshssuvarna/hermes/blob/main/modules/context_monitor.py): `modules/context_monitor.py`
- [Chroma Store](https://github.com/vigneshssuvarna/hermes/tree/main/data/chroma_db): `data/chroma_db`

### Automation and Integrations

- [Code Execution](https://github.com/vigneshssuvarna/hermes/blob/main/modules/tools.py): `modules/tools.py`
- [Desktop Automation](https://github.com/vigneshssuvarna/hermes/blob/main/modules/automation.py): `modules/automation.py`
- [Vision Input](https://github.com/vigneshssuvarna/hermes/blob/main/modules/eyes.py): `modules/eyes.py`
- [Internet Access](https://github.com/vigneshssuvarna/hermes/blob/main/modules/internet.py): `modules/internet.py`
- [Connector Base](https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/base_connector.py): `modules/connectors/base_connector.py`
- [Web Connector](https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/web_connector.py): `modules/connectors/web_connector.py`
- [System Connector](https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/system_connector.py): `modules/connectors/system_connector.py`
- [GUI Connector](https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/gui_connector.py): `modules/connectors/gui_connector.py`
- [Office Connector](https://github.com/vigneshssuvarna/hermes/blob/main/modules/connectors/office_connector.py): `modules/connectors/office_connector.py`

### Runtime Services

- [Command Runtime](https://github.com/vigneshssuvarna/hermes/blob/main/main.py): `main.py`
- [Calendar Sync](https://github.com/vigneshssuvarna/hermes/blob/main/modules/calendar_sync.py): `modules/calendar_sync.py`
- [Safety Core](https://github.com/vigneshssuvarna/hermes/blob/main/modules/safety_core.py): `modules/safety_core.py`
- [Background Daemon](https://github.com/vigneshssuvarna/hermes/blob/main/modules/daemon.py): `modules/daemon.py`

### Other components

- **User**

## Connections

- User → HUD Dashboard: types command (evidence: `ui/dashboard.py`)
- HUD Dashboard → Command Runtime: submits command (evidence: `main.py`)
- User → Speech Input: speaks command
- Command Runtime → Speech Input: starts capture (evidence: `main.py`)
- Command Runtime → Language Brain: routes request (evidence: `main.py`)
- Command Runtime → Autonomous Agent: dispatches task (evidence: `main.py`)
- Command Runtime → Goal Orchestrator: runs goal (evidence: `main.py`)
- Command Runtime → Desktop Automation: executes action (evidence: `main.py`)
- Command Runtime → Vision Input: routes image (evidence: `main.py`)
- Command Runtime → Internet Access: fetches information (evidence: `main.py`)
- Command Runtime → Speech Output: speaks reply (evidence: `main.py`)
- Command Runtime → HUD Dashboard: logs status (evidence: `main.py`)
- HUD Dashboard → HUD Widgets: renders widgets (evidence: `ui/dashboard.py`)
- Language Brain → Task Planner: plans complex goals (evidence: `modules/brain.py`)
- Language Brain → Conversation Memory: uses memory (evidence: `modules/brain.py`)
- Language Brain → Context Monitor: reads context (evidence: `modules/brain.py`)
- Language Brain → Long-Term Memory: uses long-term memory (evidence: `modules/brain.py`)
- Task Planner → Code Execution: executes generated code (evidence: `modules/planner.py`)
- Web Connector → Connector Base: inherits interface (evidence: `modules/connectors/web_connector.py`)
- System Connector → Connector Base: inherits interface (evidence: `modules/connectors/system_connector.py`)
- Autonomous Agent → Desktop Automation: may dispatch actions
- Long-Term Memory → Chroma Store: may persist memory
