Can a coding agent use other apps on my Mac without taking over my screen?
Background computer use on a Mac for coding agents
Yes. Trek, the ChatGPT desktop app and the Claude desktop app each let an agent work in the background on a Mac. Trek does it for every agent it runs. The agent works in one app window behind yours, reading its controls, clicking and typing, while you keep the pointer and keyboard. On Windows, and on Linux in an X11 session, it works in front.
Turn it on
Open Settings › Tools & MCP › Computer use. On a Mac it has these rows, in order:
- Computer use tools, off until you turn it on.
- Accessibility, so Trek can click and type for the agent. Allow Accessibility opens the system setting.
- Screen Recording, so Trek can take screenshots of other apps.
- Work in the background, on by default.
- Show what they’re doing, a small live picture of the window the agent is using. It shows while Work in the background is on, and is on by default too.
A change applies to new sessions.
How it works
Trek gives each agent an MCP server called trek-computer. The agent first picks a window: it opens an app, or picks one from the list of windows. It reads the window as an outline of its controls, and takes a screenshot when looks matter. The screenshot shows just that window, even when other windows cover it. Its clicks, keys and scrolls go only to that window.
The tools are list_windows, open_app, elements, screenshot, click, press, type_text, key, scroll, drag, move_mouse and wait. If an app is already open, the agent uses it rather than opening a second copy.
Each click, key and scroll is a tool call, so the thread’s hand-holding level decides whether it asks you first, as it does for the agent’s other tools. At Full access nothing asks.
What the agent can’t use
- Your pointer and keyboard. The agent never moves them in background mode.
- The app in front, while you’re at the Mac, even if you are only reading. If the agent needs it, it waits, and Trek shows
Waiting: you're usingand the app’s name. - Trek’s own windows. Agents can’t use Trek itself.
Trek counts you as away when the screen is locked, the display is asleep, the screen saver is on, or after five minutes with no input. Then the agent may use any app, including the one you left in front.
Some apps, such as games and drawing canvases, ignore input that doesn’t come from the real mouse. The agent is told to say so rather than keep trying. For those, turn off Work in the background, and the agent works in front with the real pointer.
Watch it work
With Show what they’re doing on, a small floating window shows the agent’s window live, where it last pointed, and what it is doing, such as typing a word. It has Stop, which ends the thread’s turn. You can fold it to a pill or put it away and bring it back from the menu bar icon.
Platforms
Working in the background is Mac only. Computer use runs on Windows and on Linux too, in front: the agent uses the real pointer and keyboard, so you leave the computer to it while it works.
- Windows asks for no permission. Agents can’t reach apps running as administrator.
- Linux asks for no permission. Computer use needs an X11 session, and there it works in front. A Wayland session is refused, with a message that says why.
Trek tells each agent to use these tools for apps on this computer, rather than another app’s computer-use skill or command line.
Other apps
As of 4 December 2026, OpenAI’s ChatGPT desktop app has computer use on macOS and Windows, with ChatGPT Work and Codex, in supported regions. On macOS it can run a task in the background while you keep working elsewhere. On Windows it can’t, so it moves the pointer and takes the foreground while it works.
Anthropic’s Claude desktop app has computer use in its Code tab on macOS and Windows, on Pro, Max and Ultra plans. It isn’t on Team or Enterprise plans, and on macOS it needs macOS 14 or later. On macOS it can also run in the background, in the apps you’ve approved, while you keep working. Its Linux beta has no computer use.
Questions
Can it use an app’s menus?
Yes. In the background on a Mac, the agent can press a menu bar item by its path, such as Enter Full Screen in the View menu, and no menu opens on screen.
Can it read small text in a window?
Yes. Its screenshot tool can zoom into one area of the window it works in, or of the screen when it works in front, so the agent can take a closer look.
Which agents can use it?
Every agent Trek runs, once the setting is on. That means Claude Code, Codex, OpenCode, Droid, Cursor, GitHub Copilot and other ACP agents, and API and local models. It follows the thread’s hand-holding level.