How fatihaybsn/avalon works
Avalon is a Windows personal assistant built around the OpenClaw Gateway: users chat or start work in the desktop UI; the desktop sends requests through the authenticated Gateway, where the JARVIS plugin applies task and tool policies, records work, and can dispatch explicitly selected Codex or OpenCode workers. Other documented capabilities include voice, memory and Dreaming, scheduled work, controlled Windows GUI actions, quick operations, and native document reading. Several plugin subsystems are represented by their exact directory because their implementation files were not sampled; those branches reflect README capabilities, not inspected internal call paths.
Main entry points: index.ts JARVIS plugin · gateway.ts Gateway client · voice-host.ts Voice host · main.ts Desktop host
Components 28
Desktop experience
- Desktop UI
apps/desktop/src/renderer/app.ts - Desktop host
apps/desktop/src/main/main.ts - Chat controller
apps/desktop/src/main/controller.ts - UI contracts
apps/desktop/src/shared/contracts.ts
Gateway and plugin
- Gateway client
apps/desktop/src/main/gateway.ts - Connection profile
apps/desktop/src/main/profile.ts - Device vault
apps/desktop/src/main/vault.ts - JARVIS plugin
plugins/jarvis/index.ts - Tool policy
plugins/jarvis/policy.ts
Task execution
- Work ledger
plugins/jarvis/work.ts - Worker contract
plugins/jarvis/worker-contract.ts - Worker dispatch
plugins/jarvis/workers.ts - Codex worker
plugins/jarvis/codex.ts - OpenCode worker
plugins/jarvis/opencode.ts
Local capabilities
- Memory and notes
plugins/jarvis/notes.ts - Dreaming
plugins/jarvis/dreaming.ts - Automation
plugins/jarvis/automations.ts - Quick Windows actions
plugins/jarvis/quick.ts - GUI policy
plugins/jarvis/gui-policy.ts - Windows operations
native/windows/Windows.cs - Document readers
native/windows/document.py
Voice
- Voice host
apps/desktop/src/main/voice-host.ts - Voice decisions
apps/desktop/src/main/voice-policy.ts - Voice media
apps/desktop/src/renderer/voice-media.ts
Other components
- User
- Gemini Live
- OpenClaw Gateway
- Tavily research
Connections 34
- User → Desktop UI: uses
- Desktop UI → Desktop host: submits actions
- Desktop host → Gateway client: starts and routes
apps/desktop/src/main/main.ts - Desktop host → Chat controller: initializes
apps/desktop/src/main/main.ts - Desktop UI → UI contracts: uses types
apps/desktop/src/renderer/app.ts - Chat controller → Gateway client: sends RPC
apps/desktop/src/main/controller.ts - Chat controller → UI contracts: projects state
apps/desktop/src/main/controller.ts - Gateway client → Connection profile: loads settings
apps/desktop/src/main/gateway.ts - Gateway client → Device vault: loads identity
apps/desktop/src/main/gateway.ts - Gateway client → OpenClaw Gateway: connects
- OpenClaw Gateway → JARVIS plugin: hosts plugin
- JARVIS plugin → Tool policy: applies policy
plugins/jarvis/index.ts - Tool policy → Memory and notes: admits note tools
plugins/jarvis/policy.ts - Tool policy → Quick Windows actions: checks quick actions
plugins/jarvis/policy.ts - Tool policy → GUI policy: checks GUI tools
plugins/jarvis/policy.ts - JARVIS plugin → Work ledger: registers work
plugins/jarvis/index.ts - Worker dispatch → Worker contract: validates selection
plugins/jarvis/workers.ts - Worker dispatch → Codex worker: dispatches Codex
plugins/jarvis/workers.ts - Worker dispatch → OpenCode worker: dispatches OpenCode
plugins/jarvis/workers.ts - Codex worker → Worker contract: uses contract
plugins/jarvis/codex.ts - OpenCode worker → Worker contract: uses contract
plugins/jarvis/opencode.ts - JARVIS plugin → Worker dispatch: registers workers
plugins/jarvis/index.ts - JARVIS plugin → Dreaming: admits Dreaming
plugins/jarvis/index.ts - JARVIS plugin → Automation: supports automation
plugins/jarvis/index.ts - Quick Windows actions → Windows operations: invokes operations
- GUI policy → Windows operations: guards GUI access
- JARVIS plugin → Document readers: offers reading
- JARVIS plugin → Tavily research: requests research
- Desktop host → Voice host: initializes voice
apps/desktop/src/main/main.ts - Voice host → Voice decisions: checks decisions
apps/desktop/src/main/voice-host.ts - Voice host → Gateway client: uses Gateway RPC
apps/desktop/src/main/voice-host.ts - Voice media → Voice host: exchanges voice
- Voice host → Gemini Live: connects Live
- JARVIS plugin → Work ledger: records task state
plugins/jarvis/work.ts