🌳 Why a tree, not pixels 0:17
| Screenshot-and-click | Accessibility tree |
| Find a button by looking at pixels | Find a control by its name in a structure apps already publish for screen readers |
| Move the pointer and click | Act on a ref without moving the pointer or taking focus |
| Breaks when the theme, scale or layout changes | Stable as long as the semantics are stable |
| Works on anything drawn on screen | Only works where the app exposes accessibility |
The last row is the whole trade, and this video demonstrates both sides of it. The tree is precise and quiet — the agent reads a list of apps, finds a switch by name, flips it, and your pointer never moves. It is also blind wherever the app forgot to publish something: in the Linux half of the demo, the agent finds three kill buttons with no names at all and fixes the app so it can name them.
🧩 Job one: a Safari extension 1:08
A well-chosen test case, because there is genuinely no command-line path to it.
| Fact | Consequence |
| An in-development extension can load from a folder as a temporary extension | But only through Safari's settings window, Developer tab |
| That tab needs "allow unsigned extensions" turned on | Safari turns it off again every time it quits |
| Safari's WebDriver has no way to install an extension | A browser-automation harness cannot do this job at all |
| Enabling it raises a macOS password sheet | A human step in the middle of an otherwise automatable flow |
This is the exact class of task where desktop automation stops being a novelty: not "use a GUI because it is fun", but "the vendor has deliberately made this a GUI-only operation, and the operating system has deliberately put a password in front of it". An agent that can read the settings window gets you to the door; the password stays yours.
🎬 How the run went 1:58
| Step | What the agent did |
| 1 | Read the extension's code first and named a likely bug — but did not change anything yet |
| 2 | Opened Safari to see the actual problem |
| 3 | Through agent-desktop, opened Safari settings on the Developer tab and pressed "add temporary extension" |
| 4 | macOS answered with a password sheet — and the agent stopped, as the prompt instructed |
| 5 | Reported that nothing had changed yet |
The prompt did a lot of work here: "stop and tell us if macOS asks for a password." That is a better safety mechanism than any capability restriction, because it turns an unexpected dialog into a checkpoint instead of an obstacle to be worked around. Any prompt that hands an agent a GUI should name the conditions under which it must stop.
🔐 The password sheet 2:28
"When we tested agent-desktop on this sheet, it couldn't type into the password field. That step belongs to a person."
| What it could do | What it could not do |
| Read the sheet — sheets and alerts are among the supported surfaces | Type into the secure password field |
| Recognise that the flow was blocked and report it | Press a button to dismiss it and pretend it succeeded |
That asymmetry is the most interesting technical detail in the video: see-but-not-fill is not a bug in the tool, it is the operating system distinguishing reading a dialog from entering a secret. A vision-based agent with a mouse would have no such boundary — it would happily click the field and type whatever it guessed. Accessibility-based automation inherits macOS's own notion of a trusted human step, which is a strong argument for this approach beyond mere stability.
🐛 The bug, and the reload 3:17
| Observation | Diagnosis |
| The pop-up said two tabs open in a window with three | The count used the last tab's index, which starts at zero, instead of the number of tabs |
| One line changed | The same rounding error every off-by-one bug has ever been |
| Reload pressed in the extensions tab | No password asked the second time; pop-up then read three tabs |
This is the loop the whole article is about, and it is boringly ordinary: read the UI, trust the tree, form a hypothesis, change one line, reload, read the UI again. No screenshot, no pixel comparison, no coordinate. The interesting part is not that an agent fixed an off-by-one bug — it is that the verification happened through the same interface as the diagnosis.
🖥 Job two: screen recording 3:51
The second job is better than the first, because the reason it needs a human is structural rather than incidental.
| Tool | What it can do | What it cannot |
tccutil | Reset a grant | Grant one |
| Configuration profile | Deny screen capture | Grant it |
| System Settings, Privacy & Security | Turn the switch on — with a password | Be scripted end to end |
That asymmetry is deliberate and worth internalising: the OS lets administrators take power away by policy but never hands it out by policy, so every new screen-capturing app starts with its switch off until a person flips it. This is precisely the boundary where a desktop agent is useful — it can find the switch, read the app list, and flip the right one — and where it must not be trusted to complete the job alone.
✅ Verifying a grant 5:04
| Step | Detail |
| Agent opens the Screen Recording pane | Via a settings link from the shell — so the shell does part of the job |
| Reads the list of apps, finds ScreenSnap, turns the switch on | Ref-based interaction, no pointer movement |
| macOS puts up "Privacy & Security is trying to modify your system settings" | The agent stopped, and reported it had typed nothing and pressed neither button |
| Human types the password | The switch stays on with no second press |
| Verification: launch ScreenSnap, save a capture, open the image, find the Terminal and System Settings windows in it | The grant demonstrably works |
The verification step is what makes this a demonstration rather than a claim. "The switch is on" could mean the click landed; "the app can now capture the screen and here is a screenshot containing the two windows I expected" is evidence. That is the same principle the best agent workflows keep rediscovering: verify through a different channel than the one you acted on.
🐧 Linux and AT-SPI 5:21
The last third is the most technically interesting, because the app is deliberately badly behaved.
| Finding | What the agent did |
| Three kill buttons in Porter with no accessible names | Named them in the source |
| A count label hidden from the accessibility tree | Unhid it |
| The app had to be rebuilt for the changes to take effect | Rebuilt it, then pressed "kill port 8102" by name |
| The row disappeared but the label still said three | Found the counting bug and fixed that too |
| Focus stayed in Neovim throughout | The point of headless ref actions |
An agent that fixes the accessibility tree so it can operate the app is doing something new. It is not routing around a bad interface — it is repairing the interface, which happens to make the app better for screen-reader users too. Whether that is a good precedent is a real question: an agent silently rewriting UI semantics to suit itself is exactly the kind of change that should appear in a diff a human reviews, which it did here.
🚧 The boundary is the design 6:22
| What the agent handled | What stopped it |
| Opening settings panes, finding controls by name, flipping switches | Typing a macOS password — the tool cannot, and the prompt forbade trying |
| Recovering when a control had no activation action | Nothing else — it adapted with focus and space |
| Reading the state of the UI to verify a change | The verification still needed a second channel (a real screenshot) |
| Fixing an app whose accessibility was broken | Required a human-reviewable code change and a rebuild |
"An agent that presses buttons can do nearly anything you can, so it's safer to run it in a virtual machine."
The advice at the end is the correct conclusion and it compresses the whole topic: the capability is roughly "anything a person can do with a mouse", so the containment has to be at the machine level, not at the prompt level. A prompt that says "don't do anything dangerous" is a wish; a VM is a boundary.
🛡 Safety 6:35
| Risk | Mitigation that actually works |
| An agent with a mouse can reach anything you can reach | Run it in a VM, as the video recommends |
| Permission dialogs become routine if the agent learns to dismiss them | Instruct it to stop at password sheets — and note the tool cannot fill secure fields anyway |
| Silent success claims | Verify through a different channel: launch the app, inspect the artefact |
| Agent-edited UI semantics | Keep those changes in version control and review them |
| Screen recording grants | A capture-granted agent can see everything on that desktop, including other apps |
The one thing to add to the video's advice: the macOS permission the tool needs is accessibility access for the host app — Terminal, iTerm2, VS Code, or whatever launches it — plus screen recording only for screenshots, and automation only where a command reports it missing. That is a broader grant than people expect, which is another argument for the VM: on a disposable machine, granting accessibility to a terminal costs nothing.
✅ Claims checked
| Claim | Verdict | Evidence |
| agent-desktop is free, open source, from Vercel Labs | Correct | vercel-labs/agent-desktop, Apache-2.0, Rust |
| It uses the accessibility tree, not screenshots | Correct | "See and operate desktop apps… through the OS accessibility tree", no pixel matching |
| Actions don't move the pointer or take focus | Correct, and it is the default | Headless by default; a global --headed flag enables physical input |
| Linux support reads apps through AT-SPI | Correct | Linux adapter uses AT-SPI; Windows uses UI Automation |
| It works headless with pointer clicks turned off | Correct | Consistent with the documented default and the workaround the agent needed |
| Safari's WebDriver cannot install an extension | His statement, consistent with Safari's automation limits | Not contradicted by anything in the repository |
| Safari turns "allow unsigned extensions" off when it quits | His observation | A claimed Safari behaviour, not verified from Apple documentation here |
| The agent could not type into the password field | Demonstrated, and consistent with secure fields | Sheets are readable surfaces; secure text entry is not something an agent should fill |
tccutil can only reset a grant | Correct | It resets TCC entries; it does not create them |
| A configuration profile can deny screen capture but never grant it | Correct in practice | Profiles can restrict TCC; user consent for screen recording cannot be pre-granted this way |
| The second sheet needed a password and the agent stopped | Demonstrated | And reported that it had typed nothing and pressed neither button |
| The grant worked | Verified by artefact | Launching the app produced a screenshot containing the expected windows |
| An agent that presses buttons can do nearly anything a person can | Fair | Subject to the app exposing controls and the OS not requiring a secret |
| The tool includes a model | False | No model inside; it ships a CLI, a C library and an MCP bridge |
Basis note. Built from the full 7:09 recording and checked against the vercel-labs/agent-desktop repository and its macOS platform documentation. The repository confirms the headless default, the surface list that includes sheets and alerts, and the permission model (accessibility for the host app, screen recording only for captures). The Safari-specific behaviours are reported by the author and labelled as such rather than presented as verified Apple documentation.
🔑 Key takeaways
- Pick jobs with no command behind them — settings windows, permission grants, temporary extensions — because that is where desktop automation is not a gimmick.
- The accessibility tree beats pixels on stability and on restraint: named controls, no pointer movement, no focus stealing.
- It can read a password sheet but not fill it, which is the OS drawing the line between reading a dialog and entering a secret.
- Tell the agent when to stop. "If macOS asks for a password, stop and report" converts a dialog into a checkpoint.
- Headless by default is a real design choice: you keep typing in your editor while the agent presses buttons elsewhere.
- When a control has no activation action, be creative: focus plus space is the fallback that opened the pop-up.
- Verify through a different channel: "the switch is on" is a claim; a capture containing the expected windows is evidence.
- Know what cannot be granted by policy:
tccutil resets, profiles deny, only a person can grant screen recording.
- Broken accessibility is a blocker an agent can fix — unnamed buttons and a hidden label, repaired in source and rebuilt.
- Those repairs belong in review. An agent rewriting UI semantics to suit itself should show up in a diff.
- The capability is roughly "anything a person can do with a mouse", so the question is containment, not permission prompts.
- Run it in a VM. Accessibility access for a terminal is a broad grant; on a disposable machine it costs nothing.
🔗 Resources
- The video — Starry Hope, 7:09
- vercel-labs/agent-desktop — CLI, C library and MCP bridge
- macOS platform notes — permissions, surfaces, what needs headed mode
- The earlier deep dive on this site covering agent-desktop's headless refs and the four commands that refuse to hold a key down
Basis note. The video is a demo by a third party, so the interesting claims were checked against the project's own documentation; where they differ (nothing material here), the repository wins. The safety framing at the end is the author's, and this article adds the permission-grant detail from the docs.
⏱ Timestamp index
0:03Free, open source, from Vercel Labs
0:17The accessibility tree
0:22Finding a button by name
0:30Jobs with no command behind them
0:44Two jobs, and where they stop
1:08Why a Safari extension needs the settings window
1:25No WebDriver route, and unsigned extensions reset on quit
1:44The task given to Claude Code
1:58Reading the code before touching anything
2:05Opening Safari settings and adding the extension
2:15The password sheet appears
2:28It cannot type into the password field
2:44Selecting the extensions folder
2:55Opening the pop-up takes several tries
3:17Two tabs open in a window with three
3:33Reloading the extension
3:42Three tabs, correctly
3:51Screen recording has no command either
3:55tccutil resets, profiles deny, nobody grants
4:19Turning on ScreenSnap's switch
4:31Opening the pane from a settings link
4:46The second password sheet
5:04Verifying with a real capture
5:36Porter on a virtual monitor
5:44Unnamed buttons, hidden label
5:52Naming them and rebuilding
6:02The row disappears, the count does not
6:09Focus stayed in Neovim
6:22Wrapping up: two jobs, two password sheets
6:35Run it in a virtual machine
6:41The permission to grant to your terminal