frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Drive any macOS app in the background without stealing the cursor

https://github.com/trycua/cua
1•frabonacci•1h ago
Hi HN, Francesco from Cua here.

I hacked this project together last weekend, inspired by the Codex Computer-Use release and lessons learned from deploying GUI-operating agents for our customers.

The main problem: when a UI automation process controls a desktop app today, it usually takes over the human’s session. Your cursor moves, keyboard focus gets stolen, windows jump to the front, and you have to stop working until the agent is done. That is why we have historically avoided encouraging users to run these processes directly on their host machine, instead relying on VMs or GUI containers for concurrency and background execution.

But computer-use - the tools we give agents to operate computers like humans - does not scale cleanly that way. As models get smarter, agents need to share hosts safely, run in the background, and avoid collisions with the human or other agents using the same machine.

We realized macOS has no first-class API for "drive this app without touching the cursor". CGEventPost routes through the hardware input stream, so it moves your cursor. CGEvent.postToPid avoids the cursor warp, but Chromium treats those events as untrusted and silently drops clicks at the renderer boundary. Activating the target app first raises the window and pulls focus, defeating the point of background execution.

Cua Driver is our attempt at a real fix: a background computer-use driver for macOS that lets an agent click, type, scroll, and read native apps while your cursor, frontmost app, and Space stay where they are. The default interface is a CLI, so it is easy to script or call from any coding agent shell.

Try it on macOS 14+:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/cua-d...)"

The first internal use case was delegated demo recording. We ask Claude Code to drive an app while 'cua-driver recording start' captures the trajectory, screenshots, actions, and click markers. The result is an agent-generated product demo, Screen Studio inspired.

Other things we have used it for:

- Replacing Vercel’s agent-browser and other browser-use CLIs. With Claude Code and Cua Driver, you do not need Chrome DevTools Protocol at all.

- A dev-loop QA agent that reproduces a visual bug, edits code, rebuilds, and verifies the UI while my editor stays frontmost.

- Personal-assistant flows that use iMessage from Claude Code, Hermes, or other general-purpose agent CLIs.

- Pulling visual context from Chrome, Figma, Preview, or YouTube windows I am not looking at, without relying on their APIs.

What made this harder than expected:

- CGEventPost warps the cursor because it goes through the HID stream.

- CGEvent.postToPid does not warp the cursor, but Chromium drops it at the renderer IPC boundary.

- Activating the target first raises the window and can drag you across Spaces.

- Electron apps stop keeping useful AX trees alive when windows are occluded without a private remote-aware SPI.

The unlock was SkyLight. SLEventPostToPid is a sibling of the public per-PID call, but it travels through a WindowServer channel Chromium accepts as trusted. Pair it with yabai’s focus-without-raise pattern, plus an off-screen primer click at (-1, -1), and the click lands without the window ever raising.

One thing we learned: the right addressing mode depends on the app. Native macOS apps usually have rich AX trees, Chromium-family apps often need a hybrid of AX and screenshots, and apps like Blender or CAD tools may expose almost no useful AX surface. The mistake is defaulting to pixels everywhere - or defaulting to AX everywhere.

Long technical writeup: https://github.com/trycua/cua/blob/main/blog/inside-macos-wi...

I would like feedback from people building Mac automation, agent harnesses, or accessibility tooling. If it breaks on an macOS app you care about, that is useful data for us.

1Password Is Down

https://status.1password.com
1•etothet•1m ago•0 comments

First DeepSeek V4 Flash-Base-Int4 Quant

https://huggingface.co/EnsueAI/DeepSeek-V4-Flash-Base-INT4
2•saivegasena•1m ago•1 comments

Dutch central bank dithces AWS and chooses Lidl for European Cloud

https://www.techzine.eu/news/infrastructure/140634/dutch-central-bank-chooses-lidl-for-european-c...
2•benterix•2m ago•0 comments

I analyzed 571M Amazon reviews to find the most profanity-filled customer rants

https://burla-cloud.github.io/amazon-review-distiller/
1•jmp1062•2m ago•0 comments

Lean Game Server

https://adam.math.hhu.de/
1•alabhyajindal•4m ago•0 comments

OpenAI has updated partnership with Microsoft, services will be cross cloud

https://twitter.com/sama/status/2048755148361707946
1•ritzaco•4m ago•0 comments

