@bastani/atomic 0.10.14 → 0.10.15-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/_shared/dist-KOELCESV.js +2 -2
  3. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  4. package/dist/_shared/lib-4PES5P4V.js +2 -2
  5. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +3 -3
  6. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
  7. package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
  8. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  9. package/dist/_shared/runtime-O4KCSG4C.js +2 -2
  10. package/dist/_shared/{sdk-B5LEWGGI.js → sdk-OHKMDJ74.js} +27 -5
  11. package/dist/_shared/{sdk-B5LEWGGI.js.map → sdk-OHKMDJ74.js.map} +1 -1
  12. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  13. package/dist/_shared/startup-0-0-Q3MWKUK4.js +2 -2
  14. package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
  15. package/dist/_shared/{startup-0-2-5QHPCEON.js → startup-0-2-2HUMCPKX.js} +14 -16
  16. package/dist/_shared/startup-0-2-2HUMCPKX.js.map +1 -0
  17. package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
  18. package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
  19. package/dist/_shared/startup-0-5-YDW47QX6.js +3 -3
  20. package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
  21. package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
  22. package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
  23. package/dist/_shared/startup-15-1-4S7FLMNG.js +6 -30
  24. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  25. package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
  26. package/dist/_shared/startup-8-1-LZFXSD3Z.js +3 -3
  27. package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
  28. package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
  29. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  30. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  31. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  32. package/dist/builtin/intercom/package.json +1 -1
  33. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  34. package/dist/builtin/mcp/package.json +1 -1
  35. package/dist/builtin/subagents/package.json +1 -1
  36. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  37. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  38. package/dist/builtin/web-access/package.json +1 -1
  39. package/dist/cli/auth-cli.code.js +1 -1
  40. package/dist/cli/auth-cli.impl.js +3 -3
  41. package/dist/cli/auth-cli.js +3 -3
  42. package/dist/cli/blueprint-command.impl.js +3 -3
  43. package/dist/cli/blueprint-command.js +3 -3
  44. package/dist/cli/intercom-command.code.js +3 -3
  45. package/dist/cli/intercom-command.impl.js +3 -3
  46. package/dist/cli/intercom-command.js +3 -3
  47. package/dist/cli/list-models.impl.js +3 -3
  48. package/dist/cli/list-models.js +3 -3
  49. package/dist/cli/session-picker.code.js +1 -1
  50. package/dist/cli/session-picker.impl.js +3 -3
  51. package/dist/cli/session-picker.js +3 -3
  52. package/dist/cli/startup-ui.code.js +1 -1
  53. package/dist/cli/startup-ui.impl.js +3 -3
  54. package/dist/cli/startup-ui.js +3 -3
  55. package/dist/cli/storage-command.impl.js +3 -3
  56. package/dist/cli/storage-command.js +3 -3
  57. package/dist/cli/storage-search-session.code.js +1 -1
  58. package/dist/cli/storage-search-session.impl.js +3 -3
  59. package/dist/cli/storage-search-session.js +3 -3
  60. package/dist/cli/team-command.code.js +1 -1
  61. package/dist/cli/team-command.impl.js +3 -3
  62. package/dist/cli/team-command.js +3 -3
  63. package/dist/cli.js +2 -2
  64. package/dist/core/compaction/compactor.d.ts +0 -8
  65. package/dist/core/debug.impl.js +3 -3
  66. package/dist/core/debug.js +3 -3
  67. package/dist/core/export-html/card-projection.impl.js +3 -3
  68. package/dist/core/export-html/card-projection.js +3 -3
  69. package/dist/core/export-html/index.code.js +2 -2
  70. package/dist/core/export-html/index.impl.js +3 -3
  71. package/dist/core/export-html/index.js +3 -3
  72. package/dist/core/export-html/json-spans.impl.js +3 -3
  73. package/dist/core/export-html/json-spans.js +3 -3
  74. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  75. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  76. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  77. package/dist/core/export-html/tool-renderer.js +3 -3
  78. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  79. package/dist/core/extensions/jiti-loader.js +3 -3
  80. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  81. package/dist/core/extensions/jiti-static-loader.js +3 -3
  82. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  83. package/dist/core/extensions/loader-host-modules.js +3 -3
  84. package/dist/core/intercom-broker-control-host.code.js +1 -1
  85. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  86. package/dist/core/intercom-broker-control-host.js +3 -3
  87. package/dist/core/intercom-broker-control.code.js +2 -2
  88. package/dist/core/intercom-broker-control.impl.js +3 -3
  89. package/dist/core/intercom-broker-control.js +3 -3
  90. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  91. package/dist/core/package-manager-storage-adapters.js +3 -3
  92. package/dist/core/sdk.code.js +1 -1
  93. package/dist/core/sdk.impl.js +3 -3
  94. package/dist/core/sdk.js +3 -3
  95. package/dist/core/session-manager-core.js +3 -3
  96. package/dist/core/session-manager-list.impl.js +3 -3
  97. package/dist/core/session-manager-list.js +3 -3
  98. package/dist/core/session-manager.impl.js +3 -3
  99. package/dist/core/session-manager.js +3 -3
  100. package/dist/core/session-storage.impl.js +3 -3
  101. package/dist/core/session-storage.js +3 -3
  102. package/dist/core/storage/index.js +2 -2
  103. package/dist/core/storage/node-sqlite-thread.js +2 -2
  104. package/dist/core/storage/node-sqlite.js +2 -2
  105. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  106. package/dist/core/storage/offline-snapshot-file.js +3 -3
  107. package/dist/core/storage/provider.js +2 -2
  108. package/dist/core/storage/selection.js +2 -2
  109. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  110. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  111. package/dist/core/storage/session/branch-fork-source.js +3 -3
  112. package/dist/core/storage/session/card-view.impl.js +3 -3
  113. package/dist/core/storage/session/card-view.js +3 -3
  114. package/dist/core/storage/session/child-reader.code.js +2 -2
  115. package/dist/core/storage/session/child-reader.impl.js +3 -3
  116. package/dist/core/storage/session/child-reader.js +3 -3
  117. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  118. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  119. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  120. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  121. package/dist/core/storage/session/expanded-child-details.js +3 -3
  122. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  123. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  124. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  125. package/dist/core/storage/session/fork-row-index.js +3 -3
  126. package/dist/core/storage/session/fork-staging.code.js +1 -1
  127. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  128. package/dist/core/storage/session/fork-staging.js +3 -3
  129. package/dist/core/storage/session/fork-window.code.js +2 -2
  130. package/dist/core/storage/session/fork-window.impl.js +3 -3
  131. package/dist/core/storage/session/fork-window.js +3 -3
  132. package/dist/core/storage/session/history-pages.impl.js +3 -3
  133. package/dist/core/storage/session/history-pages.js +3 -3
  134. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  135. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  136. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  137. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  138. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  139. package/dist/core/storage/session/memory-session-store.js +3 -3
  140. package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
  141. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  142. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  143. package/dist/core/storage/session/released-history-files.code.js +1 -1
  144. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  145. package/dist/core/storage/session/released-history-files.js +3 -3
  146. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  147. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  148. package/dist/core/storage/session/session-resume.impl.js +3 -3
  149. package/dist/core/storage/session/session-resume.js +3 -3
  150. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  151. package/dist/core/storage/session/snapshot-cut.js +3 -3
  152. package/dist/core/storage/session/snapshot-history.code.js +2 -2
  153. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  154. package/dist/core/storage/session/snapshot-history.js +3 -3
  155. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  156. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  157. package/dist/core/storage/session/sql-session-store.js +3 -3
  158. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  159. package/dist/core/storage/session/tree-outline.js +3 -3
  160. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  161. package/dist/core/storage/session/tree-presentation.js +3 -3
  162. package/dist/core/storage/storage-status.impl.js +3 -3
  163. package/dist/core/storage/storage-status.js +3 -3
  164. package/dist/core/storage/team.impl.js +3 -3
  165. package/dist/core/storage/team.js +3 -3
  166. package/dist/core/structured-output/index.code.js +1 -1
  167. package/dist/core/structured-output/index.impl.js +3 -3
  168. package/dist/core/structured-output/index.js +3 -3
  169. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  170. package/dist/core/tasks/task-completion-entry.js +3 -3
  171. package/dist/core/tasks/task-file-history.code.js +2 -2
  172. package/dist/core/tasks/task-file-history.impl.js +3 -3
  173. package/dist/core/tasks/task-file-history.js +3 -3
  174. package/dist/core/tasks/task-reference-archive.code.js +2 -2
  175. package/dist/core/tasks/task-reference-archive.js +3 -3
  176. package/dist/core/tasks/task-reference-identity.js +3 -3
  177. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  178. package/dist/core/tasks/task-reference-stream.js +3 -3
  179. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  180. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  181. package/dist/core/tasks/task-view-source.impl.js +3 -3
  182. package/dist/core/tasks/task-view-source.js +3 -3
  183. package/dist/core/tools/read-url.impl.js +3 -3
  184. package/dist/core/tools/read-url.js +3 -3
  185. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  186. package/dist/core/worktree-snapshot/errors.code.js +1 -1
  187. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  188. package/dist/core/worktree-snapshot/errors.js +3 -3
  189. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  190. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  191. package/dist/extensions/codemode/execute.impl.js +3 -3
  192. package/dist/extensions/codemode/execute.js +3 -3
  193. package/dist/extensions/codemode/renderer.impl.js +3 -3
  194. package/dist/extensions/codemode/renderer.js +3 -3
  195. package/dist/extensions/mcp/cli.code.js +1 -1
  196. package/dist/extensions/mcp/cli.impl.js +3 -3
  197. package/dist/extensions/mcp/cli.js +3 -3
  198. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  199. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  200. package/dist/extensions/mcp/cli.lazy.js +3 -3
  201. package/dist/extensions/mcp/runtime.code.js +1 -1
  202. package/dist/extensions/mcp/runtime.impl.js +3 -3
  203. package/dist/extensions/mcp/runtime.js +3 -3
  204. package/dist/index.d.ts +21 -1
  205. package/dist/index.js +2 -2
  206. package/dist/main-first-time-setup.code.js +1 -1
  207. package/dist/main-first-time-setup.impl.js +3 -3
  208. package/dist/main-first-time-setup.js +3 -3
  209. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  210. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  211. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  212. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  213. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  214. package/dist/modes/print-mode.js +1 -1
  215. package/dist/package-manager-cli.code.js +2 -2
  216. package/dist/package-manager-cli.impl.js +3 -3
  217. package/dist/package-manager-cli.js +3 -3
  218. package/dist/startup-files.json +1 -1
  219. package/dist/startup-stages/6.js +1 -1
  220. package/dist/utils/startup-database-spare.code.js +1 -1
  221. package/dist/utils/startup-database-spare.impl.js +3 -3
  222. package/dist/utils/startup-database-spare.js +3 -3
  223. package/dist/utils/tools-manager.impl.js +3 -3
  224. package/dist/utils/tools-manager.js +3 -3
  225. package/docs/background-tasks/reference.md +182 -0
  226. package/docs/background-tasks.md +98 -405
  227. package/docs/build.md +67 -27
  228. package/docs/changelog.mdx +1 -1
  229. package/docs/codemode.md +108 -39
  230. package/docs/compaction/branch-summaries.md +54 -0
  231. package/docs/compaction/custom-compactors.md +161 -0
  232. package/docs/compaction/memory-compaction.md +77 -0
  233. package/docs/compaction/reference.md +86 -38
  234. package/docs/compaction.md +51 -252
  235. package/docs/computer-use.md +169 -321
  236. package/docs/containerization.md +71 -57
  237. package/docs/custom-provider/api-reference.md +119 -25
  238. package/docs/custom-provider/oauth.md +114 -132
  239. package/docs/custom-provider/override.md +37 -27
  240. package/docs/custom-provider/registration.md +107 -83
  241. package/docs/custom-provider/streaming.md +85 -71
  242. package/docs/custom-provider.md +85 -52
  243. package/docs/development.md +39 -29
  244. package/docs/docs.json +76 -63
  245. package/docs/environment-variables.md +94 -44
  246. package/docs/extensions/api-reference.md +86 -43
  247. package/docs/extensions/authoring.md +162 -154
  248. package/docs/extensions/events.md +80 -25
  249. package/docs/extensions/examples.md +90 -85
  250. package/docs/extensions/ui.md +206 -82
  251. package/docs/extensions.md +79 -108
  252. package/docs/getting-started/authentication.md +67 -36
  253. package/docs/getting-started/first-session.md +53 -43
  254. package/docs/getting-started/installation.md +116 -89
  255. package/docs/getting-started/project-instructions.md +48 -34
  256. package/docs/guides/configuration.md +82 -20
  257. package/docs/guides/non-interactive.md +66 -24
  258. package/docs/guides/resume-on-any-machine.md +135 -82
  259. package/docs/guides/team-setup.md +114 -105
  260. package/docs/guides.md +76 -32
  261. package/docs/herdr.md +15 -16
  262. package/docs/how-atomic-works.md +140 -0
  263. package/docs/index.md +58 -44
  264. package/docs/intercom/operations.md +141 -151
  265. package/docs/intercom/reference.md +85 -108
  266. package/docs/intercom.md +84 -145
  267. package/docs/json.md +120 -67
  268. package/docs/keybindings.md +85 -49
  269. package/docs/libraries/agent-core.md +137 -275
  270. package/docs/libraries/ai.md +100 -84
  271. package/docs/libraries/codemode.md +210 -300
  272. package/docs/libraries/schema.md +59 -53
  273. package/docs/libraries/storage-postgres.md +49 -35
  274. package/docs/libraries/telemetry.md +153 -354
  275. package/docs/libraries/tui.md +265 -393
  276. package/docs/libraries.md +42 -26
  277. package/docs/llama-cpp.md +171 -161
  278. package/docs/mcp-servers.md +90 -51
  279. package/docs/models/choose-a-model.md +188 -0
  280. package/docs/models/reference.md +74 -30
  281. package/docs/models.md +153 -88
  282. package/docs/orchestration/migrating-workflows.md +23 -16
  283. package/docs/orchestration/patterns.md +39 -44
  284. package/docs/orchestration.md +65 -26
  285. package/docs/packages/authoring.md +51 -29
  286. package/docs/packages/reference.md +42 -21
  287. package/docs/packages.md +69 -58
  288. package/docs/programmatic.md +118 -24
  289. package/docs/prompt-templates.md +84 -83
  290. package/docs/providers/reference.md +43 -48
  291. package/docs/providers.md +219 -451
  292. package/docs/quickstart.md +140 -120
  293. package/docs/reference/cli.md +135 -97
  294. package/docs/reference.md +20 -18
  295. package/docs/rpc/examples.md +76 -20
  296. package/docs/rpc/extension-ui.md +64 -38
  297. package/docs/rpc/protocol.md +361 -110
  298. package/docs/rpc.md +57 -17
  299. package/docs/sdk/reference.md +409 -534
  300. package/docs/sdk/storage.md +53 -13
  301. package/docs/sdk/structured-decisions.md +82 -56
  302. package/docs/sdk/web-server.md +57 -43
  303. package/docs/sdk.md +106 -84
  304. package/docs/security.md +42 -64
  305. package/docs/session-format.md +62 -38
  306. package/docs/sessions.md +99 -214
  307. package/docs/settings.md +165 -195
  308. package/docs/shell-aliases.md +9 -6
  309. package/docs/skills/authoring.md +69 -48
  310. package/docs/skills/reference.md +51 -20
  311. package/docs/skills.md +99 -148
  312. package/docs/slash-commands.md +129 -0
  313. package/docs/storage/custom-adapters.md +160 -85
  314. package/docs/storage/jsonl.md +81 -66
  315. package/docs/storage/postgres/pgbouncer.md +120 -126
  316. package/docs/storage/postgres/tuning.md +120 -143
  317. package/docs/storage/postgres.md +314 -330
  318. package/docs/storage/sqlite.md +71 -42
  319. package/docs/storage.md +298 -302
  320. package/docs/subagents/authoring.md +55 -38
  321. package/docs/subagents/reference.md +73 -33
  322. package/docs/subagents.md +119 -187
  323. package/docs/terminal-setup.md +50 -38
  324. package/docs/termux.md +67 -41
  325. package/docs/themes/reference.md +23 -19
  326. package/docs/themes.md +142 -127
  327. package/docs/tmux.md +47 -55
  328. package/docs/tools.md +147 -109
  329. package/docs/tui/reference.md +166 -214
  330. package/docs/tui.md +196 -341
  331. package/docs/usage.md +118 -138
  332. package/docs/verification.md +79 -51
  333. package/docs/web-access.md +121 -101
  334. package/docs/windows.md +26 -27
  335. package/docs/worktree-snapshots/reference.md +245 -0
  336. package/docs/worktree-snapshots.md +71 -259
  337. package/package.json +8 -8
  338. package/dist/_shared/startup-0-2-5QHPCEON.js.map +0 -1
  339. package/docs/guides/intercom.md +0 -32
  340. package/docs/guides/orchestration.md +0 -28
  341. package/docs/guides/subagents.md +0 -37
