# benjaminbayerpriv-cmd/jarvis3 architecture

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

- Interactive diagram: https://gitdiagram.com/benjaminbayerpriv-cmd/jarvis3
- Repository: https://github.com/benjaminbayerpriv-cmd/jarvis3

## Overview

Jarvis 3 is a desktop AI assistant: its documented product direction combines OpenCode as the reasoning engine, a Gemini-style interface, screen markers (uimap), and speech-to-speech. The visible UI renders assistant responses, while the core daemon coordinates the model, projects, extensions, and attachments. The Tauri shell manages local services and global controls. Speech and platform-specific uimap implementations are distinct runtime subsystems. The excerpts do not show the UI-to-daemon or daemon-to-uimap wiring, so those links are left unverified; several subsystem paths are supported by the tree and README but their internals were not sampled.

Main entry points: [`core/src/index.ts`](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/index.ts) (Jarvis daemon), [`speech/jarvis_speech/server.py`](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/server.py) (Speech sidecar), [`tools/uimap-win/Session.cs`](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Session.cs) (Windows UI session), [`tools/uimap-win/Capture.cs`](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Capture.cs) (Windows screen capture)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop experience"]
  node_ui["Assistant interface<br/>[app.js]"]
  node_shell["Tauri shell<br/>[main.rs]"]
  node_service_manager["Local services<br/>[services.rs]"]
end

subgraph group_core["Assistant core"]
  node_daemon["Jarvis daemon<br/>[index.ts]"]
  node_opencode["OpenCode brain<br/>[opencode.ts]"]
  node_extensions["Extensions<br/>[extensions.ts]"]
  node_projects["Project organization<br/>[projects.ts]"]
  node_classification["Chat classification<br/>[classify.ts]"]
  node_attachments["Attachment preparation<br/>[attachments.ts]"]
  node_browser["Browser automation<br/>[ibrowser.ts]"]
end

subgraph group_speech["Speech-to-speech"]
  node_speech_server["Speech sidecar<br/>[server.py]"]
  node_speech_endpoint["Speech endpoint<br/>[endpoint.py]"]
  node_audio["Audio capture and playback<br/>[audio.py]"]
  node_recognition["Speech recognition<br/>[recognition.py]"]
  node_synthesis["Speech synthesis<br/>[synthesis.py]"]
end

subgraph group_uimap["Screen interaction"]
  node_uimap_win["Windows uimap commands<br/>[Program.cs]"]
  node_win_session["Windows UI session<br/>[Session.cs]"]
  node_accessibility["Accessibility scanning<br/>[Accessibility.cs]"]
  node_native["Native window access<br/>[Native.cs]"]
  node_win_capture["Windows screen capture<br/>[Capture.cs]"]
  node_mac_uimap["macOS screen mapping"]
end

node_user(("User"))

node_user -->|"uses"| node_ui
node_ui -.->|"exchanges requests"| node_daemon
node_shell -->|"manages services"| node_service_manager
node_service_manager -->|"starts and checks"| node_daemon
node_service_manager -->|"starts speech service"| node_speech_server
node_daemon -->|"asks model"| node_opencode
node_daemon -->|"assigns chats"| node_projects
node_daemon -->|"classifies chats"| node_classification
node_daemon -->|"prepares uploads"| node_attachments
node_daemon -->|"reloads extensions"| node_extensions
node_daemon -->|"uses browser automation"| node_browser
node_speech_server -->|"uses audio I/O"| node_audio
node_speech_server -->|"transcribes speech"| node_recognition
node_speech_server -->|"synthesizes speech"| node_synthesis
node_speech_endpoint -->|"uses audio"| node_audio
node_speech_endpoint -->|"uses recognition"| node_recognition
node_uimap_win -->|"dispatches commands"| node_win_session
node_win_session -->|"scans controls"| node_accessibility
node_win_session -->|"reads windows"| node_native
node_win_capture -->|"uses control data"| node_accessibility
node_win_capture -->|"uses window access"| node_native
node_win_capture -->|"uses session data"| node_win_session

