# yatheendra-source/jarvis-omnichannel-swarm1 architecture

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

- Interactive diagram: https://gitdiagram.com/yatheendra-source/jarvis-omnichannel-swarm1
- Repository: https://github.com/yatheendra-source/jarvis-omnichannel-swarm1

## Overview

J.A.R.V.I.S. is a voice-enabled desktop and mobile automation assistant. A user submits speech or a desktop command; the bridge transcribes voice input, sends the instruction to the Gemini-backed orchestrator, and returns a reply with spoken readback. The orchestrator dispatches domain actions across communications, Windows, phone, vision, and productivity tools. README-described capabilities fill out these branches, but the main agent implementation was not sampled, so its internal dispatch wiring is documented rather than source-verified.

Main entry points: [`agent.py`](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/agent.py) (Gemini orchestrator), [`jarvis_bridge.py`](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/jarvis_bridge.py) (Desktop bridge), [`tools/instagram_tool.py`](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/instagram_tool.py) (Instagram messaging), [`voice.py`](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/voice.py) (Speech I/O)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User interaction"]
  node_bridge["Desktop bridge<br/>[jarvis_bridge.py]"]
  node_voice["Speech I/O<br/>[voice.py]"]
  node_security["Voice security<br/>[voice_security.py]"]
end

subgraph group_orchestration["Command orchestration"]
  node_orchestrator["Gemini orchestrator<br/>[agent.py]"]
end

subgraph group_communication["Communications"]
  node_whatsapp["WhatsApp Web<br/>[whatsapp_web.py]"]
  node_instagram["Instagram messaging<br/>[instagram_tool.py]"]
  node_gmail["Gmail<br/>[gmail_tool.py]"]
  node_gmail_web["Gmail browser<br/>[gmail_web.py]"]
end

subgraph group_device["Device automation"]
  node_windows["Windows controls<br/>[system_os_tool.py]"]
  node_phone["Android controls<br/>[phone_tool.py]"]
  node_vision["Screen vision"]
  node_screenshot["Screen capture<br/>[screenshot_tool.py]"]
end

subgraph group_productivity["Productivity tools"]
  node_notes_docs["Notes and documents"]
  node_files["File operations<br/>[files_tool.py]"]
  node_weather["Weather<br/>[weather_tool.py]"]
  node_code["Code workspace"]
end

node_user(("User"))

node_user -->|"submits commands"| node_bridge
node_bridge -->|"transcribes and speaks"| node_voice
node_bridge -->|"executes instruction"| node_orchestrator
node_bridge -->|"enrolls voice"| node_security
node_orchestrator -.->|"dispatches messaging"| node_whatsapp
node_orchestrator -.->|"dispatches messaging"| node_instagram
node_orchestrator -.->|"dispatches email"| node_gmail
node_bridge -->|"initializes browser"| node_gmail_web
node_bridge -->|"initializes browser"| node_instagram
node_orchestrator -.->|"dispatches system actions"| node_windows
node_orchestrator -.->|"dispatches phone actions"| node_phone
node_orchestrator -.->|"dispatches vision actions"| node_vision
node_orchestrator -.->|"dispatches capture"| node_screenshot
node_orchestrator -.->|"dispatches document tasks"| node_notes_docs
node_orchestrator -.->|"dispatches file tasks"| node_files
node_orchestrator -.->|"dispatches weather lookup"| node_weather
node_orchestrator -.->|"dispatches code generation"| node_code

click node_bridge "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/jarvis_bridge.py"
click node_voice "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/voice.py"
click node_security "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/voice_security.py"
click node_orchestrator "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/agent.py"
click node_whatsapp "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/whatsapp_web.py"
click node_instagram "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/instagram_tool.py"
click node_gmail "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/gmail_tool.py"
click node_gmail_web "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/gmail_web.py"
click node_windows "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/system_os_tool.py"
click node_phone "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/phone_tool.py"
click node_vision "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/vision_agent_tool.py"
click node_screenshot "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/screenshot_tool.py"
click node_notes_docs "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/docs_notepad_tool.py"
click node_files "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/files_tool.py"
click node_weather "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/weather_tool.py"
click node_code "https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/docs_notepad_tool.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_bridge,node_voice,node_security,node_user toneBlue
class node_orchestrator toneAmber
class node_whatsapp,node_instagram,node_gmail,node_gmail_web toneMint
class node_windows,node_phone,node_vision,node_screenshot toneRose
class node_notes_docs,node_files,node_weather,node_code toneIndigo
```

## Components

### User interaction

- [Desktop bridge](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/jarvis_bridge.py): `jarvis_bridge.py`
- [Speech I/O](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/voice.py): `voice.py`
- [Voice security](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/voice_security.py): `voice_security.py`

### Command orchestration

- [Gemini orchestrator](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/agent.py): `agent.py`

### Communications

- [WhatsApp Web](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/whatsapp_web.py): `whatsapp_web.py`
- [Instagram messaging](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/instagram_tool.py): `tools/instagram_tool.py`
- [Gmail](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/gmail_tool.py): `tools/gmail_tool.py`
- [Gmail browser](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/gmail_web.py): `tools/gmail_web.py`

### Device automation

- [Windows controls](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/system_os_tool.py): `tools/system_os_tool.py`
- [Android controls](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/phone_tool.py): `tools/phone_tool.py`
- [Screen vision](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/vision_agent_tool.py): `tools/vision_agent_tool.py`
- [Screen capture](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/screenshot_tool.py): `tools/screenshot_tool.py`

### Productivity tools

- [Notes and documents](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/docs_notepad_tool.py): `tools/docs_notepad_tool.py`
- [File operations](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/files_tool.py): `tools/files_tool.py`
- [Weather](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/weather_tool.py): `tools/weather_tool.py`
- [Code workspace](https://github.com/yatheendra-source/jarvis-omnichannel-swarm1/blob/main/tools/docs_notepad_tool.py): `tools/docs_notepad_tool.py`

### Other components

- **User**

## Connections

- User → Desktop bridge: submits commands (evidence: `README.md`)
- Desktop bridge → Speech I/O: transcribes and speaks (evidence: `jarvis_bridge.py`)
- Desktop bridge → Gemini orchestrator: executes instruction (evidence: `jarvis_bridge.py`)
- Desktop bridge → Voice security: enrolls voice (evidence: `jarvis_bridge.py`)
- Gemini orchestrator → WhatsApp Web: dispatches messaging (evidence: `README.md`)
- Gemini orchestrator → Instagram messaging: dispatches messaging (evidence: `README.md`)
- Gemini orchestrator → Gmail: dispatches email (evidence: `README.md`)
- Desktop bridge → Gmail browser: initializes browser (evidence: `jarvis_bridge.py`)
- Desktop bridge → Instagram messaging: initializes browser (evidence: `jarvis_bridge.py`)
- Gemini orchestrator → Windows controls: dispatches system actions (evidence: `README.md`)
- Gemini orchestrator → Android controls: dispatches phone actions (evidence: `README.md`)
- Gemini orchestrator → Screen vision: dispatches vision actions (evidence: `README.md`)
- Gemini orchestrator → Screen capture: dispatches capture (evidence: `README.md`)
- Gemini orchestrator → Notes and documents: dispatches document tasks (evidence: `README.md`)
- Gemini orchestrator → File operations: dispatches file tasks (evidence: `README.md`)
- Gemini orchestrator → Weather: dispatches weather lookup (evidence: `README.md`)
- Gemini orchestrator → Code workspace: dispatches code generation (evidence: `README.md`)
