# johnmarywasswa29-bot/jarvis architecture

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

- Interactive diagram: https://gitdiagram.com/johnmarywasswa29-bot/jarvis
- Repository: https://github.com/johnmarywasswa29-bot/jarvis

## Overview

Jarvis is a privacy-first desktop assistant, with an additional user-invoked research-to-action workflow. The documented assistant path runs from wake-word and speech input through the LLM brain and tools to spoken output. Distinct capabilities include local knowledge retrieval, goals and queued tasks, proactive suggestions, plugins, workspace awareness, and web access. The research workflow coordinates research, planning, proposal validation, user confirmation, and execution. Some links rely on README descriptions or the source index; unsampled implementations are represented only where the tree and documentation support them.

Main entry points: [`research/orchestrator.py`](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/research/orchestrator.py) (Research workflow), [`orchestration/manager.py`](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/orchestration/manager.py) (Workflow orchestration), [`modules/voice.py`](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/voice.py) (Speech I/O), [`modules/brain_graph.py`](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/brain_graph.py) (LLM brain)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Assistant interaction"]
  node_wake["Wake word<br/>[wake_word.py]"]
  node_voice["Speech I/O<br/>[voice.py]"]
  node_brain["LLM brain<br/>[brain_graph.py]"]
  node_tools["Tool execution<br/>[tools.py]"]
  node_web_server["Web interface<br/>[app.py]"]
end

subgraph group_capabilities["Assistant capabilities"]
  node_knowledge["Knowledge retrieval"]
  node_knowledge_index["Document indexing<br/>[indexer.py]"]
  node_goal_manager["Goal manager<br/>[goal_manager.py]"]
  node_task_queue["Task queue<br/>[task_queue.py]"]
  node_proactive["Proactive suggestions"]
  node_workspace["Workspace context"]
  node_plugins["Plugin manager<br/>[manager.py]"]
end

subgraph group_research_action["Research and action"]
  node_research_workflow["Research workflow<br/>[orchestrator.py]"]
  node_research_pipeline["Research pipeline<br/>[pipeline.py]"]
  node_research_planner["Research planner<br/>[planner.py]"]
  node_proposal_manager["Proposal manager<br/>[manager.py]"]
  node_proposal_executor["Proposal executor<br/>[executor.py]"]
  node_orchestration["Workflow orchestration<br/>[manager.py]"]
  node_simulation["Paper simulation<br/>[engine.py]"]
  node_confirmation["User confirmation<br/>[confirmation.py]"]
end

subgraph group_state_integrations["State and integrations"]
  node_knowledge_store[("Knowledge store")]
  node_goal_store[("Goal storage<br/>[goal_storage.py]")]
  node_task_store[("Task storage<br/>[task_storage.py]")]
end

node_user(("User"))
node_speaker(("Speaker"))

node_user -->|"speaks wake word"| node_wake
node_wake -.->|"activates listening"| node_voice
node_voice -->|"transcribes input"| node_brain
node_brain -->|"invokes tools"| node_tools
node_brain -->|"requests speech"| node_voice
node_voice -->|"plays speech"| node_speaker
node_knowledge -->|"indexes documents"| node_knowledge_index
node_knowledge_index -->|"writes chunks"| node_knowledge_store
node_knowledge -->|"searches"| node_knowledge_store
node_goal_manager -->|"persists goals"| node_goal_store
node_task_queue -->|"persists tasks"| node_task_store
node_proactive -.->|"uses context"| node_workspace
node_research_workflow -->|"runs research"| node_research_pipeline
node_research_workflow -->|"creates plan"| node_research_planner
node_research_workflow -->|"executes proposal"| node_proposal_executor
node_research_workflow -.->|"builds proposal"| node_proposal_manager
node_orchestration -->|"coordinates research"| node_research_workflow
node_orchestration -->|"uses proposals"| node_proposal_manager
node_orchestration -->|"uses simulation"| node_simulation
node_orchestration -.->|"presents confirmation"| node_confirmation
node_web_server -.->|"serves interface"| node_user