click node_ui "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/app/ui/app.js"
click node_shell "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/app/src-tauri/src/main.rs"
click node_service_manager "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/app/src-tauri/src/services.rs"
click node_daemon "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/index.ts"
click node_opencode "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/opencode.ts"
click node_extensions "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/extensions.ts"
click node_projects "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/projects.ts"
click node_classification "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/classify.ts"
click node_attachments "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/attachments.ts"
click node_browser "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/ibrowser.ts"
click node_speech_server "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/server.py"
click node_speech_endpoint "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/endpoint.py"
click node_audio "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/audio.py"
click node_recognition "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/recognition.py"
click node_synthesis "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/synthesis.py"
click node_uimap_win "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Program.cs"
click node_win_session "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Session.cs"
click node_accessibility "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Accessibility.cs"
click node_native "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Native.cs"
click node_win_capture "https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Capture.cs"
click node_mac_uimap "https://github.com/benjaminbayerpriv-cmd/jarvis3/tree/main/tools/uimap-mac/Sources"

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_ui,node_shell,node_service_manager,node_user toneBlue
class node_daemon,node_opencode,node_extensions,node_projects,node_classification,node_attachments,node_browser toneAmber
class node_speech_server,node_speech_endpoint,node_audio,node_recognition,node_synthesis toneMint
class node_uimap_win,node_win_session,node_accessibility,node_native,node_win_capture,node_mac_uimap toneRose
```

## Components

### Desktop experience

- [Assistant interface](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/app/ui/app.js): `app/ui/app.js`
- [Tauri shell](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/app/src-tauri/src/main.rs): `app/src-tauri/src/main.rs`
- [Local services](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/app/src-tauri/src/services.rs): `app/src-tauri/src/services.rs`

### Assistant core

- [Jarvis daemon](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/index.ts): `core/src/index.ts`
- [OpenCode brain](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/opencode.ts): `core/src/opencode.ts`
- [Extensions](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/extensions.ts): `core/src/extensions.ts`
- [Project organization](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/projects.ts): `core/src/projects.ts`
- [Chat classification](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/classify.ts): `core/src/classify.ts`
- [Attachment preparation](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/attachments.ts): `core/src/attachments.ts`
- [Browser automation](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/core/src/ibrowser.ts): `core/src/ibrowser.ts`

### Speech-to-speech

- [Speech sidecar](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/server.py): `speech/jarvis_speech/server.py`
- [Speech endpoint](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/endpoint.py): `speech/jarvis_speech/endpoint.py`
- [Audio capture and playback](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/audio.py): `speech/jarvis_speech/audio.py`
- [Speech recognition](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/recognition.py): `speech/jarvis_speech/recognition.py`
- [Speech synthesis](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/speech/jarvis_speech/synthesis.py): `speech/jarvis_speech/synthesis.py`

### Screen interaction

- [Windows uimap commands](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Program.cs): `tools/uimap-win/Program.cs`
- [Windows UI session](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Session.cs): `tools/uimap-win/Session.cs`
- [Accessibility scanning](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Accessibility.cs): `tools/uimap-win/Accessibility.cs`
- [Native window access](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Native.cs): `tools/uimap-win/Native.cs`
- [Windows screen capture](https://github.com/benjaminbayerpriv-cmd/jarvis3/blob/main/tools/uimap-win/Capture.cs): `tools/uimap-win/Capture.cs`
- [macOS screen mapping](https://github.com/benjaminbayerpriv-cmd/jarvis3/tree/main/tools/uimap-mac/Sources): `tools/uimap-mac/Sources`

### Other components

- **User**

## Connections

- User → Assistant interface: uses
- Assistant interface → Jarvis daemon: exchanges requests
- Tauri shell → Local services: manages services (evidence: `app/src-tauri/src/main.rs`)
- Local services → Jarvis daemon: starts and checks (evidence: `app/src-tauri/src/services.rs`)
- Local services → Speech sidecar: starts speech service (evidence: `app/src-tauri/src/services.rs`)
- Jarvis daemon → OpenCode brain: asks model (evidence: `core/src/index.ts`)
- Jarvis daemon → Project organization: assigns chats (evidence: `core/src/index.ts`)
- Jarvis daemon → Chat classification: classifies chats (evidence: `core/src/index.ts`)
- Jarvis daemon → Attachment preparation: prepares uploads (evidence: `core/src/index.ts`)
- Jarvis daemon → Extensions: reloads extensions (evidence: `core/src/index.ts`)
- Jarvis daemon → Browser automation: uses browser automation (evidence: `core/src/index.ts`)
- Speech sidecar → Audio capture and playback: uses audio I/O (evidence: `speech/jarvis_speech/server.py`)
- Speech sidecar → Speech recognition: transcribes speech (evidence: `speech/jarvis_speech/server.py`)
- Speech sidecar → Speech synthesis: synthesizes speech (evidence: `speech/jarvis_speech/server.py`)
- Speech endpoint → Audio capture and playback: uses audio (evidence: `speech/jarvis_speech/endpoint.py`)
- Speech endpoint → Speech recognition: uses recognition (evidence: `speech/jarvis_speech/endpoint.py`)
- Windows uimap commands → Windows UI session: dispatches commands (evidence: `tools/uimap-win/Program.cs`)
- Windows UI session → Accessibility scanning: scans controls (evidence: `tools/uimap-win/Session.cs`)
- Windows UI session → Native window access: reads windows (evidence: `tools/uimap-win/Session.cs`)
- Windows screen capture → Accessibility scanning: uses control data (evidence: `tools/uimap-win/Capture.cs`)
- Windows screen capture → Native window access: uses window access (evidence: `tools/uimap-win/Capture.cs`)
- Windows screen capture → Windows UI session: uses session data (evidence: `tools/uimap-win/Capture.cs`)
