Local AI desktop assistant that observes your active window, understands on-screen content, and provides instant contextual assistance using Electron, Python, OCR, and Ollama.
HTML
5
10 commits
updated Sep 30, 2026
The Anti-Recall: On-Demand, Zero-Surveillance, 100% Local Screen Intelligence.
Lens is a lightweight, privacy-first desktop overlay that understands whatever is visible on your screen without transmitting data to external servers.
When you encounter a compiler error, need complex code explained, or want a fast summary of documentation, press Alt + L. Lens captures the active application window in memory, runs inference locally using Ollama, and streams structured solutions directly over your workspace in real time.
Lens operates under three core principles:
| Feature | Lens | Windows Recall | Cloud AI (Copilot / ChatGPT) |
|---|---|---|---|
| Cloud Data Upload | None (100% Local) | Local storage | Yes (Transmits to cloud) |
| Continuous Recording | No (On-demand only) | Yes (Logs every few seconds) | No (Manual input) |
| Disk Footprint | Zero (RAM only) | Heavy (Multi-gigabyte database) | Negligible |
| Offline Operation | Full (No network needed) | Yes | No (Internet required) |
| Screen Context Chat | Interactive Multi-Turn | Search only | Manual screenshot attachment |
| Code and Error Fixes | 1-Click Copyable | No | Yes |
| Software License | Open Source (MIT) | Closed Source | Closed Source |
Alt + L): Analyzes the current active application window without stealing focus or switching contexts.Alt + Shift + S): Drag a rectangular bounding box across any screen region to isolate specific terminal logs, stack traces, or UI designs with automatic high-DPI scaling.qwen3-vl:8b, qwen2.5-vl, gemma-vl, and llama3.2-vision. Screen pixels are passed directly to Ollama without requiring optical character recognition software.llama3.2:3b are selected.Ctrl + Shift + P): Instantly pauses or resumes all screen capture capabilities.| Shortcut | Action |
|---|---|
Alt + L | Summon Lens on the active application window |
Alt + Shift + S | Activate Snip mode to select a screen area |
Ctrl + Shift + P | Toggle Privacy mode (Enable or disable capture daemon) |
Esc | Close or dismiss the HUD overlay |
Enter | Submit a follow-up query in the chat bar |
Clone the repository and run the automated setup script:
git clone https://github.com/RuSapkal69/Personal_AI_Assistant.git
cd Personal_AI_Assistant
# Pull your preferred vision model
ollama pull qwen3-vl:8b
# Run automated setup
setup.bat
# Launch Lens
run.bat
The run.bat launcher automatically verifies dependencies, starts the Ollama service if idle, launches the Python observer daemon, and opens the desktop HUD.
cd assistant-observer
python -m venv venv
# Windows:
venv\Scripts\activate
# macOS / Linux:
# source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
cd ../assistant-electron
npm install
cp .env.example .env
npm start
The Electron client automatically starts and manages the background Python observer daemon.
Lens uses a modular, three-tier local architecture:
+-----------------------------------------------------------+
| Electron Desktop Client |
| - Global Shortcuts (Alt+L, Alt+Shift+S) |
| - Glassmorphic Streaming HUD (popup.html) |
| - Interactive Area Snip Selector (snip.html) |
+-----------------------------+-----------------------------+
| Server-Sent Events (SSE)
v
+-----------------------------------------------------------+
| Flask Observer Daemon (Port 5050) |
| - Active Window Discovery (win32gui / pygetwindow) |
| - Pixel Capture (mss, auto-scaled to 1920px max) |
| - Dual-Engine Router (Multimodal Base64 / OCR Fallback) |
| - Multi-Turn Session Memory |
+-----------------------------+-----------------------------+
| HTTP Streaming (/api/chat)
v
+-----------------------------------------------------------+
| Ollama Local Server |
| - Multimodal Vision: qwen3-vl, qwen2.5-vl, gemma-vl |
| - Text Reasoning: deepseek-r1, llama3.2 |
+-----------------------------------------------------------+
127.0.0.1.x-assistant-token).Both components can be configured through environment variables:
ASSISTANT_TOKEN=local_secret_token
OLLAMA_BASE_URL=http://127.0.0.1:11434
OLLAMA_MODEL=qwen3-vl:8b
PORT=5050
ASSISTANT_TOKEN=local_secret_token
ASSISTANT_OBSERVER=http://127.0.0.1:5050
Distributed under the MIT License. See LICENSE for details.
0 followers · starred Sep 2026
Local AI desktop assistant that observes your active window, understands on-screen content, and provides instant contextual assistance using Electron, Python, OCR, and Ollama.
HTML
5
10 commits
updated Sep 30, 2026
The Anti-Recall: On-Demand, Zero-Surveillance, 100% Local Screen Intelligence.
Lens is a lightweight, privacy-first desktop overlay that understands whatever is visible on your screen without transmitting data to external servers.
When you encounter a compiler error, need complex code explained, or want a fast summary of documentation, press Alt + L. Lens captures the active application window in memory, runs inference locally using Ollama, and streams structured solutions directly over your workspace in real time.
Lens operates under three core principles:
| Feature | Lens | Windows Recall | Cloud AI (Copilot / ChatGPT) |
|---|---|---|---|
| Cloud Data Upload | None (100% Local) | Local storage | Yes (Transmits to cloud) |
| Continuous Recording | No (On-demand only) | Yes (Logs every few seconds) | No (Manual input) |
| Disk Footprint | Zero (RAM only) | Heavy (Multi-gigabyte database) | Negligible |
| Offline Operation | Full (No network needed) | Yes | No (Internet required) |
| Screen Context Chat | Interactive Multi-Turn | Search only | Manual screenshot attachment |
| Code and Error Fixes | 1-Click Copyable | No | Yes |
| Software License | Open Source (MIT) | Closed Source | Closed Source |
Alt + L): Analyzes the current active application window without stealing focus or switching contexts.Alt + Shift + S): Drag a rectangular bounding box across any screen region to isolate specific terminal logs, stack traces, or UI designs with automatic high-DPI scaling.qwen3-vl:8b, qwen2.5-vl, gemma-vl, and llama3.2-vision. Screen pixels are passed directly to Ollama without requiring optical character recognition software.llama3.2:3b are selected.Ctrl + Shift + P): Instantly pauses or resumes all screen capture capabilities.| Shortcut | Action |
|---|---|
Alt + L | Summon Lens on the active application window |
Alt + Shift + S | Activate Snip mode to select a screen area |
Ctrl + Shift + P | Toggle Privacy mode (Enable or disable capture daemon) |
Esc | Close or dismiss the HUD overlay |
Enter | Submit a follow-up query in the chat bar |
Clone the repository and run the automated setup script:
git clone https://github.com/RuSapkal69/Personal_AI_Assistant.git
cd Personal_AI_Assistant
# Pull your preferred vision model
ollama pull qwen3-vl:8b
# Run automated setup
setup.bat
# Launch Lens
run.bat
The run.bat launcher automatically verifies dependencies, starts the Ollama service if idle, launches the Python observer daemon, and opens the desktop HUD.
cd assistant-observer
python -m venv venv
# Windows:
venv\Scripts\activate
# macOS / Linux:
# source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
cd ../assistant-electron
npm install
cp .env.example .env
npm start
The Electron client automatically starts and manages the background Python observer daemon.
Lens uses a modular, three-tier local architecture:
+-----------------------------------------------------------+
| Electron Desktop Client |
| - Global Shortcuts (Alt+L, Alt+Shift+S) |
| - Glassmorphic Streaming HUD (popup.html) |
| - Interactive Area Snip Selector (snip.html) |
+-----------------------------+-----------------------------+
| Server-Sent Events (SSE)
v
+-----------------------------------------------------------+
| Flask Observer Daemon (Port 5050) |
| - Active Window Discovery (win32gui / pygetwindow) |
| - Pixel Capture (mss, auto-scaled to 1920px max) |
| - Dual-Engine Router (Multimodal Base64 / OCR Fallback) |
| - Multi-Turn Session Memory |
+-----------------------------+-----------------------------+
| HTTP Streaming (/api/chat)
v
+-----------------------------------------------------------+
| Ollama Local Server |
| - Multimodal Vision: qwen3-vl, qwen2.5-vl, gemma-vl |
| - Text Reasoning: deepseek-r1, llama3.2 |
+-----------------------------------------------------------+
127.0.0.1.x-assistant-token).Both components can be configured through environment variables:
ASSISTANT_TOKEN=local_secret_token
OLLAMA_BASE_URL=http://127.0.0.1:11434
OLLAMA_MODEL=qwen3-vl:8b
PORT=5050
ASSISTANT_TOKEN=local_secret_token
ASSISTANT_OBSERVER=http://127.0.0.1:5050
Distributed under the MIT License. See LICENSE for details.
0 followers · starred Sep 2026