# toxicccccccc/hgeegres architecture

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

- Interactive diagram: https://gitdiagram.com/toxicccccccc/hgeegres
- Repository: https://github.com/toxicccccccc/hgeegres

## Overview

DisabledAssistance is an accessibility-focused competitive-game project whose implemented product is an AI assistance engine and its control panel; game modes and matchmaking remain in progress. The user configures profiles and assistance settings in the GUI, which persists shared settings and starts the native engine when available, falling back to Python. The runtime captures frames, detects and selects targets, computes corrections, and sends input to an Arduino HID bridge. Preview and telemetry make operation visible. The README documents these capabilities; several internal modules were not sampled, so their links are documented rather than source-verified.

Main entry points: [`native/src/engine.cpp`](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/engine.cpp) (Native engine), [`ui/disabled_ai/main_window.py`](https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/main_window.py) (Control GUI), [`native/src/engine_main.cpp`](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/engine_main.cpp) (Native launcher), [`ui/disabled_ai/config_manager.py`](https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/config_manager.py) (Settings store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Control panel"]
  node_gui["Control GUI<br/>[main_window.py]"]
  node_config["Settings store<br/>[config_manager.py]"]
  node_profiles["Assist profiles<br/>[profiles.py]"]
  node_profile_page["Profile editor<br/>[profiles_page.py]"]
  node_preview_ui["Floating preview<br/>[preview_window.py]"]
end

subgraph group_runtime["Assistance runtime"]
  node_native_entry["Native launcher<br/>[engine_main.cpp]"]
  node_native_engine["Native engine<br/>[engine.cpp]"]
  node_settings["Engine settings<br/>[settings.cpp]"]
  node_capture["Frame capture"]
  node_dxgi["DXGI capture<br/>[dxgi_capture.cpp]"]
  node_inference["TensorRT inference<br/>[tensorrt_yolo.cpp]"]
  node_targeting["Target tracking<br/>[targeting.cpp]"]
  node_movement["Movement correction<br/>[movement.hpp]"]
  node_sigma["SigmaDrift<br/>[sigma_drift.hpp]"]
  node_dataset["Data collection<br/>[dataset.cpp]"]
  node_telemetry["Telemetry<br/>[telemetry.cpp]"]
  node_preview["Preview stream<br/>[preview.hpp]"]
  node_python_engine["Python fallback"]
  node_python_sigma["Python SigmaDrift<br/>[sigma_drift.py]"]
end

subgraph group_device["Input bridge"]
  node_input["Input provider<br/>[input_provider.cpp]"]
  node_serial["Serial bridge<br/>[serial_bridge.cpp]"]
  node_arduino["Arduino HID<br/>[main.cpp]"]
end

subgraph group_models["Model management"]
  node_model_tools["Model conversion<br/>[model_converter.py]"]
  node_model_files["YOLO model"]
end

node_player(("Player"))
node_screen(("Desktop screen"))
node_mouse(("HID mouse"))

node_player -->|"configures"| node_gui
node_gui -->|"saves settings"| node_config
node_gui -->|"edits profiles"| node_profile_page
node_profile_page -->|"manages"| node_profiles
node_gui -->|"starts backend"| node_native_entry
node_gui -->|"fallbacks to"| node_python_engine
node_native_entry -->|"loads settings"| node_settings
node_native_entry -->|"runs"| node_native_engine
node_config -->|"shares settings"| node_native_engine
node_native_engine -->|"captures frames"| node_capture
node_native_engine -->|"selects backend"| node_dxgi
node_screen -->|"supplies frames"| node_capture
node_native_engine -->|"runs inference"| node_inference
node_model_files -->|"provides weights"| node_inference
node_native_engine -->|"tracks detections"| node_targeting
node_native_engine -->|"computes corrections"| node_movement
node_native_engine -->|"uses movement method"| node_sigma
node_native_engine -->|"starts collection"| node_dataset
node_native_engine -->|"emits metrics"| node_telemetry
node_native_engine -->|"streams preview"| node_preview
node_preview -->|"feeds image"| node_preview_ui
node_native_engine -->|"sends corrections"| node_input
node_input -->|"routes output"| node_serial
node_serial -->|"sends HID data"| node_arduino
node_arduino -->|"presents as"| node_mouse
node_python_engine -->|"uses movement method"| node_python_sigma
node_model_tools -->|"exports engine"| node_model_files

click node_gui "https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/main_window.py"
click node_config "https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/config_manager.py"
click node_profiles "https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/profiles.py"
click node_profile_page "https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/profiles_page.py"
click node_preview_ui "https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/preview_window.py"
click node_native_entry "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/engine_main.cpp"
click node_native_engine "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/engine.cpp"
click node_settings "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/settings.cpp"
click node_capture "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/capture_backend.cpp"
click node_dxgi "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/dxgi_capture.cpp"
click node_inference "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/tensorrt_yolo.cpp"
click node_targeting "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/targeting.cpp"
click node_movement "https://github.com/toxicccccccc/hgeegres/blob/main/native/include/aimassist/movement.hpp"
click node_sigma "https://github.com/toxicccccccc/hgeegres/blob/main/native/include/aimassist/sigma_drift.hpp"
click node_dataset "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/dataset.cpp"
click node_telemetry "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/telemetry.cpp"
click node_preview "https://github.com/toxicccccccc/hgeegres/blob/main/native/include/aimassist/preview.hpp"
click node_python_engine "https://github.com/toxicccccccc/hgeegres/blob/main/engine/disabledassistance.py"
click node_python_sigma "https://github.com/toxicccccccc/hgeegres/blob/main/engine/sigma_drift.py"
click node_model_tools "https://github.com/toxicccccccc/hgeegres/blob/main/app/model_converter.py"
click node_input "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/input_provider.cpp"
click node_serial "https://github.com/toxicccccccc/hgeegres/blob/main/native/src/serial_bridge.cpp"
click node_arduino "https://github.com/toxicccccccc/hgeegres/blob/main/firmware/mouse%20method/main.cpp"

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_gui,node_config,node_profiles,node_profile_page,node_preview_ui,node_screen toneBlue
class node_native_entry,node_native_engine,node_settings,node_capture,node_dxgi,node_inference,node_targeting,node_movement,node_sigma,node_dataset,node_telemetry,node_preview,node_python_engine,node_python_sigma toneAmber
class node_input,node_serial,node_arduino toneMint
class node_model_tools,node_model_files toneRose
class node_player,node_mouse toneIndigo
```

## Components

### Control panel

- [Control GUI](https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/main_window.py): `ui/disabled_ai/main_window.py`
- [Settings store](https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/config_manager.py): `ui/disabled_ai/config_manager.py`
- [Assist profiles](https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/profiles.py): `ui/disabled_ai/profiles.py`
- [Profile editor](https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/profiles_page.py): `ui/disabled_ai/profiles_page.py`
- [Floating preview](https://github.com/toxicccccccc/hgeegres/blob/main/ui/disabled_ai/preview_window.py): `ui/disabled_ai/preview_window.py`

### Assistance runtime

- [Native launcher](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/engine_main.cpp): `native/src/engine_main.cpp`
- [Native engine](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/engine.cpp): `native/src/engine.cpp`
- [Engine settings](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/settings.cpp): `native/src/settings.cpp`
- [Frame capture](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/capture_backend.cpp): `native/src/capture_backend.cpp`
- [DXGI capture](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/dxgi_capture.cpp): `native/src/dxgi_capture.cpp`
- [TensorRT inference](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/tensorrt_yolo.cpp): `native/src/tensorrt_yolo.cpp`
- [Target tracking](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/targeting.cpp): `native/src/targeting.cpp`
- [Movement correction](https://github.com/toxicccccccc/hgeegres/blob/main/native/include/aimassist/movement.hpp): `native/include/aimassist/movement.hpp`
- [SigmaDrift](https://github.com/toxicccccccc/hgeegres/blob/main/native/include/aimassist/sigma_drift.hpp): `native/include/aimassist/sigma_drift.hpp`
- [Data collection](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/dataset.cpp): `native/src/dataset.cpp`
- [Telemetry](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/telemetry.cpp): `native/src/telemetry.cpp`
- [Preview stream](https://github.com/toxicccccccc/hgeegres/blob/main/native/include/aimassist/preview.hpp): `native/include/aimassist/preview.hpp`
- [Python fallback](https://github.com/toxicccccccc/hgeegres/blob/main/engine/disabledassistance.py): `engine/disabledassistance.py`
- [Python SigmaDrift](https://github.com/toxicccccccc/hgeegres/blob/main/engine/sigma_drift.py): `engine/sigma_drift.py`

### Input bridge

- [Input provider](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/input_provider.cpp): `native/src/input_provider.cpp`
- [Serial bridge](https://github.com/toxicccccccc/hgeegres/blob/main/native/src/serial_bridge.cpp): `native/src/serial_bridge.cpp`
- [Arduino HID](https://github.com/toxicccccccc/hgeegres/blob/main/firmware/mouse%20method/main.cpp): `firmware/mouse method/main.cpp`

### Model management

- [Model conversion](https://github.com/toxicccccccc/hgeegres/blob/main/app/model_converter.py): `app/model_converter.py`
- **YOLO model**

### Other components

- **Player**
- **Desktop screen**
- **HID mouse**

## Connections

- Player → Control GUI: configures
- Control GUI → Settings store: saves settings (evidence: `ui/disabled_ai/config_manager.py`)
- Control GUI → Profile editor: edits profiles (evidence: `ui/disabled_ai/main_window.py`)
- Profile editor → Assist profiles: manages (evidence: `ui/disabled_ai/main_window.py`)
- Control GUI → Native launcher: starts backend
- Control GUI → Python fallback: fallbacks to (evidence: `ui/disabled_ai/main_window.py`)
- Native launcher → Engine settings: loads settings (evidence: `native/src/engine_main.cpp`)
- Native launcher → Native engine: runs (evidence: `native/src/engine_main.cpp`)
- Settings store → Native engine: shares settings
- Native engine → Frame capture: captures frames (evidence: `native/src/engine.cpp`)
- Native engine → DXGI capture: selects backend (evidence: `native/src/engine.cpp`)
- Desktop screen → Frame capture: supplies frames
- Native engine → TensorRT inference: runs inference
- YOLO model → TensorRT inference: provides weights
- Native engine → Target tracking: tracks detections
- Native engine → Movement correction: computes corrections
- Native engine → SigmaDrift: uses movement method (evidence: `native/src/engine.cpp`)
- Native engine → Data collection: starts collection (evidence: `native/src/engine.cpp`)
- Native engine → Telemetry: emits metrics (evidence: `native/src/engine.cpp`)
- Native engine → Preview stream: streams preview (evidence: `native/src/engine.cpp`)
- Preview stream → Floating preview: feeds image
- Native engine → Input provider: sends corrections
- Input provider → Serial bridge: routes output
- Serial bridge → Arduino HID: sends HID data
- Arduino HID → HID mouse: presents as
- Python fallback → Python SigmaDrift: uses movement method (evidence: `engine/disabledassistance.py`)
- Model conversion → YOLO model: exports engine
