← Back to Leaderboard
BAhmadHassan-BTed

AhmadHassan-BTed/B

Event-driven desktop companion for screen-aware voice assistance

View on GitHub ↗
Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
C · 42/100
Maintenance Activity
● Updated 5mo ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance12/35
Fork Adoption4/25
Release Cadence6/20
License Clarity20/20
Local AISelf-Hosted
Total Stars
★ 5,155
24h Growth
+1
7d Growth
+2
Forks
4

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

AhmadHassan-BTed/B Star History (2026-07-04 - 2026-12-03) ALL-TIME STAR HISTORY (2026-07 – 2026-12) +5.2k in 152d · avg +34/day 5.4k 2.7k 0 2026-07-04: ★ 12026-07-18: ★ 312026-08-01: ★ 492026-08-15: ★ 722026-08-29: ★ 992026-09-12: ★ 1152026-09-26: ★ 1642026-10-10: ★ 2752026-10-24: ★ 3,3152026-11-03: ★ 5,1142026-11-13: ★ 5,1392026-11-23: ★ 5,1532026-12-03: ★ 5,155 ★ 5.2k 07-04 09-18 12-03

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Event routing: core/bus.py uses Qt signals to connect perception, cognition, audio and rendering.
Screen context: WindowTracker reports focus changes; UIAutomation extracts structured content and MSS/Tesseract provides OCR fallback.
Inference: brain/llm.py supports Groq cloud inference or local GGUF inference through llama-cpp-python.
Voice pipeline: Faster-Whisper with voice activity detection handles input; Piper ONNX and Pedalboard handle synthesis and effects.
Overlay: PyQt6 drives facial expressions, chat bubbles and animated movement on a 60 fps tick target.
Operator controls: Global hotkeys toggle text input, microphone and Work Mode; Ctrl+Shift+Alt+Q is the quit shortcut.
Best For

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.

Skip If

You need production-grade macOS or Linux support, proven offline operation out of the box, or an agent that executes tasks across applications.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Local AISelf-Hosted
git clone https://github.com/Ahmad-Hassan-0/B---desktop-companion.git
   cd B---desktop-companion

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
B ★5.2k+2PythonMITEvent-driven desktop companion for screen-aware voice assistance
hermes-agent268.1k+1.5kPythonMITSelf-hosted Python agent with persistent memory and automation across chat and C
daily_stock_analysis75.9k+896PythonMITA Python Agent workbench for multi-market watchlist research and scheduled repor
dify162.4k+370Python—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.

Raw .md ↗
curl -sL https://repoforai.com/repo/AhmadHassan-BTed/B.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

AhmadHassan-BTed/B Star History on RepoForAI

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?

The integration point is the Python/Qt EventBus. A sensor can publish context_updated for the cognitive engine, while an output component can subscribe to events such as b_spoke. main.py wires the built-in modules together; no external plugin API or stable cross-process protocol is established.

What hardware should I plan for, and is there a minimum VRAM figure?

The stated target is a quad-core Intel i5 or equivalent and 16 GB of system RAM. The 4 GB+ figure refers to the local model, not a VRAM requirement. Test with your chosen GGUF model and microphone transcription enabled, since the LLM, Faster-Whisper and the desktop workload can compete for resources.

Can my company deploy B internally or redistribute it?

The repository is MIT-licensed, which permits commercial use subject to the license terms, including retaining the applicable notices on redistribution. Check the terms for the GGUF model, Piper voice assets and any cloud service separately. For a local-only policy, test the configured app with network access blocked and verify how it handles screen and microphone data.

When should I choose B over a chat client or an automation agent?

Use B when active-window context, voice and occasional unsolicited suggestions are the point. A conventional chat client is simpler when you want to choose exactly what context to share. If you need the assistant to click, type or complete work across applications, B's demonstrated loop provides suggestions and moves its own overlay rather than executing those tasks.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining AhmadHassan-BTed/B? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature AhmadHassan-BTed/B on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare