# eliseyrotar/jarvis-ai architecture

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

- Interactive diagram: https://gitdiagram.com/eliseyrotar/jarvis-ai
- Repository: https://github.com/eliseyrotar/jarvis-ai

## Overview

J.A.R.V.I.S. is a local voice-and-UI operator layered over Hermes Agent: it handles wake-word/voice interaction and a React HUD, while Hermes provides the agent runtime, profiles, tools, memory, and MCP ecosystem. The main workflow runs from voice or HUD input through JARVIS to Hermes and back as streamed UI/voice output. The graph also preserves project onboarding, task tracking, subagents, and model management. Some backend links are supported only by the source index or README, so unverified integrations are dashed.

Main entry points: [`jarvis/main.py`](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/main.py) (Voice server), [`jarvis/web/src/pages/OrbConsole.tsx`](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/web/src/pages/OrbConsole.tsx) (Orb HUD), [`jarvis/hermes_client.py`](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/hermes_client.py) (Hermes bridge), [`whatsapp-mcp/whatsapp-mcp-server/main.py`](https://github.com/EliseyRotar/jarvis-ai/blob/main/whatsapp-mcp/whatsapp-mcp-server/main.py) (WhatsApp MCP server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Voice and HUD"]
  node_hud["Orb HUD<br/>[OrbConsole.tsx]"]
  node_hud_state["HUD state<br/>[jarvisStore.ts]"]
  node_orb_rendering["Orb rendering<br/>[orbScene.ts]"]
end

subgraph group_orchestration["JARVIS runtime"]
  node_server["Voice server<br/>[main.py]"]
  node_speech_recognition["Speech recognition<br/>[stt.py]"]
  node_speech_output["Speech output<br/>[tts.py]"]
  node_voice_commands["Voice commands<br/>[voice_intents.py]"]
  node_context["Context management<br/>[context_manager.py]"]
  node_stream_parser["Stream parser<br/>[stream_parser.py]"]
  node_hermes_client["Hermes bridge<br/>[hermes_client.py]"]
end

subgraph group_capabilities["Operator capabilities"]
  node_task_tracker["Task tracker<br/>[task_manager.py]"]
  node_project_setup["Project onboarding<br/>[add_project.py]"]
  node_subagents["Subagents<br/>[__init__.py]"]
  node_model_manager["Ollama manager<br/>[ollama_manager.py]"]
  node_tool_suite["JARVIS tools"]
end

subgraph group_integrations["Agent integrations"]
  node_hermes["Hermes Agent"]
  node_mcp_services["MCP services"]
  node_whatsapp_server["WhatsApp MCP server<br/>[main.py]"]
  node_whatsapp_data["WhatsApp bridge<br/>[whatsapp.py]"]
end

node_operator(("Operator"))
node_microphone(("Microphone"))
node_whatsapp_service[("WhatsApp service")]

node_operator -->|"speaks to"| node_microphone
node_microphone -->|"voice input"| node_server
node_server -.->|"transcribes"| node_speech_recognition
node_operator -->|"uses"| node_hud
node_hud -->|"WebSocket requests"| node_server
node_server -->|"streams updates"| node_hud
node_hud -.->|"updates state"| node_hud_state
node_hud -.->|"renders orb"| node_orb_rendering
node_server -->|"bridges turns"| node_hermes_client
node_hermes_client -->|"sends agent turns"| node_hermes
node_hermes -->|"dispatches tools"| node_mcp_services
node_server -->|"speaks responses"| node_speech_output
node_server -.->|"routes commands"| node_voice_commands
node_server -.->|"uses context"| node_context
node_server -.->|"parses stream"| node_stream_parser
node_server -->|"updates tasks"| node_task_tracker
node_server -->|"manages projects"| node_project_setup
node_server -.->|"routes subagent prompts"| node_subagents
node_server -->|"streams model pulls"| node_model_manager
node_hermes -->|"uses tools"| node_tool_suite
node_mcp_services -->|"includes"| node_whatsapp_server
node_whatsapp_server -->|"calls"| node_whatsapp_data
node_whatsapp_data -.->|"reads and sends"| node_whatsapp_service

click node_server "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/main.py"
click node_speech_recognition "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/stt.py"
click node_speech_output "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/tts.py"
click node_voice_commands "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/voice_intents.py"
click node_context "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/context_manager.py"
click node_stream_parser "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/stream_parser.py"
click node_hermes_client "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/hermes_client.py"
click node_hud "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/web/src/pages/OrbConsole.tsx"
click node_hud_state "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/web/src/store/jarvisStore.ts"
click node_orb_rendering "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/web/src/lib/orbScene.ts"
click node_task_tracker "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/task_manager.py"
click node_project_setup "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/admin/add_project.py"
click node_subagents "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/subagents/__init__.py"
click node_model_manager "https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/tools/ollama_manager.py"
click node_tool_suite "https://github.com/EliseyRotar/jarvis-ai/tree/main/jarvis/tools"
click node_whatsapp_server "https://github.com/EliseyRotar/jarvis-ai/blob/main/whatsapp-mcp/whatsapp-mcp-server/main.py"
click node_whatsapp_data "https://github.com/EliseyRotar/jarvis-ai/blob/main/whatsapp-mcp/whatsapp-mcp-server/whatsapp.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_hud,node_hud_state,node_orb_rendering toneBlue
class node_server,node_speech_recognition,node_speech_output,node_voice_commands,node_context,node_stream_parser,node_hermes_client,node_whatsapp_service toneAmber
class node_task_tracker,node_project_setup,node_subagents,node_model_manager,node_tool_suite toneMint
class node_hermes,node_mcp_services,node_whatsapp_server,node_whatsapp_data toneRose
class node_operator,node_microphone toneIndigo
```

## Components

### Voice and HUD

- [Orb HUD](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/web/src/pages/OrbConsole.tsx): `jarvis/web/src/pages/OrbConsole.tsx`
- [HUD state](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/web/src/store/jarvisStore.ts): `jarvis/web/src/store/jarvisStore.ts`
- [Orb rendering](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/web/src/lib/orbScene.ts): `jarvis/web/src/lib/orbScene.ts`

### JARVIS runtime

- [Voice server](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/main.py): `jarvis/main.py`
- [Speech recognition](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/stt.py): `jarvis/stt.py`
- [Speech output](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/tts.py): `jarvis/tts.py`
- [Voice commands](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/voice_intents.py): `jarvis/voice_intents.py`
- [Context management](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/context_manager.py): `jarvis/context_manager.py`
- [Stream parser](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/stream_parser.py): `jarvis/stream_parser.py`
- [Hermes bridge](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/hermes_client.py): `jarvis/hermes_client.py`

### Operator capabilities

- [Task tracker](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/task_manager.py): `jarvis/task_manager.py`
- [Project onboarding](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/admin/add_project.py): `jarvis/admin/add_project.py`
- [Subagents](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/subagents/__init__.py): `jarvis/subagents/__init__.py`
- [Ollama manager](https://github.com/EliseyRotar/jarvis-ai/blob/main/jarvis/tools/ollama_manager.py): `jarvis/tools/ollama_manager.py`
- [JARVIS tools](https://github.com/EliseyRotar/jarvis-ai/tree/main/jarvis/tools): `jarvis/tools`

### Agent integrations

- **Hermes Agent**
- **MCP services**
- [WhatsApp MCP server](https://github.com/EliseyRotar/jarvis-ai/blob/main/whatsapp-mcp/whatsapp-mcp-server/main.py): `whatsapp-mcp/whatsapp-mcp-server/main.py`
- [WhatsApp bridge](https://github.com/EliseyRotar/jarvis-ai/blob/main/whatsapp-mcp/whatsapp-mcp-server/whatsapp.py): `whatsapp-mcp/whatsapp-mcp-server/whatsapp.py`

### Other components

- **Operator**
- **Microphone**
- **WhatsApp service**

## Connections

- Operator → Microphone: speaks to (evidence: `README.md`)
- Microphone → Voice server: voice input (evidence: `README.md`)
- Voice server → Speech recognition: transcribes (evidence: `jarvis/main.py`)
- Operator → Orb HUD: uses (evidence: `README.md`)
- Orb HUD → Voice server: WebSocket requests (evidence: `README.md`)
- Voice server → Orb HUD: streams updates (evidence: `README.md`)
- Orb HUD → HUD state: updates state
- Orb HUD → Orb rendering: renders orb
- Voice server → Hermes bridge: bridges turns (evidence: `jarvis/main.py`)
- Hermes bridge → Hermes Agent: sends agent turns (evidence: `README.md`)
- Hermes Agent → MCP services: dispatches tools (evidence: `README.md`)
- Voice server → Speech output: speaks responses (evidence: `jarvis/main.py`)
- Voice server → Voice commands: routes commands (evidence: `jarvis/main.py`)
- Voice server → Context management: uses context (evidence: `jarvis/main.py`)
- Voice server → Stream parser: parses stream
- Voice server → Task tracker: updates tasks (evidence: `jarvis/main.py`)
- Voice server → Project onboarding: manages projects (evidence: `jarvis/main.py`)
- Voice server → Subagents: routes subagent prompts (evidence: `jarvis/main.py`)
- Voice server → Ollama manager: streams model pulls (evidence: `jarvis/main.py`)
- Hermes Agent → JARVIS tools: uses tools (evidence: `README.md`)
- MCP services → WhatsApp MCP server: includes (evidence: `README.md`)
- WhatsApp MCP server → WhatsApp bridge: calls (evidence: `whatsapp-mcp/whatsapp-mcp-server/main.py`)
- WhatsApp bridge → WhatsApp service: reads and sends
