How caiqueescaler86/secondbrain works
SecondBrain is a local productivity assistant that connects PowerShell workflows to authenticated Copilot and Joule desktops, captures WhatsApp history for local LLM analysis, and presents tasks in a cockpit. Its voice listener turns microphone input into structured tasks. The main flows are documented in the README and sampled source; the backend serving the cockpit APIs is not present in the tree, so it is shown as an external service. Meeting-related scripts are visible in the tree, but their behavior and connections are not established by the available evidence.
Main entry points: voice_listen.py Voice listener · whatsapp-collector.ps1 Chat collector · app.js Cockpit dashboard · analyze-whatsapp.ps1 Conversation analysis
Components 18
Desktop adapters
- Copilot adapter
copilot-terminal.ps1 - Joule adapter
joule-terminal.ps1 - Copilot CDP
- Joule CDP
- Copilot desktop
- Joule desktop
WhatsApp workflow
- Chat collector
whatsapp-collector.ps1 - Firefox / WhatsApp Web
- Message and sync files
- Conversation analysis
analyze-whatsapp.ps1
Task cockpit
- Cockpit dashboard
cockpit/app.js - Task API
Voice capture
- Voice listener
voice/voice_listen.py - Local Whisper
- Wake-word detection
voice/models/hey_secondbrain.onnx
Other components
- User
- Local llama.cpp
- Microphone
Connections 21
- User → Copilot adapter: asks
README.md - Copilot adapter → Copilot CDP: controls via
README.md - Copilot CDP → Copilot desktop: drives renderer
README.md - User → Joule adapter: asks
README.md - Joule adapter → Joule CDP: uses
README.md - Joule CDP → Joule desktop: connects to
- User → Chat collector: starts sync
README.md - Chat collector → Firefox / WhatsApp Web: collects chats
README.md - Chat collector → Message and sync files: writes messages and state
README.md - Conversation analysis → Message and sync files: reads messages
README.md - Conversation analysis → Local llama.cpp: requests analysis
README.md - User → Conversation analysis: asks analysis
README.md - User → Cockpit dashboard: uses
cockpit/app.js - Cockpit dashboard → Task API: loads and updates tasks
cockpit/app.js - Cockpit dashboard → Local llama.cpp: requests local answers
cockpit/app.js - User → Voice listener: triggers capture
voice/voice_listen.py - Microphone → Voice listener: provides audio
voice/voice_listen.py - Voice listener → Local Whisper: transcribes audio
voice/voice_listen.py - Voice listener → Local llama.cpp: extracts task fields
voice/voice_listen.py - Voice listener → Task API: creates task
voice/voice_listen.py - Voice listener → Wake-word detection: loads model
voice/voice_listen.py