Tart VM + VNC turns Claude Code into a full WeChat desktop agent — workflow open-sourced

lxfater · x · 2026-12-01

@yucheng shared a WeChat automation setup that bypasses wx-cli entirely, with lxfater adding real-world results and an open-source doc.

Core idea: Run a macOS VM via Tart on a Mac, log into WeChat there, wrap it as an MCP tool for Claude Code, and drive the UI over VNC with screenshot-click-type-paste. Since it simulates real system operations, it sees more data and can output actions that wx-cli can't.

Results: The agent independently renamed remarks for 23 contacts and tagged 87 people inside the VM.

Performance: On 20 find-a-contact tasks, direct VNC (reading the screen 0.8s after click) succeeded on 19 vs only 7 for noVNC + browser-use — so the agent uses direct VNC while the human watches via read-only noVNC.

Pitfalls: vision-based control struggles with crowded UIs and lag (the Delete button sits 47px from Tag); Chinese IME swallows spaces, so all Chinese input goes through clipboard.

The full write-up is open-sourced at yskills/vnc-agent-desktop.md and can be pasted to your agent as a prompt. The author warns of ToS/ban risks — keep volume low and confirm outgoing messages manually.

Original post →

More from coding & agent

coding & agent channel →