AhmadHassan-BTed/B
Event-driven desktop companion for screen-aware voice assistance
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
B is a Python desktop process assembled by main.py, which creates the subsystems, starts the Qt tick timer and registers global hotkeys. core/bus.py is the central asynchronous publish/subscribe boundary built on PyQt6 signals. A focus-change event initiates context extraction; the cognitive engine consumes context_updated, and the output modules react to events such as b_spoke and b_move_request. Speech, the face renderer and the chat bubble can thus consume a shared event without calling one another directly.
The inference engine manages context, history and token streaming, while the state machine buffers streamed output into sentences for speech. A separate autonomy engine schedules proactive turns based on context quality and timing. The practical integration point is the in-process event contract: a component can be added at application startup without wiring it directly to every consumer, but event names, payloads and delivery timing must stay compatible. No external plugin protocol is established.
Key Capabilities & Differentiators
WindowTracker detects changes to the active window. The semantic sensor walks the Windows UIAutomation tree and scores the extraction; when extraction fails or is in cooldown, the fallback captures the screen with MSS and runs Tesseract OCR. The cognitive engine can use the Groq API or a local GGUF model through llama-cpp. Work Mode takes a user-defined goal and uses the current desktop context to decide whether to offer a suggestion or stay silent.
Input is typed or transcribed by Faster-Whisper with voice activity detection. Responses can be voiced through Piper ONNX with Pedalboard effects, shown in chat bubbles and accompanied by changes to the face or overlay position. PyQt6 animations use easing and Bézier interpolation, and the app targets a 60 fps desktop tick, roughly 16 ms per interval. That target concerns UI updates, not the latency of OCR, transcription or LLM inference.
Trade-offs & Limitations
Compared with a prompt-driven chat client, B reduces the need to copy context manually, but continuously observing the active window creates a broader privacy boundary. UIAutomation can provide structured context where applications expose usable trees; OCR extends coverage but returns text rather than an equivalent control hierarchy. Compared with a desktop automation agent, B is better understood as an observer and adviser: the documented actions are suggestions, speech and movement of its own overlay, not execution of tasks in other applications.
Local inference removes the need to send LLM requests to Groq but adds model provisioning and resource contention with transcription and the interactive UI. Cloud inference shifts the LLM compute off the desktop but introduces network dependency and requires checking what captured context enters requests. The click-through overlay relies on a global quit shortcut rather than a standard close button. The MIT repository license is permissive; model, voice-asset and API terms need separate review.
Hardware & Deployment Guide
Windows 10/11 is the primary target: pywin32, UIAutomation and Win32 hotkeys support core desktop functions. Linux and macOS are experimental, and a Python virtual environment does not resolve the Windows-specific integrations. The source-based setup is to create a virtual environment, install requirements.txt, configure .env and run python main.py. Verify MSS availability and the Tesseract installation if OCR fallback matters; neither is listed in the supplied Python manifest.
The Groq route needs an API key and network access. The local route needs a separately provisioned GGUF model; check the Piper voice and Faster-Whisper model assets before planning an offline launch. The stated sizing target is a quad-core Intel i5 or equivalent and 16 GB of RAM, with a 4 GB+ local model; that last figure is not a VRAM requirement. No container deployment or tagged release is shown, so pin and validate a source revision and its dependencies for repeatable installs.
Windows users and prototypers who want a self-hosted desktop companion that reads active-window context, takes voice input and occasionally offers advice, with a choice of local or cloud LLM inference.
You need production-grade macOS or Linux support, proven offline operation out of the box, or an agent that executes tasks across applications.
Quick Start & Installation
git clone https://github.com/Ahmad-Hassan-0/B---desktop-companion.git cd B---desktop-companion
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| B ★ | 5.2k | +2 | Python | MIT | Event-driven desktop companion for screen-aware voice assistance |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| daily_stock_analysis | 75.9k | +896 | Python | MIT | A Python Agent workbench for multi-market watchlist research and scheduled repor |
| dify | 162.4k | +370 | Python | — | Visual workflow and RAG workspace for building and serving LLM apps |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/AhmadHassan-BTed/B.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about B
How would I add a sensor or another output?
What hardware should I plan for, and is there a minimum VRAM figure?
Can my company deploy B internally or redistribute it?
When should I choose B over a chat client or an automation agent?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy