How jeanbrito-dev/mascot_assistent works
Mascote Assistente Local is a Windows desktop assistant: a user enters a Portuguese command in the mascot UI, deterministic rules interpret it, and the assistant replies or performs a guarded local action; notes and tasks persist in JSON. The tree also contains two substantial Node.js assistant backends: a Socket.IO command server and a modular API/assistant implementation. Those are represented as separate runtime branches rather than treated as part of the README’s Python-only launch workflow. Connections reflect excerpts, indexed references, or README statements; unsampled behavior is not inferred.
Main entry points: api/index.js HTTP and socket API · ui.py Mascot UI · router.py Command router · assistant/index.js Assistant orchestration
Components 25
Python desktop assistant
- Mascot UI
mascot/ui.py - Command router
mascot/router.py - Command knowledge
mascot/knowledge.py - Safe actions
mascot/actions.py - Local storage
mascot/storage.py - Speech output
mascot/tts.py - Assistant data
Socket command server
- Socket command server
server.js - Command handlers
server/commands - Web persistence
server/persistence.js - Web assistant data
Modular assistant backend
- HTTP and socket API
src/api/index.js - Assistant orchestration
src/core/assistant/index.js - Fast intent router
src/core/assistant/fastIntentRouter.js - Session context
src/core/context/session.js - Proactive engine
src/core/assistant/proactive.js - Local indexer
src/core/indexer/index.js - Assistant persistence
src/core/memory/persistence.js - Assistant tools
src/core/tools - Event bus
src/core/eventBus/index.js
Local integrations
- Windows system
- Projects and downloads
Other components
- Desktop user
- Web client
- API client
Connections 28
- Desktop user → Mascot UI: enters commands
- Mascot UI → Command router: routes input
mascot/ui.py - Command router → Safe actions: executes actions
mascot/router.py - Command router → Local storage: reads and writes
mascot/router.py - Command router → Command knowledge: consults rules
mascot/router.py - Mascot UI → Local storage: uses settings
mascot/ui.py - Mascot UI → Speech output: uses speech
mascot/ui.py - Local storage → Assistant data: persists JSON
mascot/storage.py - Safe actions → Windows system: controls system
- Web client → Socket command server: sends commands
server.js - Socket command server → Command handlers: dispatches handlers
server.js - Socket command server → Web persistence: routes API data
server.js - Command handlers → Web persistence: uses stored data
server/commands/productivity.js - Web persistence → Web assistant data: reads and writes
server/persistence.js - API client → HTTP and socket API: uses endpoints
src/api/index.js - HTTP and socket API → Assistant orchestration: routes requests
src/api/index.js - HTTP and socket API → Assistant persistence: reads and updates
src/api/index.js - HTTP and socket API → Local indexer: starts indexing
src/api/index.js - HTTP and socket API → Session context: reads session
src/api/index.js - HTTP and socket API → Proactive engine: starts engine
src/api/index.js - Assistant orchestration → Fast intent router: checks intents
src/core/assistant/index.js - Assistant orchestration → Session context: uses context
src/core/assistant/index.js - Assistant orchestration → Assistant tools: dispatches tools
src/core/assistant/index.js - Session context → Event bus: emits updates
src/core/context/session.js - Proactive engine → Event bus: uses events
src/core/assistant/proactive.js - Proactive engine → Assistant persistence: uses persistence
src/core/assistant/proactive.js - Local indexer → Assistant persistence: reads configuration
src/core/indexer/index.js - Local indexer → Projects and downloads: scans files
src/core/indexer/index.js