How ankitjha67/jarvis works
JARVIS is a personal desktop AI assistant: a user submits a voice or keyboard request through the HUD, the core routes it to an LLM or fast path, and registered tools can act on the computer under authorization policy. The repository also includes research, background tasks, persistent conversation/state, voice, scheduling, and settings capabilities. The UI-to-core gateway implementation was not sampled, so that connection is shown as unverified; other edges are limited to relationships visible in excerpts, the source index, or README.
Main entry points: orchestrator.py Request orchestrator · socket.ts WebSocket client · App.tsx HUD application · __init__.py OS abstraction
Components 24
HUD and setup
- HUD application
ui/src/App.tsx - Onboarding
ui/src/Onboarding.tsx - Settings
ui/src/Settings.tsx - WebSocket client
ui/src/socket.ts - HUD state
ui/src/store.ts
Assistant runtime
- Core gateway
src/jarvis/gateway.py - Request orchestrator
src/jarvis/orchestrator.py - Fast-path intents
src/jarvis/fast_path.py - Provider routing
src/jarvis/providers/router.py - Provider interface
src/jarvis/providers/base.py - Action authorization
src/jarvis/policy.py
Tools and services
- Tool registry
src/jarvis/tools/registry.py - Computer-control tools
src/jarvis/tools - Deep research
src/jarvis/deep_research.py - Research tools
src/jarvis/tools/research_tools.py - Background tasks
src/jarvis/background_tasks.py - Voice and wake
src/jarvis/wake.py - Schedules and routines
src/jarvis/scheduler.py
Platform and state
- Persistent state
src/jarvis/store.py - Configuration
src/jarvis/config.py - OS abstraction
src/jarvis/host/__init__.py - macOS host
src/jarvis/host/_macos.py - Windows host
src/jarvis/host/_windows.py
Other components
- User
Connections 15
- User → HUD application: submits requests
- HUD application → Onboarding: shows setup
ui/src/App.tsx - HUD application → WebSocket client: sends commands
ui/src/App.tsx - Settings → WebSocket client: sends settings
ui/src/Settings.tsx - WebSocket client → HUD state: applies messages
ui/src/socket.ts - WebSocket client → Core gateway: exchanges messages
- Request orchestrator → Provider routing: requests completions
src/jarvis/orchestrator.py - Request orchestrator → Fast-path intents: checks intents
src/jarvis/orchestrator.py - Request orchestrator → Persistent state: uses persistence
src/jarvis/orchestrator.py - Request orchestrator → Configuration: reads settings
src/jarvis/orchestrator.py - Provider routing → Provider interface: creates providers
src/jarvis/providers/router.py - Tool registry → Action authorization: uses risk tiers
src/jarvis/tools/registry.py - Research tools → Deep research: starts research
src/jarvis/tools/research_tools.py - OS abstraction → macOS host: selects platform
src/jarvis/host/__init__.py - OS abstraction → Windows host: selects platform
src/jarvis/host/__init__.py