Skip to content
MarwanQuTech
All projects

Client project

MAG — A Windows Desktop Assistant That Understands Arabic

A Windows app shaped like a small stick-man character that lives on your desktop and takes commands by text, voice or hand gestures: open apps and files, summarize code and errors, score articles for SEO, run focus timers, and track your work time automatically through a second character, TIK. Built with Python and PySide6, lightweight, and local-first.

Live versionSource codePublished
MAG — A Windows Desktop Assistant That Understands Arabic

The idea

Most desktop assistants are either heavy or don't understand Arabic and its dialects. MAG is a small, lightweight assistant that sits on your desktop, understands commands in Arabic and English, and handles everyday tasks without pulling you out of your flow.

What it does

  • Opens apps, files and websites by name, including English app names typed in Arabic letters.
  • Code and text review: summarizes code and error messages and points to the problem and the fix.
  • SEO article scoring in Arabic and English, with a checklist of what's missing.
  • Focus tools: Pomodoro, timers, water and eye-break reminders.
  • Notes and tasks stored locally on your machine.
  • TIK: a second character that tracks your time automatically by app and project, with a daily report and Excel export.
  • Voice commands and hand gestures through the camera (optional).
  • System status: CPU, memory and GPU, plus optional start with Windows.

How it's built

Stack

  • Python 3.12 and PySide6 (Qt): frameless translucent windows, with the character drawn entirely in code (no image assets).
  • Spring-damper animation engine for smooth motion, with an adaptive frame rate: high while moving, low when idle.
  • MediaPipe for hand-gesture and face detection.
  • Command understanding: a rule-based Arabic parser (whole-word regex matching) covered by 169 test cases, plus an optional AI layer (Groq, Gemini, Ollama, or any OpenAI-compatible service) for free-form phrasing.
  • Packaging: PyInstaller and Inno Setup, with releases built automatically by GitHub Actions.

Design decisions

  • Privacy first: notes and settings stay local, camera and microphone are off by default, and there is no keylogging.
  • Safe command handling: whole-word matching and sentence-length limits, so a misheard phrase doesn't trigger something like stopping all timers.
  • Lightweight: TIK stops working when hidden, and heavy checks are cached.

Challenges

  • Understanding Arabic dialect phrasing without depending fully on an AI model.
  • Recognizing English app names written in Arabic letters.
  • Balancing smooth animation against resource usage.
  • Note: the app is not code-signed, so Windows SmartScreen shows a warning on first run (More info → Run anyway).

Download

  • Windows 10 and 11 (64-bit), free.
  • Download MAG-Setup from the releases page and run it. No Python and no admin rights needed.