# do0og/ari-voicecommand architecture

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

- Interactive diagram: https://gitdiagram.com/do0og/ari-voicecommand
- Repository: https://github.com/do0og/ari-voicecommand

## Overview

Ari is a Windows desktop voice assistant: a user activates it by wake word, hotkey, or character click; Ari listens, handles simple commands locally or plans larger tasks, then responds aloud. The repository separates the desktop/audio experience, command and agent execution, model and speech integrations, persistent memory, and extensions. README statements support the main workflow and documented capabilities; source-index references additionally show the application entry wiring and several implementation dependencies. Many subsystem internals were not sampled, so their internal links are omitted.

Main entry points: [`VoiceCommand/agent/agent_orchestrator.py`](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/agent_orchestrator.py) (Agent orchestration), [`VoiceCommand/core/VoiceCommand.py`](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/core/VoiceCommand.py) (Voice runtime), [`VoiceCommand/commands/ai_command.py`](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/commands/ai_command.py) (Command handling), [`VoiceCommand/agent/execution_engine.py`](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/execution_engine.py) (Task execution)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop experience"]
  node_app["Desktop app<br/>[Main.py]"]
  node_audio["Audio input<br/>[audio_manager.py]"]
  node_voice_runtime["Voice runtime<br/>[VoiceCommand.py]"]
  node_character["Character UI"]
end

subgraph group_agent["Commands and agent"]
  node_commands["Command handling<br/>[ai_command.py]"]
  node_fast_path["Fast commands<br/>[ai_fast_path.py]"]
  node_orchestrator["Agent orchestration"]
  node_planner["Task planning<br/>[agent_planner.py]"]
  node_execution["Task execution"]
  node_verification["Result verification"]
  node_safety["Execution safety<br/>[safety_checker.py]"]
end

subgraph group_models["Models and speech"]
  node_llm["LLM providers<br/>[llm_provider.py]"]
  node_stt["Speech recognition<br/>[stt_provider.py]"]
  node_tts["Speech synthesis<br/>[tts_factory.py]"]
end

subgraph group_memory["Memory and learning"]
  node_memory_manager["Memory manager<br/>[memory_manager.py]"]
  node_conversation[("Conversation history")]
  node_context[("User context<br/>[user_context.py]")]
  node_learning["Agent learning<br/>[learning_engine.py]"]
end

subgraph group_extensions["Extensions and integrations"]
  node_skills["Skills and plugins<br/>[skill_manager.py]"]
  node_mcp["MCP servers<br/>[mcp_client.py]"]
  node_telegram["Telegram bridge<br/>[telegram_bridge.py]"]
end

node_user(("User"))
node_providers{{"External providers"}}

node_user -->|"activates"| node_app
node_app -->|"starts"| node_voice_runtime
node_user -->|"speaks"| node_audio
node_audio -.->|"captures speech"| node_voice_runtime
node_user -->|"clicks"| node_character
node_voice_runtime -->|"dispatches"| node_commands
node_commands -->|"checks locally"| node_fast_path
node_commands -->|"delegates tasks"| node_orchestrator
node_orchestrator -.->|"plans"| node_planner
node_orchestrator -.->|"executes"| node_execution
node_execution -->|"checks results"| node_verification
node_execution -->|"checks actions"| node_safety
node_orchestrator -.->|"requests model"| node_llm
node_voice_runtime -->|"recognizes speech"| node_stt
node_voice_runtime -->|"speaks response"| node_tts
node_tts -->|"uses speech engines"| node_providers
node_llm -->|"uses model providers"| node_providers
node_memory_manager -->|"indexes conversation"| node_conversation
node_memory_manager -->|"updates context"| node_context
node_commands -->|"handles memory requests"| node_memory_manager
node_orchestrator -.->|"records outcomes"| node_learning
node_orchestrator -.->|"uses skills"| node_skills
node_orchestrator -.->|"uses MCP tools"| node_mcp
node_telegram -.->|"forwards commands"| node_commands
node_providers -.->|"receives remote requests"| node_telegram