click node_wake "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/wake_word.py"
click node_voice "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/voice.py"
click node_brain "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/brain_graph.py"
click node_tools "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/tools.py"
click node_knowledge "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/knowledge/knowledge_engine.py"
click node_knowledge_index "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/knowledge/indexer.py"
click node_knowledge_store "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/knowledge/knowledge_storage.py"
click node_goal_manager "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/goal_manager/goal_manager.py"
click node_goal_store "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/goal_manager/goal_storage.py"
click node_task_queue "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/task_queue/task_queue.py"
click node_task_store "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/task_queue/task_storage.py"
click node_proactive "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/proactive/proactive_manager.py"
click node_workspace "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/workspace/workspace_manager.py"
click node_plugins "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/plugins/sdk/manager.py"
click node_research_workflow "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/research/orchestrator.py"
click node_research_pipeline "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/research/pipeline.py"
click node_research_planner "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/research/planner.py"
click node_proposal_manager "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/proposal/manager.py"
click node_proposal_executor "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/proposal/executor.py"
click node_orchestration "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/orchestration/manager.py"
click node_simulation "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/simulation/engine.py"
click node_confirmation "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/web/server/confirmation.py"
click node_web_server "https://github.com/johnmarywasswa29-bot/jarvis/blob/main/web/server/app.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_wake,node_voice,node_brain,node_tools,node_web_server,node_user toneBlue
class node_knowledge,node_knowledge_index,node_goal_manager,node_task_queue,node_proactive,node_workspace,node_plugins toneAmber
class node_research_workflow,node_research_pipeline,node_research_planner,node_proposal_manager,node_proposal_executor,node_orchestration,node_simulation,node_confirmation toneMint
class node_knowledge_store,node_goal_store,node_task_store toneRose
class node_speaker toneIndigo
```

## Components

### Assistant interaction

- [Wake word](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/wake_word.py): `modules/wake_word.py`
- [Speech I/O](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/voice.py): `modules/voice.py`
- [LLM brain](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/brain_graph.py): `modules/brain_graph.py`
- [Tool execution](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/modules/tools.py): `modules/tools.py`
- [Web interface](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/web/server/app.py): `web/server/app.py`

### Assistant capabilities

- [Knowledge retrieval](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/knowledge/knowledge_engine.py): `knowledge/knowledge_engine.py`
- [Document indexing](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/knowledge/indexer.py): `knowledge/indexer.py`
- [Goal manager](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/goal_manager/goal_manager.py): `goal_manager/goal_manager.py`
- [Task queue](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/task_queue/task_queue.py): `task_queue/task_queue.py`
- [Proactive suggestions](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/proactive/proactive_manager.py): `proactive/proactive_manager.py`
- [Workspace context](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/workspace/workspace_manager.py): `workspace/workspace_manager.py`
- [Plugin manager](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/plugins/sdk/manager.py): `plugins/sdk/manager.py`

### Research and action

- [Research workflow](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/research/orchestrator.py): `research/orchestrator.py`
- [Research pipeline](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/research/pipeline.py): `research/pipeline.py`
- [Research planner](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/research/planner.py): `research/planner.py`
- [Proposal manager](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/proposal/manager.py): `proposal/manager.py`
- [Proposal executor](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/proposal/executor.py): `proposal/executor.py`
- [Workflow orchestration](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/orchestration/manager.py): `orchestration/manager.py`
- [Paper simulation](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/simulation/engine.py): `simulation/engine.py`
- [User confirmation](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/web/server/confirmation.py): `web/server/confirmation.py`

### State and integrations

- [Knowledge store](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/knowledge/knowledge_storage.py): `knowledge/knowledge_storage.py`
- [Goal storage](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/goal_manager/goal_storage.py): `goal_manager/goal_storage.py`
- [Task storage](https://github.com/johnmarywasswa29-bot/jarvis/blob/main/task_queue/task_storage.py): `task_queue/task_storage.py`

### Other components

- **User**
- **Speaker**

## Connections

- User → Wake word: speaks wake word (evidence: `README.md`)
- Wake word → Speech I/O: activates listening
- Speech I/O → LLM brain: transcribes input (evidence: `README.md`)
- LLM brain → Tool execution: invokes tools (evidence: `README.md`)
- LLM brain → Speech I/O: requests speech (evidence: `README.md`)
- Speech I/O → Speaker: plays speech (evidence: `README.md`)
- Knowledge retrieval → Document indexing: indexes documents (evidence: `knowledge/knowledge_engine.py`)
- Document indexing → Knowledge store: writes chunks (evidence: `knowledge/indexer.py`)
- Knowledge retrieval → Knowledge store: searches (evidence: `knowledge/knowledge_engine.py`)
- Goal manager → Goal storage: persists goals (evidence: `goal_manager/goal_manager.py`)
- Task queue → Task storage: persists tasks (evidence: `README.md`)
- Proactive suggestions → Workspace context: uses context
- Research workflow → Research pipeline: runs research (evidence: `research/orchestrator.py`)
- Research workflow → Research planner: creates plan (evidence: `research/orchestrator.py`)
- Research workflow → Proposal executor: executes proposal (evidence: `research/orchestrator.py`)
- Research workflow → Proposal manager: builds proposal
- Workflow orchestration → Research workflow: coordinates research (evidence: `orchestration/manager.py`)
- Workflow orchestration → Proposal manager: uses proposals (evidence: `orchestration/manager.py`)
- Workflow orchestration → Paper simulation: uses simulation (evidence: `orchestration/manager.py`)
- Workflow orchestration → User confirmation: presents confirmation
- Web interface → User: serves interface
