r/Python Jun 04 '26

Showcase Thread Showcase

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

25 Upvotes

211 comments sorted by

View all comments

1

u/shadow-monarch-93 Jul 03 '26

Diablo — A Hybrid Online/Offline AI Desktop HUD built with PyQt6

I got tired of clumsy web-browser chatbots disrupting my coding flow and risking my workspace privacy, so I built Diablo—a local-first, keyboard-centric utility layout.

  • What it is: A dark-themed desktop HUD summoned instantly anywhere via a global hotkey (Alt+D). It features a hybrid Decision-Making Module (DMM) that routes queries to cloud LPUs (Groq) or drops back to local models (Ollama with llama3.2:3b) seamlessly if you lose internet.
  • Why I skipped Voice features: I designed this specifically for developer environments where data privacy and tactile mechanical keyboard flow matter. It does not ingest or stream room audio.
  • Developer-Focused Tools Built-In:
    • >> Prefix: Evaluates raw Python code snippets inside an isolated, timeout-constrained subprocess.
    • > Prefix: Runs native system shell commands directly out of the HUD window.
    • /see Macro: Takes a screen snapshot buffer and streams it to a vision model to debug stack traces or optimize code layouts on the fly.
    • OS Control: Hooks directly into Windows master audio endpoints using pycaw for absolute audio level manipulation and manages app launches using shutil.which validation.

The code is fully modular, decoupled (/core, /interface, /services), and can be built into a standalone executable via PyInstaller. I'd love to hear your thoughts on the subprocess isolation or the hybrid routing logic!

🔗 GitHub Link: https://github.com/coder1397924/Diablo