click node_app "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/Main.py"
click node_audio "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/audio/audio_manager.py"
click node_voice_runtime "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/core/VoiceCommand.py"
click node_character "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/ui/character_widget.py"
click node_commands "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/commands/ai_command.py"
click node_fast_path "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/commands/ai_fast_path.py"
click node_orchestrator "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/agent_orchestrator.py"
click node_planner "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/agent_planner.py"
click node_execution "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/execution_engine.py"
click node_verification "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/verification_engine.py"
click node_safety "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/safety_checker.py"
click node_llm "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/llm_provider.py"
click node_stt "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/core/stt_provider.py"
click node_tts "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/tts/tts_factory.py"
click node_memory_manager "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/memory/memory_manager.py"
click node_conversation "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/memory/conversation_history.py"
click node_context "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/memory/user_context.py"
click node_learning "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/learning_engine.py"
click node_skills "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/skill_manager.py"
click node_mcp "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/mcp_client.py"
click node_telegram "https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/services/telegram_bridge.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_app,node_audio,node_voice_runtime,node_character,node_user toneBlue
class node_commands,node_fast_path,node_orchestrator,node_planner,node_execution,node_verification,node_safety toneAmber
class node_llm,node_stt,node_tts toneMint
class node_memory_manager,node_conversation,node_context,node_learning toneRose
class node_skills,node_mcp,node_telegram,node_providers toneIndigo
```

## Components

### Desktop experience

- [Desktop app](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/Main.py): `VoiceCommand/Main.py`
- [Audio input](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/audio/audio_manager.py): `VoiceCommand/audio/audio_manager.py`
- [Voice runtime](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/core/VoiceCommand.py): `VoiceCommand/core/VoiceCommand.py`
- [Character UI](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/ui/character_widget.py): `VoiceCommand/ui/character_widget.py`

### Commands and agent

- [Command handling](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/commands/ai_command.py): `VoiceCommand/commands/ai_command.py`
- [Fast commands](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/commands/ai_fast_path.py): `VoiceCommand/commands/ai_fast_path.py`
- [Agent orchestration](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/agent_orchestrator.py): `VoiceCommand/agent/agent_orchestrator.py`
- [Task planning](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/agent_planner.py): `VoiceCommand/agent/agent_planner.py`
- [Task execution](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/execution_engine.py): `VoiceCommand/agent/execution_engine.py`
- [Result verification](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/verification_engine.py): `VoiceCommand/agent/verification_engine.py`
- [Execution safety](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/safety_checker.py): `VoiceCommand/agent/safety_checker.py`

### Models and speech

- [LLM providers](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/llm_provider.py): `VoiceCommand/agent/llm_provider.py`
- [Speech recognition](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/core/stt_provider.py): `VoiceCommand/core/stt_provider.py`
- [Speech synthesis](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/tts/tts_factory.py): `VoiceCommand/tts/tts_factory.py`

### Memory and learning

- [Memory manager](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/memory/memory_manager.py): `VoiceCommand/memory/memory_manager.py`
- [Conversation history](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/memory/conversation_history.py): `VoiceCommand/memory/conversation_history.py`
- [User context](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/memory/user_context.py): `VoiceCommand/memory/user_context.py`
- [Agent learning](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/learning_engine.py): `VoiceCommand/agent/learning_engine.py`

### Extensions and integrations

- [Skills and plugins](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/skill_manager.py): `VoiceCommand/agent/skill_manager.py`
- [MCP servers](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/agent/mcp_client.py): `VoiceCommand/agent/mcp_client.py`
- [Telegram bridge](https://github.com/do0og/ari-voicecommand/blob/main/VoiceCommand/services/telegram_bridge.py): `VoiceCommand/services/telegram_bridge.py`

### Other components

- **User**
- **External providers**

## Connections

- User → Desktop app: activates (evidence: `README.md`)
- Desktop app → Voice runtime: starts (evidence: `VoiceCommand/Main.py`)
- User → Audio input: speaks (evidence: `README.md`)
- Audio input → Voice runtime: captures speech (evidence: `VoiceCommand/core/VoiceCommand.py`)
- User → Character UI: clicks (evidence: `README.md`)
- Voice runtime → Command handling: dispatches (evidence: `VoiceCommand/core/VoiceCommand.py`)
- Command handling → Fast commands: checks locally (evidence: `VoiceCommand/commands/ai_command.py`)
- Command handling → Agent orchestration: delegates tasks (evidence: `VoiceCommand/commands/ai_command.py`)
- Agent orchestration → Task planning: plans (evidence: `VoiceCommand/agent/agent_orchestrator.py`)
- Agent orchestration → Task execution: executes (evidence: `VoiceCommand/agent/agent_orchestrator.py`)
- Task execution → Result verification: checks results (evidence: `VoiceCommand/agent/execution_engine.py`)
- Task execution → Execution safety: checks actions (evidence: `VoiceCommand/agent/execution_engine.py`)
- Agent orchestration → LLM providers: requests model
- Voice runtime → Speech recognition: recognizes speech (evidence: `README.md`)
- Voice runtime → Speech synthesis: speaks response (evidence: `VoiceCommand/core/VoiceCommand.py`)
- Speech synthesis → External providers: uses speech engines (evidence: `README.md`)
- LLM providers → External providers: uses model providers (evidence: `README.md`)
- Memory manager → Conversation history: indexes conversation (evidence: `VoiceCommand/memory/memory_manager.py`)
- Memory manager → User context: updates context (evidence: `VoiceCommand/memory/memory_manager.py`)
- Command handling → Memory manager: handles memory requests (evidence: `VoiceCommand/commands/ai_command.py`)
- Agent orchestration → Agent learning: records outcomes (evidence: `VoiceCommand/agent/agent_orchestrator.py`)
- Agent orchestration → Skills and plugins: uses skills
- Agent orchestration → MCP servers: uses MCP tools
- Telegram bridge → Command handling: forwards commands
- External providers → Telegram bridge: receives remote requests
