# hashir4m4/jarvis-x architecture

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

- Interactive diagram: https://gitdiagram.com/hashir4m4/jarvis-x
- Repository: https://github.com/hashir4m4/jarvis-x

## Overview

JARVIS OS is a desktop AI command center. Its documented user workflow accepts voice or text, routes requests to registered skills and execution, persists relevant information in memory, then returns a structured response through speech and the HUD. Distinct capabilities include daily workflows, multi-agent coding, desktop automation, diagnostics, provider-flexible LLMs, vault knowledge management, plugins, and proactive behavior. The graph follows documented relationships and sampled calls; several subsystem connections are omitted where source was not inspected.

Main entry points: [`backend/skills/registry.py`](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/skills/registry.py) (Skill Registry), [`backend/router/central_router.py`](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/router/central_router.py) (Central Router), [`backend/voice/voice_manager.py`](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/voice/voice_manager.py) (Voice Interface), [`backend/agents/agent_manager.py`](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/agents/agent_manager.py) (Coding Pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User Interaction"]
  node_voice["Voice Interface<br/>[voice_manager.py]"]
  node_interaction_engine["Adaptive Interaction<br/>[engine.py]"]
end

subgraph group_orchestration["Routing And Workflows"]
  node_router["Central Router<br/>[central_router.py]"]
  node_skills["Skill Registry<br/>[registry.py]"]
  node_planning["Plan Execution"]
  node_proactive["Proactive Engine<br/>[engine.py]"]
end

subgraph group_capabilities["Execution Capabilities"]
  node_coding_agents["Coding Pipeline<br/>[agent_manager.py]"]
  node_code_tools["Code Tools<br/>[code_tools.py]"]
  node_desktop_automation["Desktop Automation"]
  node_security["Security Proxy<br/>[security_proxy.py]"]
  node_diagnostics["Diagnostics<br/>[engine.py]"]
  node_browser["Browser Tools<br/>[manager.py]"]
  node_vision["Vision Services<br/>[vision_manager.py]"]
  node_plugins["Plugin Lifecycle<br/>[plugin_manager.py]"]
end

subgraph group_services["Shared Services"]
  node_llm["LLM Client<br/>[llm_client.py]"]
  node_memory[("Unified Memory<br/>[memory_api.py]")]
  node_vault[("Obsidian Vault<br/>[vault_manager.py]")]
  node_core_models["Core Task Models<br/>[models.py]"]
  node_diagnostic_models["Diagnostic Models<br/>[models.py]"]
  node_interaction_models["Interaction Models<br/>[models.py]"]
  node_llm_interfaces["Provider Interfaces<br/>[interfaces.py]"]
  node_privacy["LLM Privacy Boundary"]
end

subgraph group_presentation["Desktop HUD"]
  node_frontend["Command Center HUD<br/>[App.jsx]"]
  node_frontend_store["HUD State Store<br/>[useAppStore.js]"]
  node_websocket["WebSocket Client<br/>[useWebSocket.js]"]
end

node_user(("Voice / Text User"))

node_user -->|"submits input"| node_router
node_user -->|"speaks commands"| node_voice
node_voice -->|"executes input"| node_router
node_router -->|"routes requests"| node_skills
node_skills -->|"dispatches work"| node_planning
node_planning -->|"dispatches agents"| node_coding_agents
node_coding_agents -->|"requests generations"| node_llm
node_coding_agents -->|"gates writes"| node_security
node_coding_agents -->|"uses tools"| node_code_tools
node_planning -->|"stores results"| node_memory
node_skills -->|"persists context"| node_memory
node_memory -->|"uses vault"| node_vault
node_router -.->|"adapts responses"| node_interaction_engine
node_voice -->|"broadcasts voice state"| node_frontend
node_frontend -->|"uses socket client"| node_websocket
node_websocket -->|"updates state"| node_frontend_store
node_frontend -->|"reads state"| node_frontend_store
node_llm -->|"uses provider interface"| node_llm_interfaces
node_llm -.->|"applies boundary"| node_privacy
node_diagnostics -->|"returns reports"| node_diagnostic_models
node_diagnostics -.->|"coordinates checks"| node_diagnostics
node_interaction_engine -->|"uses state models"| node_interaction_models
node_proactive -.->|"uses task models"| node_core_models
node_skills -.->|"offers browser capability"| node_browser
node_skills -.->|"offers vision capability"| node_vision
node_skills -.->|"offers desktop actions"| node_desktop_automation
node_plugins -.->|"registers capabilities"| node_skills
node_frontend -->|"presents HUD"| node_user
node_voice -->|"speaks response"| node_user
node_router -.->|"classifies task"| node_core_models

click node_voice "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/voice/voice_manager.py"
click node_interaction_engine "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/interaction/engine.py"
click node_router "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/router/central_router.py"
click node_skills "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/skills/registry.py"
click node_planning "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/planning/execution_engine.py"
click node_proactive "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/proactive/engine.py"
click node_coding_agents "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/agents/agent_manager.py"
click node_code_tools "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/agents/code_tools.py"
click node_desktop_automation "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/automation/windows_controller.py"
click node_security "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/automation/security_proxy.py"
click node_diagnostics "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/diagnostics/engine.py"
click node_browser "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/browser/manager.py"
click node_vision "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/vision/vision_manager.py"
click node_plugins "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/plugins/plugin_manager.py"
click node_llm "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/llm_client.py"
click node_memory "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/memory/memory_api.py"
click node_vault "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/memory/vault/vault_manager.py"
click node_core_models "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/core/models.py"
click node_diagnostic_models "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/diagnostics/models.py"
click node_interaction_models "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/interaction/models.py"
click node_llm_interfaces "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/llm/interfaces.py"
click node_privacy "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/llm/privacy_boundary.py"
click node_frontend "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/frontend/src/App.jsx"
click node_frontend_store "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/frontend/src/store/useAppStore.js"
click node_websocket "https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/frontend/src/hooks/useWebSocket.js"

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_voice,node_interaction_engine,node_user toneBlue
class node_router,node_skills,node_planning,node_proactive toneAmber
class node_coding_agents,node_code_tools,node_desktop_automation,node_security,node_diagnostics,node_browser,node_vision,node_plugins toneMint
class node_llm,node_memory,node_vault,node_core_models,node_diagnostic_models,node_interaction_models,node_llm_interfaces,node_privacy toneRose
class node_frontend,node_frontend_store,node_websocket toneIndigo
```

## Components

### User Interaction

- [Voice Interface](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/voice/voice_manager.py): `backend/voice/voice_manager.py`
- [Adaptive Interaction](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/interaction/engine.py): `backend/interaction/engine.py`

### Routing And Workflows

- [Central Router](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/router/central_router.py): `backend/router/central_router.py`
- [Skill Registry](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/skills/registry.py): `backend/skills/registry.py`
- [Plan Execution](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/planning/execution_engine.py): `backend/planning/execution_engine.py`
- [Proactive Engine](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/proactive/engine.py): `backend/proactive/engine.py`

### Execution Capabilities

- [Coding Pipeline](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/agents/agent_manager.py): `backend/agents/agent_manager.py`
- [Code Tools](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/agents/code_tools.py): `backend/agents/code_tools.py`
- [Desktop Automation](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/automation/windows_controller.py): `backend/automation/windows_controller.py`
- [Security Proxy](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/automation/security_proxy.py): `backend/automation/security_proxy.py`
- [Diagnostics](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/diagnostics/engine.py): `backend/diagnostics/engine.py`
- [Browser Tools](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/browser/manager.py): `backend/browser/manager.py`
- [Vision Services](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/vision/vision_manager.py): `backend/vision/vision_manager.py`
- [Plugin Lifecycle](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/plugins/plugin_manager.py): `backend/plugins/plugin_manager.py`

### Shared Services

- [LLM Client](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/llm_client.py): `backend/llm_client.py`
- [Unified Memory](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/memory/memory_api.py): `backend/memory/memory_api.py`
- [Obsidian Vault](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/memory/vault/vault_manager.py): `backend/memory/vault/vault_manager.py`
- [Core Task Models](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/core/models.py): `backend/core/models.py`
- [Diagnostic Models](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/diagnostics/models.py): `backend/diagnostics/models.py`
- [Interaction Models](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/interaction/models.py): `backend/interaction/models.py`
- [Provider Interfaces](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/llm/interfaces.py): `backend/llm/interfaces.py`
- [LLM Privacy Boundary](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/backend/llm/privacy_boundary.py): `backend/llm/privacy_boundary.py`

### Desktop HUD

- [Command Center HUD](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/frontend/src/App.jsx): `frontend/src/App.jsx`
- [HUD State Store](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/frontend/src/store/useAppStore.js): `frontend/src/store/useAppStore.js`
- [WebSocket Client](https://github.com/hashir4m4/jarvis-x/blob/prompt-54-architecture-stabilization/frontend/src/hooks/useWebSocket.js): `frontend/src/hooks/useWebSocket.js`

### Other components

- **Voice / Text User**

## Connections

- Voice / Text User → Central Router: submits input
- Voice / Text User → Voice Interface: speaks commands
- Voice Interface → Central Router: executes input (evidence: `backend/voice/voice_manager.py`)
- Central Router → Skill Registry: routes requests
- Skill Registry → Plan Execution: dispatches work
- Plan Execution → Coding Pipeline: dispatches agents (evidence: `backend/planning/execution_engine.py`)
- Coding Pipeline → LLM Client: requests generations (evidence: `backend/agents/agent_manager.py`)
- Coding Pipeline → Security Proxy: gates writes (evidence: `backend/agents/agent_manager.py`)
- Coding Pipeline → Code Tools: uses tools (evidence: `backend/agents/agent_manager.py`)
- Plan Execution → Unified Memory: stores results
- Skill Registry → Unified Memory: persists context
- Unified Memory → Obsidian Vault: uses vault
- Central Router → Adaptive Interaction: adapts responses
- Voice Interface → Command Center HUD: broadcasts voice state (evidence: `backend/voice/voice_manager.py`)
- Command Center HUD → WebSocket Client: uses socket client (evidence: `frontend/src/App.jsx`)
- WebSocket Client → HUD State Store: updates state (evidence: `frontend/src/hooks/useWebSocket.js`)
- Command Center HUD → HUD State Store: reads state (evidence: `frontend/src/App.jsx`)
- LLM Client → Provider Interfaces: uses provider interface (evidence: `backend/llm_client.py`)
- LLM Client → LLM Privacy Boundary: applies boundary
- Diagnostics → Diagnostic Models: returns reports (evidence: `backend/diagnostics/engine.py`)
- Diagnostics → Diagnostics: coordinates checks (evidence: `backend/diagnostics/engine.py`)
- Adaptive Interaction → Interaction Models: uses state models (evidence: `backend/interaction/engine.py`)
- Proactive Engine → Core Task Models: uses task models (evidence: `backend/proactive/engine.py`)
- Skill Registry → Browser Tools: offers browser capability
- Skill Registry → Vision Services: offers vision capability
- Skill Registry → Desktop Automation: offers desktop actions
- Plugin Lifecycle → Skill Registry: registers capabilities
- Command Center HUD → Voice / Text User: presents HUD
- Voice Interface → Voice / Text User: speaks response
- Central Router → Core Task Models: classifies task
