惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
博客园 - 三生石上(FineUI控件)
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
V
Visual Studio Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MongoDB | Blog
MongoDB | Blog
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
L
LangChain Blog
Martin Fowler
Martin Fowler
GbyAI
GbyAI
博客园 - 司徒正美

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - voctory/trope-cua: Background computer use for d...
voc · 2026-04-30 · via Hacker News: Show HN

Background computer use for desktop agents on Windows and macOS.

Trope CUA lets an AI agent inspect and operate real desktop apps while avoiding accidental movement of your real mouse cursor or changes to your active app when the OS and target app support safe routes. It exposes screenshots, accessibility trees, action receipts, and trajectory recording over MCP, a daemon, or direct CLI calls.

The Windows implementation lives at the repository root. The macOS Swift implementation lives under native/macos/trope-cua.

Trope CUA: computer-use agents for Windows and macOS

Demo

Trope CUA demo: an agent operates a desktop app in the background

Click the demo to watch the full video (redirects to X).

Install From Source

Trope CUA is distributed as source. Clone the repository, or download a GitHub-generated source archive from the releases page, then run the installer script locally.

Windows requirements:

  • Windows 10 1903+ or Windows 11.
  • PowerShell.
  • .NET SDK matching global.json.

Install a self-contained Windows build:

.\scripts\install-windows.ps1 -SelfContained

macOS requirements:

  • macOS 14 or newer.
  • Xcode Command Line Tools.
  • Accessibility and Screen Recording permissions for TropeCUA.app.

Install a local macOS build:

./scripts/install-macos.sh

Verify the installed command on either platform:

trope-cua --help
trope-cua check_permissions
trope-cua list_windows

Register with an MCP client:

trope-cua mcp-config
trope-cua mcp-config --client cursor

Or point any MCP client at:

trope-cua mcp

Safety Contract

Mutating actions return receipts. Treat an action as background-safe only when all three fields say:

{
  "background_safe": true,
  "cursor_moved": false,
  "foreground_changed": false
}

ok=true means the requested route completed. It does not by itself mean the route preserved the user's foreground work. Unsafe routes and fallbacks are reported in the receipt instead of being hidden.

Capabilities

  • List desktop windows and apps.
  • Snapshot a specific target window as pixels, accessibility tree, or both.
  • Click, type, press keys, scroll, and set values through background-safe routes when the target exposes them.
  • Run as an MCP stdio server, a long-running daemon, or direct CLI tool calls.
  • Show a visual agent cursor overlay without moving the user's hardware cursor.
  • Record and replay trajectories for debugging and regression work.
  • Refuse known unsafe parent-session routes instead of pretending delivery succeeded.

Known Limits

  • Trope CUA is not a VM or sandbox. Same-session tools operate on the real user desktop.
  • Not every app exposes a safe UIA/MSAA route.
  • Chromium and Electron parallel work need separate profiles and CDP ports for true isolation.
  • Games, DirectX, Unity, Unreal, raw-input surfaces, and many canvas-heavy apps need child-session or AppBroadcast-style isolation.
  • Trope CUA is distributed as source; install from the repository or GitHub source archive.

Read the full known limits before giving an agent authority over authenticated apps.

First Loop

Use MCP or the daemon for workflows that act on element_index values from a snapshot. With the daemon, keep serve running in one terminal and call tools from another:

trope-cua serve --instance demo
trope-cua call --instance demo list_windows '{}'
trope-cua call --instance demo get_window_state '{"pid":1234,"window_id":456789}'
trope-cua call --instance demo click '{"pid":1234,"window_id":456789,"element_index":14}'

For the full workflow, see the quickstart.

Documentation

Development

Windows:

dotnet build trope-cua.sln
.\scripts\build.ps1
dotnet format --verify-no-changes --no-restore --verbosity minimal
.\scripts\run-tests.ps1

macOS:

cd native/macos/trope-cua
swift build
./scripts/test.sh
./scripts/install-local.sh

macOS development and permission checks must run on macOS. Windows integration tests must run on Windows.

License

Trope CUA is released under the MIT License. See LICENSE and NOTICE.

Trademarks

Apple, macOS, Microsoft, Windows, OpenAI, Anthropic, Claude, Cua, and other referenced names are trademarks or registered trademarks of their respective owners. This project is not affiliated with or endorsed by those companies or projects.