跪拜 Guibai
← All articles
Backend · Programmer · Artificial Intelligence

WorkBuddy's Computer Use takes aim at WeChat: desktop automation for apps with no APIs

By cxuanAI ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Desktop apps like WeChat, WPS, and legacy ERP clients are closed to API-style automation, so browser-based agents have always hit a wall there. This is a concrete path to automating them with a visual loop agent — but expect slow operation, token costs, and strict safety gates, not a magic free-for-all.

Summary

WorkBuddy just shipped a beta feature called "Computer Application Control" that gives its coding agent a real pair of hands on the desktop. Under the hood it's a Rust MCP runtime wired to Tencent's Youtu CUA in macOS action mode, and it comes bundled as a Skill with 14 atomic tools — click, drag, scroll, press_key, type_text — plus a hard-coded safety policy that blocks anything involving payments, passwords, or posting to public channels.

The interesting part is how it handles the loop: the main agent doesn't read screenshots. A built-in visual advisor consumes high-res frames and returns exact coordinates for a single action, then the agent re-screenshots and asks again until the advisor says done. That makes it slow by design, but also lets it work in the background without stealing the mouse, using CGEvent injection and clipboard paste to bypass keyboard quirks.

The author walks through six use cases, from silently scanning open WeChat chat windows to produce a to-do markdown file, to running GUI regression on an Electron app after a code change, to visually QA-ing PPT layouts, to filling data into legacy ERP clients that have no API, no MCP, and no web version. The closing rule of thumb: use MCP/API first, browser control second, and only fall back to Computer Use when the target is truly closed-off desktop software.

Takeaways
— WorkBuddy's Computer Use is a beta Skill, invoked via /workbuddy-computer-use or natural language, and installable from the Agent settings.
— The skill runs on a Rust MCP runtime with TOOL_MODE set to YOUTU_CUA_MAC_ACTION, i.e., Tencent Youtu's CUA in macOS action mode.
— It exposes 14 atomic tools including click, drag, scroll, press_key, and type_text.
— A mandatory three-layer loop runs every single action: main agent → built-in visual advisor (get_next_action) → Rust runtime, and only stops when the advisor returns done.
— Background operation uses macOS accessibility and CGEvent injection; text entry goes through clipboard paste to avoid Chinese input method interference.
— Safety rules are hardcoded into three tiers: absolute prohibition (payments, password changes, public posts, game cheating), confirmation-required (private messages, deletions, sharing), and allowed without confirmation (read-only checks).
— The author tested it by scanning two open WeChat chat windows and producing a structured Markdown to-do list.
— Suggested selection order: use MCP/API first, browser control second, and Computer Use only for native desktop apps with no API or web interface.
— The skill allows a user-defined blocklist of applications it should never operate.
Conclusions

The architecture separates perception from action: the main agent never sees the screenshot, only receives coordinates from a visual advisor. This keeps the model context small and prevents the agent from getting distracted by raw images, but it also makes the loop slow and credits-hungry.

Safety is enforced at the skill level with a static deny list, which is practical but brittle. Users cannot override the hardcoded tiers, so high-value actions like sending a private message require explicit confirmation — that's a design choice to prevent abuse in a tool that otherwise has full desktop access.

The most compelling use case is for legacy enterprise software: if an app has no API, no MCP, and no web UI, a Computer Use layer is the only way to automate it. This positions WorkBuddy as a bridge to the long tail of internal tools that modern agent frameworks ignore.

The beta disclaimer matters: it runs slowly, consumes credits, and is not suitable for replacing trivial manual actions like sending a WeChat message. The author's own example of sending a message is more a proof-of-concept than a practical everyday use.

The dual restriction — denial list plus safety tiers — suggests the vendor is aware that giving an AI agent unchecked desktop control is dangerous; still, any bypass or vulnerability in the CGEvent injection layer could lead to unexpected behavior.

Concepts & terms
Computer Use
A technique where an AI agent operates desktop software by simulating human mouse clicks and keyboard input, instead of using APIs or browser automation. It works by taking screenshots, asking a vision model what to click next, and repeating until the task is done.
MCP (Model Context Protocol)
An open protocol that lets AI assistants connect to external tools and data sources through standardized interfaces. When an app has no MCP server, it's not directly accessible to an agent, which is why Computer Use is needed as a fallback.
CUA (Computer Using Agent)
A model or system that can perceive a computer screen and take actions to accomplish tasks, effectively turning a vision-language model into a desktop operator. WorkBuddy uses Tencent Youtu's CUA in macOS-specific action mode.
CGEvent injection
A macOS mechanism for programmatically generating mouse and keyboard events at the system level. WorkBuddy's Rust runtime uses this to click and type silently in the background without moving the user's actual cursor.
From the discussion

The discussion splits on practicality. Read-only inspection is seen as a more credible scenario than letting the AI send WeChat messages, yet the risk of mis-clicks persists, calling for tool-level whitelists and audit logs. Accuracy is questioned, with Codex's Computer Use offered as a superior benchmark. A concrete use case exists: a mini-program for couple disputes.

— Read-only inspection is a more credible scenario than simulating WeChat sends, but a read-only prompt doesn't prevent accidental clicks; tool-level whitelists and operation audit are necessary.
— WorkBuddy's Computer Use is 'dumb' compared to Codex's Computer Use.
— Accuracy is a major shortcoming of Computer Use.
— There is a practical application: building a mini-program to resolve couple conflicts.
Featured comments
不会Coding的Coder

Compared to Codex's Computer Use, this is dumb and stupid.

badhope

Using Computer Use for read-only inspections is much more reliable than having the AI send WeChat messages for me. My only concern is the permission boundary: a read-only prompt can constrain the model, but it can't stop it from clicking the wrong button. Have you added a whitelist and operation audit at the tool level? For example, only allow reading specified window titles, forbid clicking send/delete, and log every window switch and read.

程序阿辕

Honestly, Computer Use just isn't very accurate.

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