How ashish7802/ultron works
ULTRON is a local-first AI desktop assistant combining a Next.js interface with an Electron shell and Python desktop/voice capabilities. The main user workflow enters through the chat route, which evaluates and dispatches conversation, memory, system-control, local-model, and research requests; other UI/API branches expose memory, voice, screen awareness, and security features. Internal layers include cognitive reasoning, memory, research, screen intelligence, and permission controls. The graph follows README-described architecture and supplied source-index references; where implementation excerpts do not establish a connection, it omits the edge.
Main entry points: route.ts Chat API · memoryManager.ts Memory Manager · contextDeliveryEngine.ts Screen Intelligence · UltronWorkspace.tsx Assistant UI
Components 25
UI and Runtime
- Assistant UI
components/UltronWorkspace.tsx - Chat API
app/api/chat/route.ts - Electron Shell
electron/main.js
Assistant Workflow
- Response Decision
lib/responseDecisionEngine.ts - Cognitive Engines
lib/cognitive - Local Model Client
lib/cognitive/localModelClient.ts
Desktop and Awareness
- System Control
lib/systemController.ts - Computer Tools
lib/computer/toolRegistry.ts - Python Bridge
lib/computer/pythonBridge.ts - Voice Runtime
ultron_engine/server.py - Screen Intelligence
lib/screen/contextDeliveryEngine.ts - Vision Control
lib/screen/visionControl.ts - Temporal Screen
lib/screen/temporalScreenIntelligence.ts
Memory and Research
- Memory Manager
lib/memoryManager.ts - Memory Coordinator
lib/memory/memoryCoordinator.ts - Memory Vault
ultron_memory_vault.json - Research API
app/api/research/route.ts - Research Orchestrator
lib/research/orchestrator.ts - Research Repository
lib/research/repository.ts
Security and Privacy
- Permission Gateway
lib/permissionGateway.ts - Permission Engine
lib/security/permissionEngine.ts - App Path Service
lib/security/appPathService.ts - Screen Privacy
lib/screenPrivacyController.ts
Other components
- User
- Local Python Services
Connections 24
- User → Assistant UI: uses
README.md - Assistant UI → Chat API: sends requests
README.md - Chat API → Response Decision: evaluates utterance
app/api/chat/route.ts - Chat API → Cognitive Engines: uses reasoning
app/api/chat/route.ts - Chat API → Local Model Client: invokes model
app/api/chat/route.ts - Chat API → Memory Manager: handles memory
app/api/chat/route.ts - Chat API → System Control: dispatches control
app/api/chat/route.ts - Chat API → Research API: runs research
app/api/chat/route.ts - Research API → Research Orchestrator: invokes workflow
app/api/research/route.ts - Memory Manager → Memory Coordinator: coordinates
lib/memoryManager.ts - Memory Manager → Memory Vault: persists memory
lib/memoryManager.ts - Memory Manager → App Path Service: resolves storage
lib/memoryManager.ts - Research Orchestrator → Research Repository: uses repository
- Chat API → Permission Gateway: checks access
app/api/chat/route.ts - Permission Gateway → Permission Engine: enforces approvals
- System Control → Computer Tools: requests desktop actions
- Computer Tools → Python Bridge: bridges runtime
- Python Bridge → Local Python Services: calls local runtime
- Assistant UI → Electron Shell: runs inside
README.md - Chat API → Voice Runtime: connects voice APIs
README.md - Screen Intelligence → Screen Privacy: checks capture policy
lib/screen/contextDeliveryEngine.ts - Screen Intelligence → Vision Control: uses vision control
lib/screen/contextDeliveryEngine.ts - Screen Intelligence → Temporal Screen: uses temporal analysis
lib/screen/contextDeliveryEngine.ts - Electron Shell → Local Python Services: starts local services
README.md