# ajayrajan05/voiceos architecture

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

- Interactive diagram: https://gitdiagram.com/ajayrajan05/voiceos
- Repository: https://github.com/ajayrajan05/voiceos

## Overview

VoiceOS is a local-first desktop assistant for voice or typed requests. Its principal workflow captures or accepts a request, uses agent planning and LLM inference to decide what to do, then invokes desktop, file, web, code, or multi-step capabilities; policy checks can require approval, and sessions can be resumed. Optional workers offload heavy work, while plugins and skills extend the product. Edges use README statements or shown source/index references; unsampled modules are represented only where the README documents their capability or workflow.

Main entry points: [`core/orchestrator.py`](https://github.com/ajayrajan05/voiceos/blob/main/core/orchestrator.py) (Orchestrator), [`audio/voice_pipeline.py`](https://github.com/ajayrajan05/voiceos/blob/main/audio/voice_pipeline.py) (Voice Capture), [`core/cli/console.py`](https://github.com/ajayrajan05/voiceos/blob/main/core/cli/console.py) (CLI), [`agents/core/planner.py`](https://github.com/ajayrajan05/voiceos/blob/main/agents/core/planner.py) (Agent Planning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_voice["Voice Capture<br/>[voice_pipeline.py]"]
  node_cli["CLI<br/>[console.py]"]
  node_stt["Speech Recognition<br/>[registry.py]"]
end

subgraph group_coordination["Request Coordination"]
  node_orchestrator["Orchestrator<br/>[orchestrator.py]"]
  node_planner["Agent Planning<br/>[planner.py]"]
  node_router["Agent Routing<br/>[router.py]"]
  node_llm["LLM Inference<br/>[llm_service.py]"]
  node_workflow["Autonomous Workflows<br/>[workflow_engine.py]"]
end

subgraph group_capabilities["Task Capabilities"]
  node_os["Desktop Automation<br/>[os_tool_router.py]"]
  node_files["File Tools"]
  node_research["Web Research<br/>[web_search.py]"]
  node_code["Code Sandbox"]
end

subgraph group_safety["Safety and Runtime"]
  node_policy["Policy Engine<br/>[engine.py]"]
  node_permissions["Permission Checks"]
  node_workers["Compute Workers<br/>[agent_worker.py]"]
end

subgraph group_extensions["Extensions and State"]
  node_session["Session Resume<br/>[session_manager.py]"]
  node_plugins["Plugins<br/>[plugin_loader.py]"]
  node_skills["Skills<br/>[skill_registry.py]"]
  node_memory["Memory<br/>[memory_manager.py]"]
end

node_user(("User"))

node_user -->|"speaks to"| node_voice
node_user -->|"types into"| node_cli
node_voice -->|"transcribes with"| node_stt
node_voice -->|"submits request"| node_orchestrator
node_cli -->|"submits request"| node_orchestrator
node_orchestrator -->|"coordinates agents"| node_planner
node_planner -.->|"reasons with"| node_llm
node_orchestrator -.->|"routes tasks"| node_router
node_orchestrator -->|"runs workflows"| node_workflow
node_orchestrator -->|"invokes desktop tasks"| node_os
node_orchestrator -->|"invokes file tasks"| node_files
node_orchestrator -->|"invokes research"| node_research
node_orchestrator -->|"invokes code tasks"| node_code
node_permissions -->|"evaluates policy"| node_policy
node_orchestrator -->|"checks risky actions"| node_permissions
node_orchestrator -->|"offloads heavy work"| node_workers
node_orchestrator -->|"resumes session"| node_session
node_session -.->|"recalls context"| node_memory
node_orchestrator -->|"extends capabilities"| node_plugins
node_orchestrator -->|"uses skill packs"| node_skills

click node_voice "https://github.com/ajayrajan05/voiceos/blob/main/audio/voice_pipeline.py"
click node_cli "https://github.com/ajayrajan05/voiceos/blob/main/core/cli/console.py"
click node_orchestrator "https://github.com/ajayrajan05/voiceos/blob/main/core/orchestrator.py"
click node_planner "https://github.com/ajayrajan05/voiceos/blob/main/agents/core/planner.py"
click node_router "https://github.com/ajayrajan05/voiceos/blob/main/agents/core/router.py"
click node_llm "https://github.com/ajayrajan05/voiceos/blob/main/llm/llm_service.py"
click node_workflow "https://github.com/ajayrajan05/voiceos/blob/main/agents/workflow/workflow_engine.py"
click node_os "https://github.com/ajayrajan05/voiceos/blob/main/tools/os_control/os_tool_router.py"
click node_files "https://github.com/ajayrajan05/voiceos/blob/main/tools/file_tools/enhanced_file_manager.py"
click node_research "https://github.com/ajayrajan05/voiceos/blob/main/research/web_search.py"
click node_code "https://github.com/ajayrajan05/voiceos/blob/main/core/sandbox/unified_executor.py"
click node_policy "https://github.com/ajayrajan05/voiceos/blob/main/core/policy/engine.py"
click node_permissions "https://github.com/ajayrajan05/voiceos/blob/main/permissions/permission_engine.py"
click node_workers "https://github.com/ajayrajan05/voiceos/blob/main/workers/agent_worker.py"
click node_session "https://github.com/ajayrajan05/voiceos/blob/main/core/session/session_manager.py"
click node_plugins "https://github.com/ajayrajan05/voiceos/blob/main/plugins/plugin_loader.py"
click node_skills "https://github.com/ajayrajan05/voiceos/blob/main/skills/skill_registry.py"
click node_memory "https://github.com/ajayrajan05/voiceos/blob/main/memory/memory_manager.py"
click node_stt "https://github.com/ajayrajan05/voiceos/blob/main/stt/registry.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_voice,node_cli,node_stt,node_user toneBlue
class node_orchestrator,node_planner,node_router,node_llm,node_workflow toneAmber
class node_os,node_files,node_research,node_code toneMint
class node_policy,node_permissions,node_workers toneRose
class node_session,node_plugins,node_skills,node_memory toneIndigo
```

## Components

### User Interfaces

- [Voice Capture](https://github.com/ajayrajan05/voiceos/blob/main/audio/voice_pipeline.py): `audio/voice_pipeline.py`
- [CLI](https://github.com/ajayrajan05/voiceos/blob/main/core/cli/console.py): `core/cli/console.py`
- [Speech Recognition](https://github.com/ajayrajan05/voiceos/blob/main/stt/registry.py): `stt/registry.py`

### Request Coordination

- [Orchestrator](https://github.com/ajayrajan05/voiceos/blob/main/core/orchestrator.py): `core/orchestrator.py`
- [Agent Planning](https://github.com/ajayrajan05/voiceos/blob/main/agents/core/planner.py): `agents/core/planner.py`
- [Agent Routing](https://github.com/ajayrajan05/voiceos/blob/main/agents/core/router.py): `agents/core/router.py`
- [LLM Inference](https://github.com/ajayrajan05/voiceos/blob/main/llm/llm_service.py): `llm/llm_service.py`
- [Autonomous Workflows](https://github.com/ajayrajan05/voiceos/blob/main/agents/workflow/workflow_engine.py): `agents/workflow/workflow_engine.py`

### Task Capabilities

- [Desktop Automation](https://github.com/ajayrajan05/voiceos/blob/main/tools/os_control/os_tool_router.py): `tools/os_control/os_tool_router.py`
- [File Tools](https://github.com/ajayrajan05/voiceos/blob/main/tools/file_tools/enhanced_file_manager.py): `tools/file_tools/enhanced_file_manager.py`
- [Web Research](https://github.com/ajayrajan05/voiceos/blob/main/research/web_search.py): `research/web_search.py`
- [Code Sandbox](https://github.com/ajayrajan05/voiceos/blob/main/core/sandbox/unified_executor.py): `core/sandbox/unified_executor.py`

### Safety and Runtime

- [Policy Engine](https://github.com/ajayrajan05/voiceos/blob/main/core/policy/engine.py): `core/policy/engine.py`
- [Permission Checks](https://github.com/ajayrajan05/voiceos/blob/main/permissions/permission_engine.py): `permissions/permission_engine.py`
- [Compute Workers](https://github.com/ajayrajan05/voiceos/blob/main/workers/agent_worker.py): `workers/agent_worker.py`

### Extensions and State

- [Session Resume](https://github.com/ajayrajan05/voiceos/blob/main/core/session/session_manager.py): `core/session/session_manager.py`
- [Plugins](https://github.com/ajayrajan05/voiceos/blob/main/plugins/plugin_loader.py): `plugins/plugin_loader.py`
- [Skills](https://github.com/ajayrajan05/voiceos/blob/main/skills/skill_registry.py): `skills/skill_registry.py`
- [Memory](https://github.com/ajayrajan05/voiceos/blob/main/memory/memory_manager.py): `memory/memory_manager.py`

### Other components

- **User**

## Connections

- User → Voice Capture: speaks to (evidence: `README.md`)
- User → CLI: types into (evidence: `README.md`)
- Voice Capture → Speech Recognition: transcribes with (evidence: `audio/voice_pipeline.py`)
- Voice Capture → Orchestrator: submits request (evidence: `README.md`)
- CLI → Orchestrator: submits request (evidence: `README.md`)
- Orchestrator → Agent Planning: coordinates agents (evidence: `README.md`)
- Agent Planning → LLM Inference: reasons with
- Orchestrator → Agent Routing: routes tasks
- Orchestrator → Autonomous Workflows: runs workflows (evidence: `README.md`)
- Orchestrator → Desktop Automation: invokes desktop tasks (evidence: `README.md`)
- Orchestrator → File Tools: invokes file tasks (evidence: `README.md`)
- Orchestrator → Web Research: invokes research (evidence: `README.md`)
- Orchestrator → Code Sandbox: invokes code tasks (evidence: `README.md`)
- Permission Checks → Policy Engine: evaluates policy (evidence: `permissions/permission_engine.py`)
- Orchestrator → Permission Checks: checks risky actions (evidence: `README.md`)
- Orchestrator → Compute Workers: offloads heavy work (evidence: `README.md`)
- Orchestrator → Session Resume: resumes session (evidence: `README.md`)
- Session Resume → Memory: recalls context
- Orchestrator → Plugins: extends capabilities (evidence: `README.md`)
- Orchestrator → Skills: uses skill packs (evidence: `README.md`)
