How swarnabh31/bozo-thewatchdog works
BoZo is a local-first desktop companion that monitors the screen and machine, decides whether help is timely, then offers a short tip or responds to a user request. The README documents the main workflow from screen capture through OCR and a fast gate to vision-model advice, plus chat, resource status, feedback, tray controls, memory, draft checking, and proactive offers. Most components live in app.py; memory_store.py implements inspectable SQLite persistence. Relationships use README-documented behavior or the shown app.py-to-memory_store.py reference; unsampled implementation details are not inferred.
Main entry points: app.py Vision Advice · memory_store.py Memory Store
Components 19
Screen and System
- Screen Capture
app.py - OCR and Errors
app.py - Resource Monitor
app.py
Decision and Context
- Timing Gate
app.py - Interrupt Policy
app.py - Activity Context
app.py
AI Assistance
- Vision Advice
app.py - Chat Assistant
app.py - Draft Check
app.py - Proactive Offers
app.py
Desktop Experience
- Tray Controls
app.py - Chat Window
app.py - Whisper Toasts
app.py - Live Resource Bar
app.py - Memory Manager
app.py
Local Memory
- Memory Store
memory_store.py
Other components
- User
- Desktop Screen
- Ollama
Connections 30
- Desktop Screen → Screen Capture: captures
README.md - Screen Capture → OCR and Errors: reads text
README.md - OCR and Errors → Timing Gate: supplies OCR
README.md - OCR and Errors → Interrupt Policy: flags errors
README.md - Screen Capture → Interrupt Policy: tracks changes
README.md - Resource Monitor → Live Resource Bar: updates status
README.md - Resource Monitor → Activity Context: supplies stats
README.md - Timing Gate → Interrupt Policy: scores timing
README.md - Ollama → Timing Gate: runs classifier
README.md - Activity Context → Vision Advice: provides context
README.md - Screen Capture → Vision Advice: provides screenshot
README.md - Interrupt Policy → Vision Advice: requests advice
README.md - Ollama → Vision Advice: generates advice
README.md - Vision Advice → Whisper Toasts: shows tip
README.md - Vision Advice → Chat Window: logs tip
README.md - User → Tray Controls: controls
README.md - Tray Controls → Interrupt Policy: triggers Look now
README.md - User → Chat Window: asks
README.md - Chat Window → Chat Assistant: submits message
README.md - Chat Assistant → Ollama: requests response
README.md - User → Draft Check: checks draft
README.md - Draft Check → Ollama: scores draft
README.md - Activity Context → Proactive Offers: informs offers
README.md - Proactive Offers → Chat Window: presents offer
README.md - User → Whisper Toasts: gives feedback
README.md - Whisper Toasts → Interrupt Policy: adjusts threshold
README.md - Chat Window → Memory Store: records chat
app.py - Vision Advice → Memory Store: records tip
app.py - Memory Manager → Memory Store: manages records
app.py - Memory Store → Activity Context: recalls context
app.py