Open-Source turbo-desktop-mcp Cuts Windows Agent Tokens Up to 10x With UI Automation Deltas
Status_Ad8999 · reddit · 2026-11-26
The author released turbo-desktop-mcp v0.1.0 (on PyPI, MIT licensed, Python 3.12+), which lets Windows agents drive native desktop apps through UI Automation (UIA) instead of burning vision tokens on screenshots.
How it works
- Compact accessibility-tree snapshots, onlyChanged=true delta diffs and batchactions.
- Falls back to WinRT OCR plus real input when a window has no UIA tree.
Benchmark (Windows 11, same WinForms fixtures, o200kbase tokens)
- Form fill (3 fields + Submit + verify): 760 UIA tok vs 1,548 window-crop tok vs 7,374 720p desktop tok.
- 5-step stateful click + delta loop: 862 / 1,548 / 7,374 tok.
- Native editor multi-line Unicode write + readback: 456 / 1,092 / 3,687 tok.
- Custom-drawn canvas (no UIA tree, OCR fallback): 235 tok vs 125 tok for a 360x260 crop — on tiny canvases a screenshot is actually cheaper.
Safety guardrails
- Password fields and secret-looking window titles (.env, credentials, password managers) are hardcoded deny zones.
- easy/balanced/strict TOML rules gate destructive clicks (Submit, Delete, Pay) with a local Yes/No prompt.
- The real-input fallback waits for owner idle, shows an orange screen-edge glow, and releases on Esc x3 or Ctrl+Alt+Shift+K.
The author invites testing on weirder Win32/WPF/Electron trees and filing issues.
More from coding & agent
- What an AI Coding Harness Should Drop: A Wishlist, Plus the Fear of Random Account Bans — alexisgallagher · 2026-11-26
- Tests of Codex CLI, WorkBuddy and DSH Show Agent 'Sandboxes' Promise More Than They Protect — Emotional_Natural270 · 2026-11-26
- Give AI One Place to Read: Identity, Goals, Projects and Voice — dSebastien · 2026-11-26
- Pedro Domingos: 99.9% of Claude's Riemann proof is dead code and scaffolding — pmddomingos · 2026-11-26
- Zero 3D Assets: Developer Generates a Kyoto Moss Garden Entirely in Code — Promptmethus · 2026-11-26
- HungerG: Free Anonymous Model Generates Shenzhen 1979-to-Now City Animation Via Pure Code — anselm · 2026-11-26