Let AI agents control any macOS app in the background without taking your mouse
Built a way for agents to drive any macOS app in the background without stealing the cursor.
Source
frabonacci on Hacker News · 2026-04-28 · Project link
Written in our own words. Credit to the original author. Link checked 2026-11-22.
What they did
Built a way for agents to drive any macOS app in the background without stealing the cursor.
Result (as claimed)
Show HN demo for agent desktop control.
Tools they used
Cost: Claude Code: from $17/mo; OpenAI Codex: free plan, paid from $8/mo.
Set it up
Map the task
Write the trigger, the inputs, the decisions and the output. Note which steps need a human yes.
Connect the tools
Set up Claude Code, OpenAI Codex with the narrowest permissions that work. Use a test account or sandbox first.
Build the workflow
Create the steps in order. Add an approval step before anything sends, pays or deletes.
Run it on real but low-stakes data
Run a few times, read every output, and fix prompts or rules that misfire.
Schedule and monitor
Turn on the schedule or trigger, and add a daily summary or alert so you notice failures.
Copy the full setup prompt
Paste into your agent and it will walk you through the setup, asking before anything that sends, posts or spends.
You are helping me set up this AI use case end to end in Claude Code. Goal: Let AI agents control any macOS app in the background without taking your mouse What the original author did: Built a way for agents to drive any macOS app in the background without stealing the cursor. Reported result (as claimed by the author): Show HN demo for agent desktop control. Source: https://news.ycombinator.com/item?id=47936312 Tools they used: Claude Code, OpenAI Codex Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Codex. Goal: Let AI agents control any macOS app in the background without taking your mouse What the original author did: Built a way for agents to drive any macOS app in the background without stealing the cursor. Reported result (as claimed by the author): Show HN demo for agent desktop control. Source: https://news.ycombinator.com/item?id=47936312 Tools they used: Claude Code, OpenAI Codex Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Grok Bot. Goal: Let AI agents control any macOS app in the background without taking your mouse What the original author did: Built a way for agents to drive any macOS app in the background without stealing the cursor. Reported result (as claimed by the author): Show HN demo for agent desktop control. Source: https://news.ycombinator.com/item?id=47936312 Tools they used: Claude Code, OpenAI Codex Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
The Daily 5
Get five new use cases tomorrow morning
Free. Real sources. Unsubscribe any time.
Guides for this use case
How to run multiple coding agents at once (git worktrees, tmux, Claude Code agent teams, Codex and Cursor) · How to build a Mac menu bar app with AI · How to let AI control your computer: Claude, Codex, Windows-MCP and Playwright setups with prompts · How to use Claude Code and Codex together (Codex plugin, shared AGENTS.md, worktrees, auto cross-review and GitHub Actions)
Related use cases
Automate the desktop from a CLI your agents can call
Built Agent-desktop, a native desktop automation CLI meant for AI agents.
Have an agent mine your session history for work worth automating
A founder's team points an agent at their own Claude and Codex session history from the last week or month. It looks for things they ask for over and over that could be automated.
Let Claude Code control your Mac in the background with Codex's computer use
A developer exposed Codex's computer-use ability to other agents and plugged it into Claude Code, which has no built-in way to drive a Mac from the CLI. Claude Code can now click and type in Mac apps in the background while you keep working.
Run Claude Code, Codex and Antigravity bots from one desktop app
AppuBot is a desktop app for running agent bots on your own computer. The Oct 21 release lets bots use your apps in the background, adds Antigravity and more agents, and brings Telegram buttons for switching model, effort and permissions.