# subhashishbudati9976-creator/tricity_centle_aithon_aircontrol architecture

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

- Interactive diagram: https://gitdiagram.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol
- Repository: https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol

## Overview

AirControl is a touch-free desktop interaction system: camera-based hand tracking and spoken commands feed a headless engine, which controls desktop actions and publishes telemetry to desktop or web dashboards. The graph preserves gesture shortcuts, voice parsing and safe action routing, optional Gemini assistance, calibration, and browser speech. Relationships are limited to the excerpts, SOURCE INDEX references, and README; some internal worker wiring and unsampled web-server details are documented rather than inspected in source.

Main entry points: [`core/command_router.py`](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/core/command_router.py) (Command Router), [`frontend/src/App.tsx`](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/App.tsx) (Web Dashboard), [`backend/engine.py`](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/backend/engine.py) (Control Engine), [`voice/voice_controller.py`](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/voice_controller.py) (Voice Recognition)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_vision["Vision Control"]
  node_engine["Control Engine<br/>[engine.py]"]
  node_gesture_process["Gesture Processing"]
  node_gesture_detect["Gesture Shortcuts"]
end

subgraph group_voice["Voice Commands"]
  node_voice_controller["Voice Recognition"]
  node_parser["Command Parser<br/>[command_parser.py]"]
  node_router["Command Router<br/>[command_router.py]"]
  node_registry["Action Registry<br/>[action_registry.py]"]
  node_gemini["Gemini Assistant"]
  node_knowledge["Knowledge Base<br/>[knowledge_base.py]"]
end

subgraph group_actions["Desktop Actions"]
  node_launcher["App Launcher"]
  node_browser["Browser Actions<br/>[browser_actions.py]"]
  node_files["File Actions<br/>[file_actions.py]"]
  node_system["System Actions<br/>[system_actions.py]"]
  node_windows["Window Actions<br/>[window_actions.py]"]
end

subgraph group_presentation["Dashboards"]
  node_desktop_ui["Desktop Dashboard<br/>[dashboard.py]"]
  node_web_server["Web Server<br/>[web_server.py]"]
  node_web_app["Web Dashboard<br/>[App.tsx]"]
  node_socket_hook["Live Socket"]
  node_webcam_card["Webcam Controls<br/>[WebcamCard.tsx]"]
  node_voice_card["Voice Controls<br/>[VoiceCard.tsx]"]
  node_audit_card["Audit Log<br/>[AuditLogCard.tsx]"]
  node_calib_card["Calibration<br/>[CalibCard.tsx]"]
  node_browser_speech["Spoken Answers"]
end

node_user(("User"))
node_webcam(("Webcam"))
node_microphone(("Microphone"))
node_desktop_os(("Desktop OS"))
node_browser_client(("Browser Client"))

node_user -->|"gestures"| node_webcam
node_user -->|"speaks"| node_microphone
node_webcam -->|"camera input"| node_engine
node_microphone -->|"audio input"| node_voice_controller
node_engine -->|"processes frames"| node_gesture_process
node_engine -->|"detects shortcuts"| node_gesture_detect
node_engine -->|"runs voice worker"| node_voice_controller
node_voice_controller -->|"submits commands"| node_router
node_router -->|"parses text"| node_parser
node_router -->|"validates actions"| node_registry
node_router -->|"plans requests"| node_gemini
node_gemini -.->|"uses knowledge"| node_knowledge
node_router -->|"dispatches"| node_launcher
node_router -->|"dispatches"| node_browser
node_router -->|"dispatches"| node_files
node_router -->|"dispatches"| node_system
node_router -->|"dispatches"| node_windows
node_engine -->|"synthesizes input"| node_desktop_os
node_engine -->|"serves dashboard data"| node_web_server
node_web_server -->|"streams updates"| node_browser_client
node_browser_client -->|"renders"| node_web_app
node_web_app -->|"uses socket"| node_socket_hook
node_web_app -->|"renders"| node_webcam_card
node_web_app -->|"renders"| node_voice_card
node_web_app -->|"renders"| node_audit_card
node_web_app -->|"renders"| node_calib_card
node_web_app -->|"speaks answers"| node_browser_speech
node_desktop_ui -.->|"presents controls"| node_user
node_socket_hook -->|"sends actions"| node_web_server
node_browser_speech -->|"speaks aloud"| node_browser_client