Show HN: I spent 5 years building a financial planning and optimization tool

https://projectionlab.com/
1•scubakid•4m ago•0 comments

Antennagate

https://en.wikipedia.org/wiki/IPhone_4
1•euler2100•5m ago•0 comments

A Man Behind AlphaGo Thinks AI Is Taking the Wrong Path

https://www.wired.com/story/david-silver-ai-ineffable-intelligence-reinforcement-learning/
1•brandonb•5m ago•0 comments

How Meetings Got Cheap and What That Cost Us

https://alexoppenheimer.substack.com/p/how-meetings-got-cheap-and-what-that
1•crescit_eundo•5m ago•0 comments

SHOW HN: Dev Notes++

https://apps.apple.com/ca/app/dev-notes/id6762881892
1•myrcbox•5m ago•0 comments

Developers, Beware of Intel Core Ultra Series 3 (a.k.a. Panther Lake) Processors

https://kerkour.com/intel-panther-lake-avx512
1•Keyb0ardWarri0r•8m ago•1 comments

Show HN: Prediction market analysis app layering LLMs with data APIs

https://apps.apple.com/us/app/over-under-market-intelligence/id6761954121
2•noplace1ikegone•8m ago•0 comments

PgBackRest is dead. Now what?

https://mydbanotebook.org/posts/pgbackrest-is-dead.-now-what/
1•lavrot•8m ago•0 comments

Anthropic created a test marketplace for agent-on-agent commerce

https://techcrunch.com/2026/04/25/anthropic-created-a-test-marketplace-for-agent-on-agent-commerce/
1•Element_•8m ago•0 comments

UnixPC – Why did it fail?

https://www.youtube.com/watch?v=_x3uxKfFI-0
1•vapparatus•9m ago•0 comments

Ten People Are Quietly Deciding How AI Agents Will Prove Who They Are

https://clawdrey.com/blog/ten-people-quietly-deciding-agentic-identity.html
1•mooreds•10m ago•0 comments

From "What the Fuzz?" To "All the Fuzz " (Keynote Fuzzing Workshop NDSS'26)

https://www.youtube.com/watch?v=In3kRAVVbzQ
1•gannimo•10m ago•0 comments

We Tested $200 GPT-5.5 Pro on PhD Level Math [video]

https://www.youtube.com/watch?v=r4p5wGG_DgI
1•Topfi•11m ago•0 comments

What Makes EVTOL Motors Different Than EV Motors?

https://spectrum.ieee.org/evtol-joby-jon-wagner-motors
1•Brajeshwar•12m ago•0 comments

Run this Claude skill in your repo to make upload ready app store screenshots

https://github.com/hypersocialinc/shots
2•Jonovono•13m ago•1 comments

Ask HN: How do you solve aggregation when agentic RAG breaks down?

1•bimbobruno•13m ago•0 comments

Video Chat with Jesus for $1.99 per Minute

https://www.vice.com/en/article/this-company-will-let-you-video-chat-with-jesus-for-1-99-per-minute/
1•tantalor•13m ago•0 comments

Next El Niño could be tipping point for a hotter climate

https://insideclimatenews.org/news/25042026/el-nino-earth-warming/
1•helterskelter•13m ago•0 comments

How Trump is moving to control U.S. elections, one state at a time

https://www.reuters.com/investigations/how-trump-is-moving-control-us-elections-one-state-time-20...
2•notagoodidea•14m ago•0 comments

An intriguing case of "exceptional resilience" against dementia

https://peterattiamd.com/heat-shock-proteins-and-alzheimers-mutation/
1•brendanashworth•15m ago•0 comments

Ask a Staff Engineer Anything

https://askastaffengineer.com/
2•mooreds•15m ago•0 comments

Canvas-Ing the Web

https://meyerweb.com/eric/thoughts/2026/04/27/canvas-ing-the-web/
1•jjgreen•15m ago•0 comments

Canva apologizes after its AI tool replaces 'Palestine' in designs

https://www.theverge.com/ai-artificial-intelligence/919028/canva-magic-layers-ai-replacing-palestine
2•alex_suzuki•16m ago•0 comments

What AI bros have wrong about Jevons Paradox

https://b2bs.substack.com/p/jevons-paradox-ai-and-humanitys-relevance
1•oopsiremembered•16m ago•0 comments