@@ -1,106 +1,100 @@
1
1
  ---
2
- title: "Automate browsers, desktops, and terminals"
3
- sidebarTitle: "Computer use"
2
+ title: "Automate apps, browsers, and terminals"
3
+ sidebarTitle: "Automate apps and browsers"
4
4
  description: "Automate desktop apps, web browsers, interactive terminals, and creative files with Atomic on macOS, Linux, and Windows."
5
5
  ---
6
6
 
7
- Atomic can operate desktop applications, web browsers, interactive terminals, and file-generation tools alongside ordinary code edits. Use computer use to build a Blender scene, assemble a presentation, edit media, or test a real user interface.
8
-
9
- This guide covers tool selection, setup, platform requirements, and safe operation. For choosing checks, reproducing user interactions, and attaching pull-request evidence, see [Verify changes with evidence](/verification).
10
-
11
- Jump to [desktop automation](#desktop-automation-with-agent-desktop), [browser automation](#browser-automation-with-agent-browser), [terminal automation](#terminal-automation-with-herdr), [application scripting](#application-scripting-and-apis), or [creative workflows](#creative-work-and-computer-use-workflows). Platform notes: [macOS](#macos), [Linux](#linux), and [Windows](#windows).
7
+ Atomic can operate desktop applications, web browsers, interactive terminals, and file-generation tools alongside ordinary code edits. Use computer use to test real user interfaces, assemble slides or media, or drive interactive terminal apps.
8
+
9
+ <Columns cols={2}>
10
+ <Card title="Desktop apps (agent-desktop)" href="#desktop-automation-with-agent-desktop">
11
+ Drive native macOS, Linux, and Windows apps through OS accessibility trees.
12
+ </Card>
13
+ <Card title="Web browsers (agent-browser)" href="#browser-automation-with-agent-browser">
14
+ Automate Chrome/Chromium, Mobile Safari in iOS Simulator, and Electron apps.
15
+ </Card>
16
+ <Card title="Interactive terminals (Herdr & tmux)" href="#terminal-automation-with-herdr">
17
+ Send real keystrokes and inspect TUI panes with Herdr, tmux, or Windows psmux.
18
+ </Card>
19
+ <Card title="Verify changes with evidence" href="/verification">
20
+ Choose checks, reproduce bugs cleanly, and attach screenshots or clips to PRs.
21
+ </Card>
22
+ </Columns>
12
23
 
13
24
  ## Choose the right tool
14
25
 
15
- Start with the output you need instead of the app you would click through manually. When a file library, CLI, or API can produce that result directly, a short script is faster and uses fewer tokens than repeated UI actions. Reach for UI automation when a task needs visual inspection, a UI-only control, or end-to-end interface verification.
26
+ Start from the output you need, not the app you would click through manually. When a file library, CLI, or API produces the result directly, a short script is faster and cheaper than repeated UI clicks. Reach for UI automation when a task needs visual inspection, a UI-only control, or end-to-end interface verification.
16
27
 
17
28
  | Task | Preferred tool | When to switch |
18
29
  | --- | --- | --- |
19
- | Create or edit presentations, documents, spreadsheets, or media | **A file library or CLI** | Use an app API or desktop UI when the library drops required features or you need rendered visual checks. |
20
- | Interactive terminal or TUI | **Herdr** | Fall back to tmux on macOS and Linux, or native psmux on Windows, when Herdr is unavailable. Plain shell commands need no multiplexer. |
21
- | Websites in Chrome/Chromium, Mobile Safari in the iOS Simulator or a connected iPhone/iPad, an Electron desktop app (VS Code, Slack, Discord, Figma, Notion, Spotify) or another CDP app, Slack workspaces, or cloud browsers | **agent-browser** | Prefer it for any web content it can reach because text snapshots and element refs cost far fewer tokens than screenshots. See [what agent-browser covers](#what-agent-browser-covers). Switch to agent-desktop for native apps or whenever agent-browser hits a limitation. |
22
- | Native desktop apps, menu bars, desktop Safari or Firefox, browser chrome, OS dialogs, cross-app tasks, or any agent-browser limitation | **agent-desktop** | Use app scripting or a CLI when direct automation is simpler or safer. agent-desktop reads accessibility trees only; native iOS apps and Android emulators need `xcrun simctl`, Appium with XCUITest, or `adb`. See [coverage and limits](#coverage-and-limits). |
23
-
24
- You can mix tools within one task. For example, build slides with `python-pptx` and inspect them in a viewer, generate repeated Blender geometry with Python before adjusting the scene visually, or drive web forms through DOM controls instead of desktop clicks.
30
+ | Create or edit presentations, documents, spreadsheets, or media | **File library or CLI** (`python-pptx`, `openpyxl`, FFmpeg, Blender Python) | Switch to UI automation when you need rendered visual checks or UI-only controls. |
31
+ | Interactive terminal or TUI | **Herdr** (inside a Herdr pane) | Fall back to `tmux` (macOS/Linux) or `psmux` (Windows). Ordinary commands need no multiplexer. |
32
+ | Websites, Mobile Safari (iOS Simulator/device), Electron apps (VS Code, Slack, Figma), or other Chrome DevTools Protocol (CDP) apps | **`agent-browser`** | Prefer it for any reachable web content—text snapshots cost far fewer tokens than screenshots. Switch to `agent-desktop` for native dialogs, browser chrome, or unsupported browsers. |
33
+ | Native desktop apps, desktop Safari/Firefox, menu bars, OS dialogs, cross-app flows | **`agent-desktop`** | Switch to native mobile tooling (`xcrun simctl`, Appium/XCUITest, `adb`) for native iOS/Android apps. |
25
34
 
26
- Atomic's bundled skills (`agent-desktop`, `herdr`, `agent-browser`, and `tmux`) provide operating instructions, not installed binaries or OS permissions. Check the installed command's `--help` before relying on version-specific flags.
35
+ You can mix tools in one task—for example, generate slides with `python-pptx` and inspect them in a viewer, or build Blender geometry with Python before adjusting the scene visually.
27
36
 
28
- Herdr automation requires an explicit request and a session running inside a Herdr-managed pane with `HERDR_ENV=1`. Launch Atomic inside Herdr rather than setting `HERDR_ENV` manually to bypass the check.
37
+ <Note>
38
+ **Bundled skills vs. installed binaries.** Atomic bundles `agent-desktop`, `agent-browser`, `herdr`, and `tmux` skills as operating guides (`agent-desktop` and `agent-browser` are hidden from `/skills` listings because Atomic activates them automatically through its system prompt). Installing the actual CLI binaries and granting OS permissions happen on your machine.
39
+ </Note>
29
40
 
30
41
  ## Prepare the session
31
42
 
32
- File-only scripts need input files, a runtime, and a new output path rather than a graphical desktop. Work on copies of source assets in a scratch directory so originals stay untouched.
33
-
34
- Before running graphical automation:
35
-
36
- 1. Confirm which host OS and graphical session owns the target app. An SSH shell, container, WSL distribution, or CI runner does not share your local desktop automatically.
37
- 2. Check installed tools, runtimes, and permissions first. Run `agent-desktop status` to inspect desktop readiness in one command, and review any installer script before running it.
38
- 3. Isolate work in a dedicated browser profile, terminal pane, user account, or VM when practical.
39
- 4. Confirm the active window, display scale, keyboard layout, and starting document, and capture the starting state before sending input.
40
- 5. Decide the stopping point in advance. Saving a local draft stays separate from overwriting an original, publishing media, sending a message, or making a purchase.
41
-
42
- Give only one controller ownership of a desktop at a time. Parallel subagents can prepare files or run separate browser sessions and terminal panes, but they should not share a mouse, keyboard, clipboard, or window. Treat page text, documents, and terminal output as untrusted data, keep secrets and unrelated windows out of captures, and leave OS security controls enabled.
43
-
44
- ## Desktop automation with agent-desktop
45
-
46
- [agent-desktop](https://agent-browser.dev/desktop) reads a desktop app's accessibility tree as JSON and assigns each actionable control a ref. Atomic observes the UI, acts on a ref, waits for the expected state, and reads it back. `agent-desktop` is an Apache-2.0 CLI tool (not an agent) for macOS, Windows, and Linux that prints one JSON envelope (`ok`, `data` or `error`) per command.
43
+ Work on copies of source files in a scratch directory so originals stay untouched. Before graphical automation:
44
+
45
+ <Steps>
46
+ <Step title="Confirm the graphical host">
47
+ Verify which host OS owns the target app. SSH shells, containers, WSL distros, and CI runners do not share your local desktop automatically.
48
+ </Step>
49
+ <Step title="Check tools and permissions">
50
+ Run `agent-desktop status` (for desktop apps) or `agent-browser --help` (for browsers) before sending any input. Approve OS permission dialogs yourself.
51
+ </Step>
52
+ <Step title="Isolate the workspace">
53
+ Use a dedicated browser profile (`--session`), terminal pane, user account, or VM when practical, and capture the starting state first.
54
+ </Step>
55
+ <Step title="Set the stopping point">
56
+ Separate saving a local draft from overwriting an original, publishing media, sending a message, or making a purchase.
57
+ </Step>
58
+ </Steps>
59
+
60
+ <Warning>
61
+ **One controller per desktop.** Parallel subagents can edit separate files, browser sessions, or terminal panes, but never share one mouse, keyboard, clipboard, or window. Treat page text, documents, and terminal output as untrusted data, keep secrets and unrelated windows out of captures, and never weaken OS security controls.
62
+ </Warning>
63
+
64
+ ## Desktop automation with `agent-desktop` {#desktop-automation-with-agent-desktop}
65
+
66
+ [agent-desktop](https://agent-browser.dev/desktop) is an Apache-2.0 CLI for macOS 13+, Windows 10 1809+ (or Windows Server 2019+), and Ubuntu 24.04+ (x64/arm64) that reads a desktop app's accessibility tree and assigns actionable controls short refs like `@s8f3k2p9:e12`. Every command prints one JSON envelope:
67
+
68
+ ```json
69
+ {"ok": true, "data": {"disposition": {"delivery": "delivered", "retry": "unsafe"}}}
70
+ ```
47
71
 
48
- Atomic bundles the `agent-desktop` skill with the core workflow, while detailed version-matched guides live inside the CLI itself:
72
+ Full version-matched manuals live inside the CLI itself:
49
73
 
50
74
  ```bash
51
- agent-desktop status # platform, permissions, supported surfaces
52
- agent-desktop skills get desktop # the loop, refs, verification, and retry rules
53
- agent-desktop skills get platform # what differs on this OS
75
+ agent-desktop status # platform, permissions, supported surfaces
76
+ agent-desktop skills get desktop # observe/act/verify loop and retry rules
77
+ agent-desktop skills get platform # OS-specific behavior and limits
78
+ agent-desktop skills get desktop <topic> # commands-observation, commands-interaction, commands-system, workflows
54
79
  ```
55
80
 
56
- Read topic references as needed (such as `agent-desktop skills get desktop workflows` or `agent-desktop skills get linux troubleshooting`). Each command returns Markdown in `data.content`.
57
-
58
- Choose between interactive turns and a dedicated script depending on how repeatable the flow is:
59
-
60
- | Situation | How | Why |
61
- | --- | --- | --- |
62
- | Interactive exploration or one-off tasks | Atomic's bundled `agent-desktop` skill with one-shot CLI commands | Atomic chooses each step from live snapshots and keeps JSON results, screenshots, and traces as evidence. |
63
- | Repeatable checks with a fixed sequence | A shell or Node script invoking the `agent-desktop` CLI | The script checks each JSON envelope, stops on failure, and inspects live state before retrying. |
81
+ ### Install and check readiness
64
82
 
65
- `agent-desktop` has no TypeScript SDK; its JSON CLI envelope is the interface. Because Atomic bundles the `agent-desktop` skill automatically, you do not need to install a separate copy with `npx skills add` (a duplicate copy in `~/.agents/skills` can drift behind CLI updates).
66
-
67
- ### Install if missing
68
-
69
- Check `agent-desktop version`. If missing, install it globally on Node 18 or newer:
83
+ Check `agent-desktop version` first. If missing, install globally on Node 18+:
70
84
 
71
85
  ```bash
72
86
  npm install -g agent-desktop
73
87
  agent-desktop version
74
- ```
75
-
76
- Supported platforms are macOS 13+, Windows 10 1809+ (or Windows Server 2019+), and Ubuntu 24.04+ on x64 and arm64. Installing without `-g` places the CLI in `./node_modules/.bin` (run via `npx agent-desktop`). Platform helpers install automatically (`agent-desktop-macos-helper` on macOS and `agent-desktop-linux-clipboard-owner` on Linux; Windows needs none).
77
-
78
- Its `postinstall` script links the native binary. If your package manager blocks install scripts (the default in npm 12), the Node wrapper still works but adds over 100 ms per call and prints a notice. Approve the script and reinstall:
79
-
80
- ```bash
81
- npm install-scripts approve agent-desktop # npm 12
82
- npm install -g agent-desktop --allow-scripts=agent-desktop # npm 11
83
- ```
84
-
85
- Homebrew taps and Scoop buckets were removed in 1.0.1 and can shadow newer npm installs. If `agent-desktop version` is older than expected, check `command -v agent-desktop` (PowerShell: `Get-Command agent-desktop`), remove the older package-manager copy, and reinstall via npm.
86
-
87
- ### Check readiness
88
-
89
- Checking `agent-desktop version` confirms only the binary. Run `agent-desktop status` before any UI action:
90
-
91
- ```bash
92
88
  agent-desktop status
93
89
  ```
94
90
 
95
- - `data.permissions` reports `accessibility`, `automation`, and `screen_recording` (`granted`, `denied`, `unknown`, or `not_required`).
96
- - `data.supported_surfaces` lists the readable overlay types on this OS (`window`, `sheet`, `alert`, `menu`, and platform shell elements).
97
- - `data.state_root` shows where sessions and traces live (`~/.agent-desktop`, overridden by an absolute path in `AGENT_DESKTOP_HOME`).
98
-
99
- Read OS-specific rules with `agent-desktop skills get platform` and the platform sections below ([macOS](#macos), [Linux](#linux), [Windows](#windows)). Fix any missing macOS permission, absent Linux accessibility bus, or missing install, then rerun `agent-desktop status`. Confirm OS consent dialogs yourself when prompted; Atomic pauses rather than attempting to click through system permission dialogs.
91
+ - **Interactive vs. script install policy.** In interactive sessions, Atomic's default system prompt lets the agent make one bounded `npm install -g agent-desktop` attempt when `agent-desktop version` fails (reporting what it installed). Reusable scripts in a [skill's `scripts/` folder](/skills/authoring) should check `agent-desktop version` and `agent-desktop status` upfront and report missing binaries or permissions as blocked rather than installing mid-run.
92
+ - **Avoid slow startup or shadowed installs.** If npm blocks `postinstall` scripts, the CLI falls back to a slower Node launcher—approve its install script (`npm install-scripts approve agent-desktop` on npm 12, or `npm install -g agent-desktop --allow-scripts=agent-desktop` on npm 11) and reinstall. Remove older Homebrew tap or Scoop bucket copies that can shadow npm. Do not run `npx skills add` for `agent-desktop` since Atomic already bundles the skill.
93
+ - **Readiness check.** `agent-desktop status` reports OS permissions (`accessibility`, `automation`, `screen_recording`), readable overlay surfaces (`window`, `sheet`, `alert`, `menu`), and the state folder (`~/.agent-desktop`, overridden by `AGENT_DESKTOP_HOME`). Atomic pauses for you to approve OS consent dialogs rather than clicking through them.
100
94
 
101
- ### Drive an app from the shell
95
+ ### Core workflow and key rules
102
96
 
103
- Map an app with a shallow skeleton, drill into one region, act on a ref, wait for the change, and read it back. Refs are tied to the snapshot that issued them:
97
+ Map the app with a shallow snapshot, drill into one region, act on a ref, wait for the postcondition, and read it back (use `find --app ... --role ... --name ... --exact` when you already know the control):
104
98
 
105
99
  ```bash
106
100
  agent-desktop snapshot --app "Notes" --skeleton -i --compact
@@ -110,334 +104,188 @@ agent-desktop wait --element @s8f3k2p9:e5 --predicate value --value "Done" --tim
110
104
  agent-desktop get @s8f3k2p9:e5 --property value
111
105
  ```
112
106
 
113
- Use refs discovered from the current run. When you already know the role and name, `find --app "Notes" --role button --name "Save" --exact` is cheaper than a full snapshot.
107
+ Keep five operational rules in mind:
114
108
 
115
- - **Verify with reads and check `disposition`.** Use `wait` instead of fixed sleeps. Action results place delivery metadata on `data.disposition`, while error responses place it on **`error.disposition`** (observation commands like `snapshot` have no `disposition` on success; their errors and `INVALID_ARGS` refusals report `delivery: "not_delivered"` and `retry: "safe"`). Retry an action only when `disposition.retry` is `"safe"`; otherwise read live UI state first so you do not submit or click twice.
116
- - **Drilling with `--root` and `STALE_REF`.** A `--root` drill adds new refs to the same snapshot ID. Refs outside the drilled subtree and the drilled root itself remain valid, while old refs inside the drilled subtree are replaced and return `STALE_REF`. On `STALE_REF` or `SNAPSHOT_NOT_FOUND`, take a fresh snapshot and use the new ref.
117
- - **`AMBIGUOUS_TARGET` on macOS versus Windows and Linux.** On **macOS**, refs retain each control's native element address, so identical twin controls (such as repeated Delete buttons in a list) each keep a distinct ref. On **Windows and Linux**, a ref resolves only when the element is unique across the entire window by role, native ID, name, and description. Identical twin controls on Windows and Linux have **no ref path** regardless of `--root` or `find`; the only way to click one is `--headed mouse-click --xy X,Y`, which takes foreground focus and is refused on Linux Wayland. If `AMBIGUOUS_TARGET` returns `details.kind: "identity_not_unique"` because a snapshot timed out before reading the full window, retake the snapshot with a larger `--timeout-ms`.
118
- - **Overlays.** When an action opens a menu, sheet, or alert listed in `data.surfaces`, snapshot that overlay rather than the window behind it. Never pass `--skeleton` on an overlay surface (`--surface menu`, `sheet`, or `alert`).
119
- - **Headless first.** Ref calls use semantic accessibility APIs without stealing focus, cursor, or clipboard. Pass `--headed` only when physical input (double-click, hover, drag, focus) is needed and approved, never as a fallback for headless failures. Destructive shortcuts such as quit and lock require `--force`.
120
- - **PowerShell quoting.** Quote every ref (`'@s8f3k2p9:e12'`) because unquoted `@` triggers splatting in PowerShell.
121
- - **Sessions and batching.** Use `agent-desktop session start --name run-1` and pass `--session` (or `AGENT_DESKTOP_SESSION`) to isolate refs and traces, closing only your session with `agent-desktop session end <id>`. `agent-desktop batch '[...]'` runs commands in one process without transactional rollback.
122
- - **Evidence.** Keep JSON outputs and save screenshots with `agent-desktop screenshot --app "Notes" after.png` (or export an HTML trace with `agent-desktop trace export`). For pull requests, attach before and after PNGs with `gh pr create --body-file body.md --attach 'before.png#Before' --attach 'after.png#After'` after checking captures for private data.
123
-
124
- To inspect web content inside a Chromium or Electron app launched fresh, run `agent-desktop launch "Obsidian" --cdp` to open a loopback debugging port and connect with `agent-browser connect <port>` (see `agent-browser skills get electron`). Confirm before closing an already-running app so unsaved state is not lost. Keep native menus, dialogs, and window controls in `agent-desktop`, and run `close-app` when finished because any local process under your user can access an open CDP port.
109
+ - **Retry only when safe.** Action responses report delivery status (`disposition.retry` on `data` or `error`). Retry automatically only when `retry` is `"safe"` (or on a `TIMEOUT` where element identity could not be resolved, meaning nothing was sent). Otherwise inspect live state (`get`, `is`, a fresh snapshot, or `details.post_state`) before acting again so you do not submit or toggle twice. If `details.retryable` is `false`, waiting will not resolve the error.
110
+ - **Refresh stale refs.** Refs belong to one snapshot. Drilling with `--root` replaces old refs inside that subtree (returning `STALE_REF` if reused) while keeping refs outside it valid. On `STALE_REF` or `SNAPSHOT_NOT_FOUND`, take a fresh snapshot.
111
+ - **Repeated twin controls on Windows and Linux.** On macOS, identical twin buttons (such as Delete buttons in a list) each keep a distinct ref. On Windows and Linux, a ref only resolves when it is unique across the window—identical twins return `AMBIGUOUS_TARGET` and have no ref path, requiring `--headed mouse-click --xy X,Y` (which takes focus and is refused on Linux Wayland). If a snapshot timed out before capturing the full window, retake it with a larger `--timeout-ms`.
112
+ - **Headless first and overlays.** Ref actions use semantic accessibility APIs without stealing focus, cursor, or clipboard. Use `--headed` only when physical input (double-click, hover, drag) is needed and approved—never as a fallback for a failed headless call. Destructive shortcuts (quit, lock) require `--force`. When an action opens a menu, sheet, or alert, snapshot that overlay directly without `--skeleton`.
113
+ - **Sessions, PowerShell, and Electron CDP.** Isolate concurrent runs with `agent-desktop session start --name run-1` and `--session` (or `AGENT_DESKTOP_SESSION`), ending only your own session. In PowerShell, quote every ref (`'@s8f3k2p9:e12'`) so `@` does not trigger splatting. To inspect web content inside a freshly launched Chromium or Electron app, run `agent-desktop launch "App" --cdp` and connect with `agent-browser connect <port>`—then close the app when finished, since any local process under your user can access an open CDP port.
125
114
 
126
115
  ### macOS VM sandboxes
127
116
 
128
- On Apple Silicon Macs running macOS 13 or later, `agent-desktop sandbox` manages isolated local macOS virtual machines. Linux and Windows have no built-in sandbox provider (run `agent-desktop` inside a self-managed Docker container instead).
117
+ On Apple Silicon Macs (macOS 13+), `agent-desktop sandbox` runs isolated local macOS VMs (Linux and Windows have no built-in sandbox provider; run `agent-desktop` inside a self-managed Docker container instead):
129
118
 
130
119
  ```bash
131
- agent-desktop sandbox install # check provider state
132
120
  agent-desktop sandbox install macos # build and sign the VM host
133
- agent-desktop sandbox create demo --provider macos --set from=base # clone a configured sandbox
134
- agent-desktop sandbox start demo # start headless (add --window to show UI)
121
+ agent-desktop sandbox create demo --provider macos --set from=base # clone a configured VM
122
+ agent-desktop sandbox start demo # start headless (add --window for UI)
135
123
  agent-desktop sandbox status demo # wait until state is "running"
136
124
  agent-desktop sandbox exec demo -- status # run a command inside the guest
137
- agent-desktop sandbox stop demo
138
- agent-desktop sandbox rm demo
125
+ agent-desktop sandbox stop demo && agent-desktop sandbox rm demo
139
126
  ```
140
127
 
141
- - **Names and sources.** Sandbox names must be 1 to 32 lowercase letters, digits, or hyphens starting with a letter or digit. `create` requires exactly one source: `--set from=<sandbox>` (recommended for cloning a configured VM), `--set ipsw=latest`, or `--set ipsw=<path>` (downloads a multi-gigabyte macOS IPSW image; first-time IPSW installs are experimental).
142
- - **Lifecycle.** `start` reports `working` until the guest answers; check `status` (or `list`) and wait for `running` before running `exec`. Stop a running sandbox before removing it with `rm`. Read `state`, `message`, and `next` in the JSON output rather than assuming `ok: true` means the VM is ready.
143
- - **Isolation boundary.** A sandbox isolates the desktop, not the network or host services. Sandboxes on the same host share a virtual network and can reach host network services, so keep one trust level per host.
144
-
145
- ### Run a scenario from a script
146
-
147
- Store repeatable desktop checks in a [skill's `scripts/` directory](/skills/authoring) and call them through a permitted shell or codemode step:
128
+ Sandbox names use 1–32 lowercase letters, digits, or hyphens starting with a letter or digit. `create` takes one source: `--set from=<sandbox>` (recommended), `--set ipsw=latest`, or `--set ipsw=<path>` (a multi-gigabyte macOS IPSW system restore image; first-time IPSW installs are experimental). Check `state` and `next` in JSON output rather than assuming `ok: true` means ready: states progress through `unavailable`, `missing`, `ready`, `working`, `needs_setup`, `running`, `stopped`, and `broken`. Stop a running sandbox before `rm`.
148
129
 
149
- - **Preflight.** Run `agent-desktop version` and `agent-desktop status` first. Report a missing binary, permission, or accessibility bus as blocked rather than installing mid-run.
150
- - **Structured calls.** Spawn one `agent-desktop` process per command, parse its JSON envelope, and branch on `ok`, `error.code`, and `data.disposition` or `error.disposition` instead of message text. Give every subprocess a timeout and forward cancellation.
151
- - **Loop and result.** Run `snapshot` (verifying `data.complete`), narrow to one control, act on the ref, `wait` for the postcondition, and read it back. A helpful script convention is to emit `verified`, `refuted`, `blocked`, or `unknown` and exit nonzero for anything other than `verified`. Treat timed-out or uncertain deliveries as `unknown` and inspect live state before replaying mutations.
130
+ <Warning>
131
+ **Sandbox isolation boundary.** A macOS sandbox isolates the desktop, not the network. Sandboxes on the same host share a virtual network and can reach host network services, so keep one trust level per host. Each sandbox stores its pinned SSH key under `<state root>/sandboxes/<name>/`, and inside the guest Accessibility belongs to `sshd-keygen-wrapper`.
132
+ </Warning>
152
133
 
153
- ### Coverage and limits
134
+ ### Coverage and limits {#coverage-and-limits}
154
135
 
155
- `agent-desktop` relies on operating-system accessibility APIs:
136
+ - **No pixel matching.** Controls without an accessibility tree (custom canvases, games, some remote desktops) have no refs. When approved, capture a `screenshot` to inspect visually and send coordinate clicks (`--headed mouse-click --xy X,Y`), noting what stayed unverified.
137
+ - **No native iOS or Android apps.** `agent-desktop` sees mobile simulators only as host windows. Use `xcrun simctl`, Appium with XCUITest, or `adb` with UI Automator for native mobile apps, and `agent-browser -p ios` for Mobile Safari.
138
+ - **Non-Chromium browsers.** Desktop Safari and Firefox expose partial accessibility trees; inspect a snapshot first and prefer `agent-browser` for web pages.
139
+ - **Input actions.** `key-down`, `key-up`, `mouse-down`, and `mouse-up` never send input on any OS; use `press`, `mouse-click`, or `drag`.
156
140
 
157
- - **No pixel matching.** Controls without an accessibility tree (custom canvases, games, or some remote-desktop windows) cannot be targeted by ref. When you approve screenshots and headed input, Atomic can capture a `screenshot` for visual inspection and send coordinate clicks (`--headed mouse-click --xy X,Y`), noting what stayed unverified.
158
- - **No native iOS or Android support.** `agent-desktop` sees simulators and emulators only as host desktop windows, which often omit simulated device controls. Use `xcrun simctl` (including `simctl io booted recordVideo`), Appium with XCUITest, or `adb` with UI Automator for native mobile apps. For Mobile Safari, use [agent-browser's iOS mode](#what-agent-browser-covers).
159
- - **Non-Chromium browsers.** Desktop Safari and Firefox expose varying accessibility trees; inspect a snapshot first and prefer `agent-browser` for supported pages.
160
- - **Reserved input.** `key-down`, `key-up`, `mouse-down`, and `mouse-up` never send input on any OS; use `press`, `mouse-click`, or `drag`.
161
- - **Platform specifics.** Check `agent-desktop skills get platform` for OS-specific `--headed` requirements and unsupported actions.
141
+ ### Stay safe {#stay-safe}
162
142
 
163
- ### Stay safe
143
+ Keep one controller per desktop, work in a dedicated session or account, exclude unrelated windows from captures, and pause before destructive or publishing actions. After any timeout or interruption, inspect the open document and output files before retrying because saves or exports can finish after a lost response.
164
144
 
165
- Keep one controller per desktop, work in a dedicated session or account when practical, exclude unrelated windows from captures, and pause before destructive or publishing actions. After any timeout or interruption, inspect the open document and output files before retrying because saves or exports can finish after a lost response. Never weaken OS security controls to make automation pass.
145
+ ## Browser automation with `agent-browser` {#browser-automation-with-agent-browser}
166
146
 
167
- ## Browser automation with agent-browser
147
+ Use [agent-browser](https://agent-browser.dev/) whenever the target is web content it supports. Its `snapshot` returns a compact accessibility tree with `@eN` refs, targeting real DOM controls at a fraction of screenshot token cost.
168
148
 
169
- Use [agent-browser](https://agent-browser.dev/) whenever the target is web content it supports. Its `snapshot` returns a compact accessibility tree with `@eN` refs, using far fewer tokens than screenshots and targeting real DOM controls. Fall back to [agent-desktop](#desktop-automation-with-agent-desktop) for native apps or when `agent-browser` hits a limitation. For data fetches that need no browser interaction, prefer an authorized API.
170
-
171
- ### What agent-browser covers
149
+ ### What `agent-browser` covers {#what-agent-browser-covers}
172
150
 
173
151
  | Target | How | Notes |
174
152
  | --- | --- | --- |
175
- | Websites and web apps in Chrome/Chromium (macOS, Linux, Windows) | Default engine (headless or `--headed`), `--executable-path` for Brave or other Chromium builds, or `--engine lightpanda` | Supports forms, uploads, downloads, JS dialogs (`dialog accept`/`dismiss`), tabs, iframes, network routing, HAR, console/errors, `a11y` audits, Web Vitals, React inspection, and `record` videos. |
176
- | Mobile Safari in the iOS Simulator or a USB-connected iPhone/iPad | `agent-browser -p ios --device "iPhone 16 Pro" open <url>`, then `snapshot`, `tap`, `fill`, `swipe`, `screenshot` (`agent-browser device list` lists simulators) | Requires macOS, Xcode simulator runtimes, `npm install -g appium`, and `appium driver install xcuitest` (plus a signed WebDriverAgent for physical devices). Single tab only; no `record`, PDF export, `a11y` audits, or `--allowed-domains`. Record video with `xcrun simctl io booted recordVideo <file>.mp4`. First launch takes 30 to 60 seconds; shut down with `agent-browser -p ios close`. |
177
- | Mobile viewport emulation in Chrome | `agent-browser set device "iPhone 14"` or `set viewport <w> <h> <scale>` | Emulates viewport and user agent in Chromium, not WebKit; use `-p ios` for real Safari behavior. |
178
- | Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify) | Launch with `--remote-debugging-port=<port>` and run `agent-browser connect <port>` (see `agent-browser skills get electron`) | Windows and `<webview>` targets appear in `agent-browser tab`. |
179
- | Other CDP targets | `agent-browser connect <port\|ws-url>` or `--auto-connect` for running Chrome | Covers WebView2 on Windows and remote-debugging Chrome. Attach to personal browsers only when authorized. |
180
- | Slack workspaces | `agent-browser skills get slack` | Browser-based Slack automation. |
181
- | Cloud and sandboxed browsers | `-p browserbase`, `browserless`, `browseruse`, `kernel`, or `agentcore`; `agent-browser skills get vercel-sandbox` | Reads credentials from each provider's environment variables. |
182
- | Local HTML or PDF files | `agent-browser --allow-file-access open file:///path/to/file` | Chromium only. |
183
-
184
- Switch to `agent-desktop` for native apps without CDP, already-running Electron apps you cannot restart, desktop Safari or Firefox, browser chrome (toolbars, extension popups, print or save dialogs), OS pickers that `agent-browser upload` cannot bypass, cross-app flows, or unsupported commands.
153
+ | Websites in Chrome/Chromium (macOS, Linux, Windows) | Default engine (headless or `--headed`), `--executable-path` for Brave/Chromium, or `--engine lightpanda` | Forms, uploads, downloads, JS dialogs, tabs, iframes, network routing, HAR, console/errors, `a1y` audits, Web Vitals, React inspection, and `record` videos. |
154
+ | Mobile Safari in iOS Simulator or USB iPhone/iPad | `agent-browser -p ios --device "iPhone 16 Pro" open <url>` | Requires macOS, Xcode simulators, `appium`, and `xcuitest`. Single tab only; no `record`, PDF export, `a1y`, or `--allowed-domains` (record with `xcrun simctl io booted recordVideo`). Close with `agent-browser -p ios close`. |
155
+ | Mobile viewport emulation in Chrome | `agent-browser set device "iPhone 14"` or `set viewport <w> <h> <scale>` | Emulates Chromium viewport/UA, not WebKit Safari. |
156
+ | Electron apps (VS Code, Slack, Discord, Figma, Notion, Spotify) & other CDP targets | Launch with `--remote-debugging-port=<port>` and run `agent-browser connect <port>` (or `--auto-connect`) | Covers WebView2 on Windows and remote-debugging Chrome. See `agent-browser skills get electron`. Attach to personal browsers only when authorized. |
157
+ | Slack workspaces, cloud browsers, local HTML/PDF | `agent-browser skills get slack`, `-p browserbase\|browserless\|browseruse\|kernel\|agentcore`, or `--allow-file-access open file://...` | Cloud providers read credentials from their environment variables. |
185
158
 
186
- Native mobile apps sit outside both tools: `agent-browser`'s iOS mode drives Mobile Safari only, and `agent-desktop` sees a simulator window as an ordinary app. Use `xcrun simctl`, Appium with XCUITest, or `adb` with UI Automator instead. Check `agent-browser --help` and `agent-browser skills get core` for version-specific options.
159
+ Switch to `agent-desktop` for native apps without CDP, already-running Electron apps you cannot restart, desktop Safari or Firefox, browser chrome (toolbars, extension popups, print/save dialogs), OS pickers that `agent-browser upload` cannot bypass, or cross-app flows.
187
160
 
188
161
  ### Setup and first session
189
162
 
190
- Install `agent-browser` globally if missing (use `agent-browser install --with-deps` on Linux to pull required system libraries):
163
+ Install globally (use `agent-browser install --with-deps` on Linux to pull system libraries):
191
164
 
192
165
  ```bash
193
166
  npm i -g agent-browser
194
167
  agent-browser install
195
- agent-browser --help
196
- ```
197
-
198
- Open a uniquely named session, inspect its snapshot, act on live refs, capture evidence, and close only your own session:
199
-
200
- ```bash
201
- agent-browser --session desktop-demo open https://example.com --headed
202
- agent-browser --session desktop-demo snapshot
203
- agent-browser --session desktop-demo screenshot browser-before.png
204
- agent-browser --session desktop-demo close
168
+ agent-browser --session demo open https://example.com --headed
169
+ agent-browser --session demo snapshot
170
+ agent-browser --session demo screenshot browser-before.png
171
+ agent-browser --session demo close
205
172
  ```
206
173
 
207
- Refresh the snapshot after navigation or major DOM changes. Run `agent-browser skills get core --full` for the full command reference.
208
-
209
- ### Best practices
210
-
211
- - Reuse the same `--session` name (or `AGENT_BROWSER_SESSION`) across a flow and close only sessions you created.
212
- - Prefer fresh profiles over attaching to personal browsers, and never commit or upload cookies, saved auth profiles, or sensitive network logs.
213
- - Use `--headed` for visual verification; headless runs check DOM behavior without proving native dialogs or desktop integration.
214
- - Check `agent-browser console`, `agent-browser errors`, and `agent-browser network requests` alongside visible state, and use `agent-browser upload` for file inputs instead of OS pickers.
215
- - Keep `screenshot` PNGs and `record` recordings from the verified flow. When work ends in a pull request, attach them with `gh pr create --attach` next to the scenario they prove after checking for private data.
216
- - Label emulated viewports clearly: `set device` tests Chromium viewport layout, `-p ios` tests Mobile Safari, and native mobile apps require `adb`, `xcrun simctl`, or Appium with XCUITest.
174
+ - Reuse one unique `--session` name (or `AGENT_BROWSER_SESSION`) per flow, refresh snapshots after navigation or DOM changes, and close only sessions you created.
175
+ - Prefer fresh profiles over attaching to personal browsers, and never commit cookies, auth profiles, or sensitive network logs.
176
+ - Use `--headed` for visual verification, check `console`, `errors`, and `network requests` alongside UI state, and use `agent-browser upload` instead of OS file pickers. Run `agent-browser skills get core --full` for the complete command reference.
217
177
 
218
- ## Terminal automation with Herdr
178
+ ## Terminal automation with Herdr {#terminal-automation-with-herdr}
219
179
 
220
- Use Herdr for interactive terminal or TUI automation on macOS, Linux, and Windows when [eligible](#choose-the-right-tool). Run ordinary builds and non-interactive commands through the standard shell tools instead.
180
+ Use Herdr for interactive terminal or TUI automation when explicitly requested and running inside a Herdr-managed pane. Run ordinary non-interactive commands through the standard shell tools instead.
221
181
 
222
- ### Setup and a dedicated pane
182
+ <Note>
183
+ **Herdr environment and status integration.** Built-in Herdr status reporting runs in interactive TUI sessions when all four managed-pane environment variables are present: `HERDR_ENV=1`, `HERDR_BIN_PATH`, `HERDR_PANE_ID`, and `HERDR_SOCKET_PATH`. Launch Atomic inside Herdr rather than setting `HERDR_ENV` manually. Disable status reporting with `{ "herdr": { "enabled": false } }` in `settings.json` plus `/reload`. See [Herdr](/herdr).
184
+ </Note>
223
185
 
224
- Check `herdr --version` and `herdr --help`, or install from the [Herdr installation guide](https://github.com/herdrdev/herdr/tree/v0.9.5#install) (`brew install herdr` on macOS, plus official shell and PowerShell installers). Inside a managed pane, check `herdr status` without restarting an active server.
186
+ ### Dedicated pane and commands
225
187
 
226
- Atomic's built-in Herdr status reporting runs in interactive TUI sessions (not subagents or non-TUI runs). To disable it, set `{ "herdr": { "enabled": false } }` in `settings.json` and run `/reload` (which releases the pane registration). See [Herdr integration](/herdr) for details.
227
-
228
- Create a dedicated sibling pane without stealing focus:
188
+ Install from the [Herdr installation guide](https://github.com/herdrdev/herdr/tree/v0.9.5#install) (`brew install herdr` on macOS, or the official shell/PowerShell installers). Check `herdr status` without restarting an active server, then split a dedicated sibling pane without stealing focus:
229
189
 
230
190
  ```bash
231
191
  herdr pane split --current --direction right --cwd "$PWD" --no-focus
232
- ```
233
-
234
- Use the returned `<pane-id>` to run commands, wait for output, and capture the screen:
235
-
236
- ```bash
237
192
  herdr pane run <pane-id> "<command>"
238
193
  herdr pane wait-output <pane-id> --match "<expected text>" --timeout 10000
239
- herdr pane wait-output <pane-id> --regex "<rust-regex>" --timeout 10000
240
194
  herdr pane read <pane-id> --source visible
241
195
  ```
242
196
 
243
- - `pane run` submits with Enter, while `pane send-text` does not.
244
- - `pane wait-output` accepts `--match` for a literal substring or `--regex` for a Rust regular expression. Omitting `--timeout` waits indefinitely. Because `wait-output` inspects existing output immediately, use a fresh pane or unique marker and verify the final exit status or state.
245
- - Use `--source recent-unwrapped --lines 120` for logs and `--source visible` for layout, capturing alternate-screen views before leaving them.
246
-
247
- **Controlling coding agents and saved SSH machines.** Herdr also tracks recognized coding agents inside panes and can target saved SSH machine profiles:
197
+ - `pane run` submits with Enter; `pane send-text` does not (avoid sending very long single lines on macOS canonical TTY buffers). `pane move` assigns a new pane ID.
198
+ - `pane wait-output` supports `--match` (literal substring) or `--regex` (Rust regex) and inspects existing output immediately—use a fresh pane or unique marker, and pass `--timeout` so it does not wait indefinitely.
199
+ - Use `--source recent-unwrapped --lines 120` for logs and `--source visible` for TUI layout, capturing alternate-screen views before leaving them.
200
+ - **Coding agents and SSH machines.** Manage recognized coding agents in idle shell panes (`herdr agent start` never splits a pane and uses a 30s startup timeout; `herdr agent prompt --wait` uses a 5s activity gate and refuses blocked agents):
248
201
 
249
202
  ```bash
250
203
  herdr agent start reviewer --kind codex --pane <pane-id>
251
204
  herdr agent prompt reviewer "Review the diff and report actionable findings." --wait --timeout 120000
252
- herdr agent wait reviewer --until blocked --timeout 120000
253
205
  herdr agent read reviewer --source recent-unwrapped --lines 120
254
206
  ```
255
207
 
256
- To target a saved SSH machine profile, prepend `--machine <label-or-id>` to discovery and subsequent commands (for example `herdr --machine build-box agent list`). Do not combine `--machine` with `--session`, `--remote`, or `--current`.
208
+ Prepend `--machine <label-or-id>` to target saved SSH machine profiles (do not combine `--machine` with `--session`, `--remote`, or `--current`). Herdr exits `1` on server JSON errors and `2` on CLI syntax errors.
257
209
 
258
- ### tmux and psmux fallbacks
210
+ ### `tmux` and `psmux` fallbacks
259
211
 
260
- When Herdr is unavailable or ineligible, use tmux on macOS and Linux, or [psmux](https://github.com/psmux/psmux) for native Windows terminals. Never take over an unrelated pane or kill the entire multiplexer server during cleanup.
261
-
262
- In tmux, start a uniquely named session and read its actual pane ID instead of assuming `%0`:
212
+ When Herdr is unavailable, use `tmux` on macOS and Linux, or [psmux](https://github.com/psmux/psmux) for native Windows terminals. Never hijack an unrelated pane or kill the whole server during cleanup.
263
213
 
264
214
  ```bash
265
215
  tmux new-session -d -s atomic-demo
266
216
  tmux list-panes -t atomic-demo -F '#{pane_id}'
267
- ```
268
-
269
- Send literal text separately from Enter, then capture the pane:
270
-
271
- ```bash
272
- tmux send-keys -t <pane-id> -l -- "<command>"
217
+ tmux send-keys -t <pane-id> -l -- "npm test; printf '%s%s\n' 'DONE_' 'a1b2c3'"
273
218
  tmux send-keys -t <pane-id> Enter
274
219
  tmux capture-pane -p -t <pane-id>
275
220
  ```
276
221
 
277
- Use the bundled tmux skill's `scripts/wait-for-text.sh -t <pane-id> -F -p <marker> -T <seconds>` to wait for completion markers; on timeout, inspect the pane before retrying. For psmux commands, see the [psmux scripting guide](https://github.com/psmux/psmux/blob/master/docs/scripting.md). For modified-key setup in Atomic, see [tmux setup](/tmux).
222
+ Use the bundled wait helper `skill://tmux/scripts/wait-for-text.sh -t <pane-id> -F -p <marker> -T <seconds>` (`-T 0` times out immediately). Split completion markers across arguments (as in `printf '%s%s\n' 'DONE_' 'a1b2c3'`) so `wait-for-text.sh` does not match the echoed command line in scrollback. See [tmux setup](/tmux) for interactive keybinding setup and the [psmux scripting guide](https://github.com/psmux/psmux/blob/master/docs/scripting.md) for Windows.
278
223
 
279
224
  ## Application scripting and APIs
280
225
 
281
- Direct file libraries handle structured slide decks, documents, and spreadsheets without opening an Office app or graphical session. Use an application's scripting runtime or API when you need app-specific features, and keep `agent-desktop` for remaining UI steps.
226
+ Prefer direct file libraries or app APIs for structured slides, documents, spreadsheets, media, and 3D scenes; reserve `agent-desktop` for visual checks and UI-only steps. Always work on a disposable copy and reopen saved outputs to verify them.
282
227
 
283
- | Mechanism | Good uses | Limits to check first |
228
+ | Mechanism | Best for | Quick start & limits to check |
284
229
  | --- | --- | --- |
285
- | `python-pptx`, `python-docx`, `openpyxl` | Create or edit `.pptx`, `.docx`, and `.xlsx` files without Office installed. | `python-pptx` does not render slides or export PDF, and `openpyxl` does not calculate Excel formulas. Verify complex templates in a real viewer. |
286
- | Media CLIs (such as FFmpeg) | Batch-convert, trim, or combine audio and video. | Exports are not editable timeline projects; check codec, audio, and timing. |
287
- | AppleScript or JXA (`osascript`) | Automate scriptable macOS apps and document objects directly. | macOS only; scripting dictionary coverage varies by app. |
288
- | Office Scripts | Repeatable Excel edits from the Automate tab and supported Power Automate flows. | Excel only; depends on account, app version, and organization policy. |
289
- | PowerShell COM or Office VBA | Automate desktop Excel, Word, or PowerPoint object models. | Needs desktop Office and permitted macros; Windows COM is not portable to macOS or Excel on the web. |
290
- | Application APIs (such as Blender Python) | Generate geometry, batch-edit scenes, and render headlessly. | Run inside the app's own Python runtime (`blender --background ...`) rather than a plain `uv` environment. |
291
-
292
- Check the target library or app API reference before scripting, start on a disposable copy, and reopen saved outputs to verify them. Appearance checks still need a viewer or renderer.
293
-
294
- ### Example recipes
295
-
296
- **macOS (`osascript`):** Inspect an app's scripting dictionary via Script Editor (`File > Open Dictionary`) and pass dynamic text as script arguments instead of interpolating it into code:
297
-
298
- ```bash
299
- osascript -e 'on run argv' -e 'tell application "TextEdit" to make new document with properties {text:(item 1 of argv)}' -e 'end run' "Draft outline"
300
- ```
301
-
302
- macOS prompts once for Automation permission; grant it interactively. JavaScript for Automation (JXA) is another macOS option via `osascript -l JavaScript script.js`; it uses Apple's automation objects rather than browser DOM or Node.js APIs. See Apple's [scripting terminology guide](https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/AboutScriptingTerminology.html).
303
-
304
- **Presentations (`python-pptx` with `uv`):** Save this script as `create_deck.py` in a scratch directory:
305
-
306
- ```python
307
- from pathlib import Path
308
- from pptx import Presentation
309
-
310
- deck = Presentation()
311
- title_slide = deck.slides.add_slide(deck.slide_layouts[0])
312
- title_slide.shapes.title.text = "Quarterly review"
313
- title_slide.placeholders[1].text = "Draft for discussion"
314
-
315
- summary = deck.slides.add_slide(deck.slide_layouts[1])
316
- summary.shapes.title.text = "Next steps"
317
- body = summary.placeholders[1].text_frame
318
- body.text = "Review the results"
319
- body.add_paragraph().text = "Agree on next quarter's priorities"
320
-
321
- output = Path("quarterly-review-draft.pptx")
322
- with output.open("xb") as stream:
323
- deck.save(stream)
324
- print(f"Created {output.resolve()}")
325
- ```
326
-
327
- Run it with [uv](https://docs.astral.sh/uv/) using `--no-project` so you do not modify an unrelated project environment:
328
-
329
- ```bash
330
- uv run --no-project --with python-pptx python create_deck.py
331
- ```
332
-
333
- Exclusive creation (`open("xb")`) prevents overwriting an existing file. See the [python-pptx quickstart](https://python-pptx.readthedocs.io/en/latest/user/quickstart.html), [python-docx](https://python-docx.readthedocs.io/en/latest/), and [openpyxl](https://openpyxl.readthedocs.io/en/stable/).
334
-
335
- **Desktop Office (VBA and Office Scripts):** Keep VBA macros inside a trusted `.xlsm` copy, reference `ThisWorkbook` and named sheets instead of `Selection` or `ActiveSheet`, and respect organization Trust Center policies rather than lowering macro security:
230
+ | `python-pptx`, `python-docx`, `openpyxl` | Generating or editing `.pptx`, `.docx`, `.xlsx` without Office installed | Run via `uv run --no-project --with python-pptx python script.py` and write to a new path (`open("xb")`). Does not render slides or recalculate Excel formulas—verify complex layouts in a viewer. |
231
+ | Media CLIs (FFmpeg) | Batch-converting, trimming, or combining audio/video | Exports are flat media, not editable timeline projects; check codec, audio, and timing. |
232
+ | AppleScript / JXA (`osascript`) | Driving scriptable macOS apps directly | Pass dynamic strings via `argv` rather than interpolating into code (`osascript -l JavaScript` for JXA). Requires one-time macOS Automation permission. |
233
+ | Office Scripts / VBA / COM | Automating Excel, Word, or PowerPoint object models | Keep VBA inside a trusted `.xlsm` copy targeting `ThisWorkbook` and named sheets; respect Trust Center policies. Windows COM is not portable to macOS or Excel on the web. |
234
+ | Blender Python | Generating geometry, batch-editing scenes, headless renders | Run inside Blender's Python: `blender --background input.blend --python-exit-code 1 --python script.py` and save/export explicitly to a new path. |
336
235
 
337
- ```vb
338
- Option Explicit
236
+ ## Platform setup
339
237
 
340
- Sub FormatSummary()
341
- Dim report As Worksheet
342
- Set report = ThisWorkbook.Worksheets("Summary")
238
+ ### macOS {#macos}
343
239
 
344
- report.Range("A1:D1").Font.Bold = True
345
- report.Range("B2:D20").NumberFormat = "#,##0.00"
346
- report.Range("A1:D20").Columns.AutoFit
347
- End Sub
348
- ```
349
-
350
- For Excel on the web or Microsoft 365 with the Automate tab, see [Office Scripts versus VBA](https://learn.microsoft.com/en-us/office/dev/scripts/resources/vba-differences).
351
-
352
- **Blender batch scripting:** Load the `.blend` file before the script and pass `--python-exit-code 1` so Python errors return a nonzero exit status:
353
-
354
- ```bash
355
- blender --background input.blend --python-exit-code 1 --python scene-script.py
356
- ```
357
-
358
- The script must explicitly save or export to a new path. See the [Blender Python quickstart](https://docs.blender.org/api/current/info_quickstart.html) and [command-line reference](https://docs.blender.org/manual/en/latest/advanced/command_line/arguments.html).
359
-
360
- ## macOS
361
-
362
- ### macOS permissions and native tools
363
-
364
- - Install `agent-desktop` via [`npm install -g agent-desktop`](#install-if-missing) (macOS 13+, Intel or Apple Silicon) and `uv` via `brew install uv` or the [uv installer](https://docs.astral.sh/uv/getting-started/installation/).
365
- - Accessibility permission applies to the app launching the command (Terminal, iTerm2, Warp, VS Code). Run `agent-desktop permissions` to check state and `agent-desktop permissions --guide` to open System Settings so you can approve with Touch ID or your password. New grants take effect on the next call without restarting the terminal. Grant the `agent-desktop` binary too if System Settings lists it. Screen Recording is needed only for `screenshot`.
366
- - AppleScript may prompt for Automation permission (`agent-desktop permissions` shows `unknown` until macOS prompts).
367
- - Prefer refs over coordinates. Before any coordinate action, read live `bounds` from the same snapshot (`get --property bounds` reports `data.live`). Use `osascript`, `System Events` ([Apple UI scripting guide](https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/AutomatetheUserInterface.html)), `screencapture`, or QuickTime Player when native macOS tooling fits best.
368
-
369
- ### macOS browsers and terminals
240
+ - Install `agent-desktop` via npm (macOS 13+, Intel or Apple Silicon) and `uv` via `brew install uv`.
241
+ - Grant **Accessibility** to the launching terminal app (Terminal, iTerm2, Warp, VS Code—and `agent-desktop` if listed) via `agent-desktop permissions --guide`. Grants apply on the next call without restarting. **Screen Recording** is needed only for `screenshot`; AppleScript prompts once for **Automation**.
242
+ - Default `agent-browser` runs Chromium, not Safari—use `agent-browser -p ios` for Mobile Safari and `agent-desktop` for desktop Safari.
370
243
 
371
- Default `agent-browser` runs Chromium, not Safari. Use `agent-browser -p ios` with an iOS Simulator for Mobile Safari, and `agent-desktop` for desktop Safari. Homebrew ships both Herdr and tmux.
244
+ ### Linux {#linux}
372
245
 
373
- ## Linux
246
+ - Install `agent-desktop` via npm (Ubuntu 24.04+ on x64/arm64; other distros need `at-spi2-core` per `agent-desktop skills get linux`) and `agent-browser install --with-deps` to pull browser libraries.
247
+ - Run `agent-desktop status` inside the graphical session owning the target apps so the **AT-SPI** (Linux desktop accessibility bus) session bus and display are inherited. An empty surface list means AT-SPI did not answer (common on bare SSH shells, TTYs, or containers).
248
+ - Semantic ref actions work on both X11 and Wayland; pointer gestures (`double-click`, `hover`, `drag`, `--headed mouse-click --xy`) and wheel scrolling require X11 with `--headed` and return `ACTION_NOT_SUPPORTED` on Wayland. For unattended X11 runs, Xvfb with `xfce4` and a session bus works well (though it does not verify real Wayland/GPU rendering).
374
249
 
375
- ### Linux accessibility bus and display
250
+ ### Windows {#windows}
376
251
 
377
- - Install `agent-desktop` via [`npm install -g agent-desktop`](#install-if-missing) (Ubuntu 24.04+ on x86_64 or aarch64; other distros need the `at-spi2-core` bridge steps in `agent-desktop skills get linux`) and `uv` via the [uv installer](https://docs.astral.sh/uv/getting-started/installation/) or your distro package manager.
378
- - Run `agent-desktop status` inside the graphical session that owns the target apps so the [AT-SPI](https://gnome.pages.gitlab.gnome.org/at-spi2-core/) session bus, display, and runtime directory are inherited. An empty `supported_surfaces` means AT-SPI did not respond (common on TTY logins, bare SSH shells, or containers without a session bus).
379
- - Observation and semantic ref actions work on both X11 and Wayland without helper tools. Pointer gestures (`double-click`, `hover`, `drag`, `--headed mouse-click --xy`) and wheel scrolling require X11 with `--headed` and return `ACTION_NOT_SUPPORTED` on Wayland.
380
- - For unattended X11 automation, a virtual display such as Xvfb with `xfce4` and a session bus works well, though it does not substitute for a real Wayland or GPU test. `xdotool` and `wmctrl` can supplement window placement on X11; OBS or a native recorder handles desktop video.
381
-
382
- ### Linux browsers and terminals
383
-
384
- Run `agent-browser install --with-deps` on minimal Linux hosts to install system libraries alongside Chromium. Headed browsers need a display; headless mode works over SSH or CI without desktop access. Use Herdr when eligible, or tmux on local and remote POSIX shells.
385
-
386
- ## Windows
387
-
388
- ### Windows desktop sessions and UI Automation
389
-
390
- - Install `agent-desktop` via [`npm install -g agent-desktop`](#install-if-missing) from PowerShell and verify `agent-desktop version` (open a new shell if `Path` changed). Install `uv` with `winget install --id=astral-sh.uv -e` or the [uv installer](https://docs.astral.sh/uv/getting-started/installation/).
391
- - Run inside the signed-in user's interactive desktop session (Windows 10 1809+ or Windows Server 2019+). Session 0 services, Server Core, the UAC secure desktop, the sign-in screen, locked desktops, and other users' sessions are unsupported. No permission dialog exists (`automation` reports `not_required`).
392
- - Windows blocks input from a non-elevated terminal into an elevated app (UIPI). Handle elevated windows yourself or use a non-elevated path instead of running Atomic with elevated privileges just to force input through.
393
- - In PowerShell, quote refs (`'@s8f3k2p9:e1'`) and set env vars with `$env:NAME = 'value'`. Restore minimized windows first (`agent-desktop restore --app <name>`) and prefer `set-value` over `--headed` `type`. Keep remote desktop sessions unlocked and recheck coordinates after DPI or monitor changes.
394
- - `agent-desktop` reads [Windows UI Automation](https://learn.microsoft.com/en-us/dotnet/framework/ui-automation/ui-automation-overview) trees directly; use Snipping Tool or OBS when desktop recordings are needed.
395
-
396
- ### Windows browsers and terminals
397
-
398
- Use native Windows `agent-browser` for Windows browsers, downloads, and dialogs, quoting paths and URLs for PowerShell. Check `$env:HERDR_ENV -eq '1'` and use `(Get-Location).Path` for native Herdr; fall back to native psmux when Herdr cannot be used (WSL tmux does not test Windows ConPTY). See [Windows setup](/windows) for shell configuration.
399
-
400
- ## Creative work and computer-use workflows
401
-
402
- Choose the deliverable first and add UI interaction only where scripting cannot create or verify the result.
403
-
404
- | Task | Practical approach | Useful deliverables |
405
- | --- | --- | --- |
406
- | Blender 3D modeling | Use Blender Python for repeatable geometry or scene setup; use `agent-desktop` for visible editor tweaks and inspection. | Editable `.blend` file, exported model, and preview render. |
407
- | Presentations | Generate slides with `python-pptx`, inspect in a viewer, and use `agent-desktop` for layout refinements or slideshow checks. | Editable `.pptx` deck plus exported PDF or slide previews. |
408
- | Video editing | Use media CLIs or editor APIs for repetitive transforms; use `agent-desktop` for timeline adjustments and playback review. | Editable project, source references, and final export. |
409
- | Cross-app work | Combine native scripting for file operations with `agent-desktop` addressing each window by app name and window ID. | Saved documents and a short record of completed steps. |
252
+ - Install `agent-desktop` via npm from PowerShell and `uv` via `winget install --id=astral-sh.uv -e`.
253
+ - Run inside the signed-in user's interactive desktop session (Windows 10 1809+ or Windows Server 2019+). Session 0 services, Server Core, UAC secure desktops, and locked desktops are unsupported. No permission dialog is required.
254
+ - Windows **UIPI** (User Interface Privilege Isolation) blocks input from a non-elevated terminal into an elevated app—handle elevated windows yourself instead of elevating Atomic.
255
+ - In PowerShell, quote refs (`'@s8f3k2p9:e1'`) and set env vars with `$env:NAME = 'value'`. Restore minimized windows first (`agent-desktop restore --app <name>`) and prefer `set-value` over `--headed` `type`.
256
+ - Fall back to native `psmux` when Herdr is unavailable (WSL `tmux` does not test Windows **ConPTY**, the Windows pseudo-console). See [Windows setup](/windows).
410
257
 
411
- Keep the editable project and requested export intact rather than substituting a screenshot. Reopen saved files to check assets, fonts, audio, and timing. Keep originals untouched, save to explicit output paths, and confirm authorization before paid renders or uploads.
258
+ ## Creative and cross-app workflows
412
259
 
413
- Typical desktop sequence:
260
+ Choose the deliverable first and keep editable project files alongside final exports (never substitute a screenshot for an editable `.blend`, `.pptx`, or video project):
414
261
 
415
- 1. Prepare assets and confirm the target app, output format, and permissions.
416
- 2. Open the dedicated desktop session and inspect its starting state.
417
- 3. Combine app APIs with `agent-desktop` steps, saving checkpoints along the way.
418
- 4. Reopen and verify deliverables, making bounded fixes as needed.
419
- 5. Hand off local files and publish only to authorized destinations.
262
+ <Steps>
263
+ <Step title="Prepare assets and confirm permissions">
264
+ Copy source assets to a scratch folder, confirm the target app and output format, and verify `agent-desktop status`.
265
+ </Step>
266
+ <Step title="Combine APIs with UI steps">
267
+ Generate repetitive structure with Python/CLI tools (Blender Python, `python-pptx`, FFmpeg), then refine layout or inspect visuals in `agent-desktop`, saving checkpoints as you go.
268
+ </Step>
269
+ <Step title="Reopen and verify deliverables">
270
+ Reopen exported files to verify fonts, assets, audio, and timing. Keep originals untouched and confirm approval before paid renders or uploads.
271
+ </Step>
272
+ </Steps>
420
273
 
421
- When delegating computer use to subagents, keep desktop control with one agent at a time, share scripts, project files, and artifact paths instead of long click logs, and keep approvals in your main chat.
274
+ When delegating computer use to subagents, keep desktop control with one agent at a time, pass scripts and output paths rather than long click logs, and keep publication approvals in your main chat.
422
275
 
423
276
  ## Troubleshooting
424
277
 
425
278
  | Symptom | What to check |
426
279
  | --- | --- |
427
- | `agent-desktop`, `uv`, or another CLI is missing | Install once when permitted, refresh `PATH`, and recheck its version in the same shell. |
428
- | Every `agent-desktop` call is slow, or warns about the Node launcher | Approve its install script (`npm install-scripts approve agent-desktop` on npm 12, or `npm install -g agent-desktop --allow-scripts=agent-desktop` on npm 11) and reinstall. |
429
- | `agent-desktop version` is outdated or points to an unexpected path | Remove any older Homebrew tap or Scoop bucket install shadowing npm, then reinstall globally via npm. |
430
- | `permissions` shows `denied`, an app tree is empty, or `PERM_DENIED` | On macOS, run `agent-desktop permissions --guide` to grant Accessibility (and Screen Recording for screenshots) to the launching app. Check `status` before assuming an app has no UI. |
431
- | `supported_surfaces` is empty on Linux, or no apps appear | AT-SPI did not respond. Run inside the user's graphical session (not a TTY, bare SSH shell, or container) and recheck `agent-desktop status`. |
432
- | `STALE_REF` or `SNAPSHOT_NOT_FOUND` | Take a fresh snapshot (remember `--root` drills replace old refs inside the drilled subtree while keeping refs outside it) and act on the new ref. |
433
- | `AMBIGUOUS_TARGET` | On Windows and Linux, identical twin controls have no ref path regardless of `--root` or `find`; target a unique control or use `--headed mouse-click --xy X,Y` (not available on Wayland). If `details.kind` is `identity_not_unique` after an incomplete capture, retake the snapshot with a larger `--timeout-ms`. |
434
- | Action succeeded or errored, and UI looks unchanged | Use `wait` or read the state back. Retry only when `data.disposition.retry` (on success) or `error.disposition.retry` (on error) is `"safe"`. |
435
- | Snapshot is thin or `data.complete` is `false` | Drill with `--root` or raise `--timeout-ms` (a cold Chromium or Electron app can take 10 to 25 seconds to expose its web tree). |
436
- | Black screenshot or missing desktop | Check screen permissions, display ownership, X11 versus Wayland, and remote-session lock state. |
437
- | Input lands in the wrong app | Stop and confirm focus, window identity, scaling, and exclusive desktop ownership. |
438
- | Browser element ref fails | Take a fresh snapshot and locate the updated control. |
439
- | Herdr exists but control fails | Check explicit user request, `HERDR_ENV=1` managed-pane context, and client/server compatibility; fall back to tmux or psmux instead of replacing an active server. |
440
- | Save or export timed out | Inspect output files and app state before retrying; keep partial output for diagnosis. |
441
- | Install or graphical access is blocked | Finish any safe API or shell checks and report what remains blocked or unverified. |
442
-
443
- When a tool or permission is unavailable, choose another supported path or report the limitation clearly instead of simulating success.
280
+ | `agent-desktop` is slow or warns about the Node launcher | Approve its install script (`npm install-scripts approve agent-desktop` on npm 12, or `--allow-scripts=agent-desktop` on npm 11) and reinstall. |
281
+ | `agent-desktop version` is outdated | Remove older Homebrew tap or Scoop bucket installs shadowing npm (`command -v agent-desktop` / `Get-Command agent-desktop`) and reinstall via npm. |
282
+ | Empty app tree or `PERM_DENIED` on macOS | Run `agent-desktop permissions --guide` and grant Accessibility (plus Screen Recording for screenshots) to the launching terminal app. |
283
+ | No apps or empty surfaces on Linux | Run inside the graphical session with an active AT-SPI bus (not a bare SSH shell, TTY, or container) and recheck `agent-desktop status`. |
284
+ | `STALE_REF` or `SNAPSHOT_NOT_FOUND` | Take a fresh snapshot (`--root` drills invalidate earlier refs inside that subtree) and act on the new ref. |
285
+ | `AMBIGUOUS_TARGET` on Windows or Linux | Identical twin controls have no ref path; target a unique control or use `--headed mouse-click --xy X,Y` (X11/Windows only, refused on Wayland). If caused by a slow window capture, raise `--timeout-ms`. |
286
+ | Action succeeded or timed out, and UI looks unchanged | Use `wait` or read live state back before retrying. Retry automatically only when `disposition.retry` is `"safe"`. |
287
+ | Incomplete desktop snapshot | Drill with `--root` or increase `--timeout-ms` (cold Chromium/Electron apps can take 10–25 seconds to expose their web tree). |
288
+ | Black screenshot or input in wrong app | Check Screen Recording permission, X11 vs. Wayland, locked remote sessions, window focus, display scaling, and exclusive desktop ownership. |
289
+ | Herdr command fails | Confirm an explicit request, all four `HERDR_*` managed-pane env vars, and server health (`herdr status`); fall back to `tmux` or `psmux` rather than restarting an active server. |
290
+
291
+ When a tool or permission is unavailable, use another supported path or report the limitation clearly instead of simulating success.