click node_engine "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/backend/engine.py"
click node_gesture_process "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/vision/gesture_processor.py"
click node_gesture_detect "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/vision/hand_gesture_detector.py"
click node_voice_controller "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/voice_controller.py"
click node_parser "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/command_parser.py"
click node_router "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/core/command_router.py"
click node_registry "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/action_registry.py"
click node_gemini "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/gemini_interpreter.py"
click node_knowledge "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/knowledge_base.py"
click node_launcher "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/application_launcher.py"
click node_browser "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/browser_actions.py"
click node_files "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/file_actions.py"
click node_system "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/system_actions.py"
click node_windows "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/window_actions.py"
click node_desktop_ui "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/ui/dashboard.py"
click node_web_server "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/backend/web_server.py"
click node_web_app "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/App.tsx"
click node_socket_hook "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/hooks/useAirControlSocket.ts"
click node_webcam_card "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/components/WebcamCard.tsx"
click node_voice_card "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/components/VoiceCard.tsx"
click node_audit_card "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/components/AuditLogCard.tsx"
click node_calib_card "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/components/CalibCard.tsx"
click node_browser_speech "https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/hooks/useBrowserSpeech.ts"

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_engine,node_gesture_process,node_gesture_detect,node_user,node_browser_client toneBlue
class node_voice_controller,node_parser,node_router,node_registry,node_gemini,node_knowledge toneAmber
class node_launcher,node_browser,node_files,node_system,node_windows toneMint
class node_desktop_ui,node_web_server,node_web_app,node_socket_hook,node_webcam_card,node_voice_card,node_audit_card,node_calib_card,node_browser_speech toneRose
class node_webcam,node_microphone,node_desktop_os toneIndigo
```

## Components

### Vision Control

- [Control Engine](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/backend/engine.py): `backend/engine.py`
- [Gesture Processing](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/vision/gesture_processor.py): `vision/gesture_processor.py`
- [Gesture Shortcuts](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/vision/hand_gesture_detector.py): `vision/hand_gesture_detector.py`

### Voice Commands

- [Voice Recognition](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/voice_controller.py): `voice/voice_controller.py`
- [Command Parser](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/command_parser.py): `voice/command_parser.py`
- [Command Router](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/core/command_router.py): `core/command_router.py`
- [Action Registry](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/action_registry.py): `voice/action_registry.py`
- [Gemini Assistant](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/gemini_interpreter.py): `voice/gemini_interpreter.py`
- [Knowledge Base](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/voice/knowledge_base.py): `voice/knowledge_base.py`

### Desktop Actions

- [App Launcher](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/application_launcher.py): `actions/application_launcher.py`
- [Browser Actions](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/browser_actions.py): `actions/browser_actions.py`
- [File Actions](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/file_actions.py): `actions/file_actions.py`
- [System Actions](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/system_actions.py): `actions/system_actions.py`
- [Window Actions](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/actions/window_actions.py): `actions/window_actions.py`

### Dashboards

- [Desktop Dashboard](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/ui/dashboard.py): `ui/dashboard.py`
- [Web Server](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/backend/web_server.py): `backend/web_server.py`
- [Web Dashboard](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Live Socket](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/hooks/useAirControlSocket.ts): `frontend/src/hooks/useAirControlSocket.ts`
- [Webcam Controls](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/components/WebcamCard.tsx): `frontend/src/components/WebcamCard.tsx`
- [Voice Controls](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/components/VoiceCard.tsx): `frontend/src/components/VoiceCard.tsx`
- [Audit Log](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/components/AuditLogCard.tsx): `frontend/src/components/AuditLogCard.tsx`
- [Calibration](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/components/CalibCard.tsx): `frontend/src/components/CalibCard.tsx`
- [Spoken Answers](https://github.com/subhashishbudati9976-creator/tricity_centle_aithon_aircontrol/blob/Subbu/frontend/src/hooks/useBrowserSpeech.ts): `frontend/src/hooks/useBrowserSpeech.ts`

### Other components

- **User**
- **Webcam**
- **Microphone**
- **Desktop OS**
- **Browser Client**

## Connections

- User → Webcam: gestures
- User → Microphone: speaks
- Webcam → Control Engine: camera input
- Microphone → Voice Recognition: audio input
- Control Engine → Gesture Processing: processes frames (evidence: `backend/engine.py`)
- Control Engine → Gesture Shortcuts: detects shortcuts (evidence: `backend/engine.py`)
- Control Engine → Voice Recognition: runs voice worker (evidence: `backend/engine.py`)
- Voice Recognition → Command Router: submits commands
- Command Router → Command Parser: parses text (evidence: `core/command_router.py`)
- Command Router → Action Registry: validates actions (evidence: `core/command_router.py`)
- Command Router → Gemini Assistant: plans requests (evidence: `core/command_router.py`)
- Gemini Assistant → Knowledge Base: uses knowledge
- Command Router → App Launcher: dispatches (evidence: `core/command_router.py`)
- Command Router → Browser Actions: dispatches (evidence: `core/command_router.py`)
- Command Router → File Actions: dispatches (evidence: `core/command_router.py`)
- Command Router → System Actions: dispatches (evidence: `core/command_router.py`)
- Command Router → Window Actions: dispatches (evidence: `core/command_router.py`)
- Control Engine → Desktop OS: synthesizes input
- Control Engine → Web Server: serves dashboard data
- Web Server → Browser Client: streams updates
- Browser Client → Web Dashboard: renders
- Web Dashboard → Live Socket: uses socket (evidence: `frontend/src/App.tsx`)
- Web Dashboard → Webcam Controls: renders (evidence: `frontend/src/App.tsx`)
- Web Dashboard → Voice Controls: renders (evidence: `frontend/src/App.tsx`)
- Web Dashboard → Audit Log: renders (evidence: `frontend/src/App.tsx`)
- Web Dashboard → Calibration: renders (evidence: `frontend/src/App.tsx`)
- Web Dashboard → Spoken Answers: speaks answers (evidence: `frontend/src/App.tsx`)
- Desktop Dashboard → User: presents controls
- Live Socket → Web Server: sends actions
- Spoken Answers → Browser Client: speaks aloud
