@bastani/atomic 0.10.9 → 0.10.10-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 (401) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +211 -155
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +27 -12
  7. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
  9. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  10. package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
  11. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  12. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
  13. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
  14. package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
  15. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  16. package/dist/_shared/runtime-O4KCSG4C.js +5 -5
  17. package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
  18. package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
  19. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  20. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  21. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
  22. package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
  23. package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
  24. package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
  25. package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
  26. package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
  27. package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
  28. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
  29. package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
  30. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
  31. package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
  32. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
  33. package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
  34. package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
  35. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  36. package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
  37. package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
  38. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
  39. package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
  40. package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
  41. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  42. package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
  43. package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
  44. package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
  45. package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
  46. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  47. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  48. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  49. package/dist/builtin/intercom/README.md +85 -114
  50. package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
  51. package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
  52. package/dist/builtin/intercom/group.ts +7 -3
  53. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  54. package/dist/builtin/intercom/package.json +1 -1
  55. package/dist/builtin/mcp/README.md +37 -27
  56. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  57. package/dist/builtin/mcp/package.json +1 -1
  58. package/dist/builtin/subagents/CHANGELOG.md +8 -0
  59. package/dist/builtin/subagents/README.md +71 -138
  60. package/dist/builtin/subagents/package.json +1 -1
  61. package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
  62. package/dist/builtin/web-access/CHANGELOG.md +9 -0
  63. package/dist/builtin/web-access/README.md +60 -87
  64. package/dist/builtin/web-access/index.bundle.mjs +387 -351
  65. package/dist/builtin/web-access/package.json +1 -1
  66. package/dist/cli/args.js +2 -2
  67. package/dist/cli/auth-cli.code.js +4 -4
  68. package/dist/cli/auth-cli.impl.js +3 -3
  69. package/dist/cli/auth-cli.js +3 -3
  70. package/dist/cli/blueprint-command.code.js +2 -2
  71. package/dist/cli/blueprint-command.impl.js +3 -3
  72. package/dist/cli/blueprint-command.js +3 -3
  73. package/dist/cli/intercom-command.code.js +3 -3
  74. package/dist/cli/intercom-command.impl.js +3 -3
  75. package/dist/cli/intercom-command.js +3 -3
  76. package/dist/cli/list-models.code.js +3 -3
  77. package/dist/cli/list-models.impl.js +3 -3
  78. package/dist/cli/list-models.js +3 -3
  79. package/dist/cli/session-picker.code.js +2 -2
  80. package/dist/cli/session-picker.impl.js +3 -3
  81. package/dist/cli/session-picker.js +3 -3
  82. package/dist/cli/startup-ui.code.js +2 -2
  83. package/dist/cli/startup-ui.impl.js +3 -3
  84. package/dist/cli/startup-ui.js +3 -3
  85. package/dist/cli/storage-command.impl.js +3 -3
  86. package/dist/cli/storage-command.js +3 -3
  87. package/dist/cli/storage-search-session.code.js +2 -2
  88. package/dist/cli/storage-search-session.impl.js +3 -3
  89. package/dist/cli/storage-search-session.js +3 -3
  90. package/dist/cli/team-command.code.js +2 -2
  91. package/dist/cli/team-command.impl.js +3 -3
  92. package/dist/cli/team-command.js +3 -3
  93. package/dist/cli.js +2 -2
  94. package/dist/core/agent-session-methods.d.ts +4 -1
  95. package/dist/core/agent-session-methods.js.map +1 -1
  96. package/dist/core/agent-session.d.ts +3 -0
  97. package/dist/core/compaction/compactor.d.ts +20 -14
  98. package/dist/core/compaction/errors.d.ts +120 -0
  99. package/dist/core/compaction/index.d.ts +1 -0
  100. package/dist/core/compaction/model-resolver.d.ts +2 -2
  101. package/dist/core/debug.impl.js +3 -3
  102. package/dist/core/debug.js +3 -3
  103. package/dist/core/export-html/card-projection.impl.js +3 -3
  104. package/dist/core/export-html/card-projection.js +3 -3
  105. package/dist/core/export-html/index.code.js +2 -2
  106. package/dist/core/export-html/index.impl.js +3 -3
  107. package/dist/core/export-html/index.js +3 -3
  108. package/dist/core/export-html/json-spans.impl.js +3 -3
  109. package/dist/core/export-html/json-spans.js +3 -3
  110. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  111. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  112. package/dist/core/export-html/tool-renderer.code.js +1 -1
  113. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  114. package/dist/core/export-html/tool-renderer.js +3 -3
  115. package/dist/core/extensions/api-types.d.ts +1 -1
  116. package/dist/core/extensions/api-types.js.map +1 -1
  117. package/dist/core/extensions/index.d.ts +1 -1
  118. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  119. package/dist/core/extensions/jiti-loader.js +3 -3
  120. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  121. package/dist/core/extensions/jiti-static-loader.js +3 -3
  122. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  123. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  124. package/dist/core/extensions/loader-host-modules.js +3 -3
  125. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  126. package/dist/core/extensions/provider-types.d.ts +18 -6
  127. package/dist/core/extensions/provider-types.js.map +1 -1
  128. package/dist/core/extensions/runner-context.js +1 -1
  129. package/dist/core/intercom-broker-control-host.code.js +1 -1
  130. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  131. package/dist/core/intercom-broker-control-host.js +3 -3
  132. package/dist/core/intercom-broker-control.code.js +3 -3
  133. package/dist/core/intercom-broker-control.impl.js +3 -3
  134. package/dist/core/intercom-broker-control.js +3 -3
  135. package/dist/core/model-config.d.ts +40 -0
  136. package/dist/core/model-registry.js +1 -1
  137. package/dist/core/model-resolver-scope.d.ts +4 -4
  138. package/dist/core/model-runtime.d.ts +1 -1
  139. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  140. package/dist/core/package-manager-storage-adapters.js +3 -3
  141. package/dist/core/provider-composer-internal.d.ts +11 -2
  142. package/dist/core/sdk.code.js +3 -3
  143. package/dist/core/sdk.impl.js +3 -3
  144. package/dist/core/sdk.js +3 -3
  145. package/dist/core/session-manager-core.js +5 -5
  146. package/dist/core/session-manager-list.impl.js +3 -3
  147. package/dist/core/session-manager-list.js +3 -3
  148. package/dist/core/session-manager.code.js +1 -1
  149. package/dist/core/session-manager.impl.js +3 -3
  150. package/dist/core/session-manager.js +3 -3
  151. package/dist/core/session-storage.impl.js +3 -3
  152. package/dist/core/session-storage.js +3 -3
  153. package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
  154. package/dist/core/storage/index.js +2 -2
  155. package/dist/core/storage/node-sqlite-thread.js +2 -2
  156. package/dist/core/storage/node-sqlite.js +2 -2
  157. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  158. package/dist/core/storage/offline-snapshot-file.js +3 -3
  159. package/dist/core/storage/provider.js +2 -2
  160. package/dist/core/storage/selection.js +2 -2
  161. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  162. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  163. package/dist/core/storage/session/branch-fork-source.js +3 -3
  164. package/dist/core/storage/session/card-view.impl.js +3 -3
  165. package/dist/core/storage/session/card-view.js +3 -3
  166. package/dist/core/storage/session/child-reader.code.js +3 -3
  167. package/dist/core/storage/session/child-reader.impl.js +3 -3
  168. package/dist/core/storage/session/child-reader.js +3 -3
  169. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  170. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  171. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  172. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  173. package/dist/core/storage/session/expanded-child-details.js +3 -3
  174. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  175. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  176. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  177. package/dist/core/storage/session/fork-row-index.js +3 -3
  178. package/dist/core/storage/session/fork-staging.code.js +2 -2
  179. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  180. package/dist/core/storage/session/fork-staging.js +3 -3
  181. package/dist/core/storage/session/fork-window.code.js +3 -3
  182. package/dist/core/storage/session/fork-window.impl.js +3 -3
  183. package/dist/core/storage/session/fork-window.js +3 -3
  184. package/dist/core/storage/session/history-pages.impl.js +3 -3
  185. package/dist/core/storage/session/history-pages.js +3 -3
  186. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  187. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  188. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  189. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  190. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  191. package/dist/core/storage/session/memory-session-store.js +3 -3
  192. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  193. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  194. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  195. package/dist/core/storage/session/released-history-files.code.js +3 -3
  196. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  197. package/dist/core/storage/session/released-history-files.js +3 -3
  198. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  199. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  200. package/dist/core/storage/session/session-resume.impl.js +3 -3
  201. package/dist/core/storage/session/session-resume.js +3 -3
  202. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  203. package/dist/core/storage/session/snapshot-cut.js +3 -3
  204. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  205. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  206. package/dist/core/storage/session/snapshot-history.js +3 -3
  207. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  208. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  209. package/dist/core/storage/session/sql-session-store.js +3 -3
  210. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  211. package/dist/core/storage/session/tree-outline.js +3 -3
  212. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  213. package/dist/core/storage/session/tree-presentation.js +3 -3
  214. package/dist/core/storage/storage-status.impl.js +3 -3
  215. package/dist/core/storage/storage-status.js +3 -3
  216. package/dist/core/storage/team.impl.js +3 -3
  217. package/dist/core/storage/team.js +3 -3
  218. package/dist/core/structured-output/index.code.js +1 -1
  219. package/dist/core/structured-output/index.impl.js +3 -3
  220. package/dist/core/structured-output/index.js +3 -3
  221. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  222. package/dist/core/tasks/task-completion-entry.js +3 -3
  223. package/dist/core/tasks/task-file-history.code.js +3 -3
  224. package/dist/core/tasks/task-file-history.impl.js +3 -3
  225. package/dist/core/tasks/task-file-history.js +3 -3
  226. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  227. package/dist/core/tasks/task-reference-archive.js +3 -3
  228. package/dist/core/tasks/task-reference-identity.code.js +1 -1
  229. package/dist/core/tasks/task-reference-identity.js +3 -3
  230. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  231. package/dist/core/tasks/task-reference-stream.js +3 -3
  232. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  233. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  234. package/dist/core/tasks/task-view-source.impl.js +3 -3
  235. package/dist/core/tasks/task-view-source.js +3 -3
  236. package/dist/core/tools/read-url.code.js +2 -2
  237. package/dist/core/tools/read-url.impl.js +3 -3
  238. package/dist/core/tools/read-url.js +3 -3
  239. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  240. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  241. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  242. package/dist/core/worktree-snapshot/errors.js +3 -3
  243. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  244. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  245. package/dist/extensions/codemode/execute.code.js +1 -1
  246. package/dist/extensions/codemode/execute.impl.js +3 -3
  247. package/dist/extensions/codemode/execute.js +3 -3
  248. package/dist/extensions/codemode/renderer.code.js +2 -2
  249. package/dist/extensions/codemode/renderer.impl.js +3 -3
  250. package/dist/extensions/codemode/renderer.js +3 -3
  251. package/dist/extensions/mcp/cli.code.js +2 -2
  252. package/dist/extensions/mcp/cli.impl.js +3 -3
  253. package/dist/extensions/mcp/cli.js +3 -3
  254. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  255. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  256. package/dist/extensions/mcp/cli.lazy.js +3 -3
  257. package/dist/extensions/mcp/runtime.code.js +1 -1
  258. package/dist/extensions/mcp/runtime.impl.js +3 -3
  259. package/dist/extensions/mcp/runtime.js +3 -3
  260. package/dist/index-extensions.d.ts +1 -1
  261. package/dist/index.d.ts +8 -1
  262. package/dist/index.js +7 -7
  263. package/dist/main-first-time-setup.code.js +2 -2
  264. package/dist/main-first-time-setup.impl.js +3 -3
  265. package/dist/main-first-time-setup.js +3 -3
  266. package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
  267. package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
  268. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  269. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  270. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  271. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  272. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  273. package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
  274. package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
  275. package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
  276. package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
  277. package/dist/modes/print-mode.js +1 -1
  278. package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
  279. package/dist/modes/rpc/rpc-types.d.ts +29 -2
  280. package/dist/package-manager-cli.code.js +5 -5
  281. package/dist/package-manager-cli.impl.js +3 -3
  282. package/dist/package-manager-cli.js +3 -3
  283. package/dist/rpc-entry.js +1 -1
  284. package/dist/startup-files.json +1 -1
  285. package/dist/startup-stages/5.js +1 -1
  286. package/dist/startup-stages/7.js +1 -1
  287. package/dist/startup-stages/8.js +1 -2
  288. package/dist/startup-stages/9.js +2 -1
  289. package/dist/utils/native-module.d.ts +44 -0
  290. package/dist/utils/startup-database-spare.code.js +3 -3
  291. package/dist/utils/startup-database-spare.impl.js +3 -3
  292. package/dist/utils/startup-database-spare.js +3 -3
  293. package/dist/utils/tools-manager.code.js +1 -1
  294. package/dist/utils/tools-manager.impl.js +3 -3
  295. package/dist/utils/tools-manager.js +3 -3
  296. package/docs/background-tasks.md +235 -243
  297. package/docs/build.md +12 -11
  298. package/docs/codemode.md +60 -51
  299. package/docs/compaction/reference.md +61 -24
  300. package/docs/compaction.md +117 -65
  301. package/docs/computer-use.md +179 -146
  302. package/docs/containerization.md +79 -33
  303. package/docs/custom-provider/api-reference.md +148 -11
  304. package/docs/custom-provider/oauth.md +44 -27
  305. package/docs/custom-provider/override.md +14 -7
  306. package/docs/custom-provider/registration.md +75 -65
  307. package/docs/custom-provider/streaming.md +42 -19
  308. package/docs/custom-provider.md +25 -61
  309. package/docs/development.md +47 -43
  310. package/docs/docs.json +33 -33
  311. package/docs/environment-variables.md +83 -57
  312. package/docs/extensions/api-reference.md +323 -734
  313. package/docs/extensions/authoring.md +186 -269
  314. package/docs/extensions/events.md +308 -375
  315. package/docs/extensions/examples.md +122 -74
  316. package/docs/extensions/ui.md +217 -197
  317. package/docs/extensions.md +152 -259
  318. package/docs/getting-started/authentication.md +27 -14
  319. package/docs/getting-started/first-session.md +25 -26
  320. package/docs/getting-started/installation.md +62 -84
  321. package/docs/getting-started/project-instructions.md +39 -14
  322. package/docs/guides/configuration.md +42 -20
  323. package/docs/guides/intercom.md +17 -13
  324. package/docs/guides/non-interactive.md +29 -16
  325. package/docs/guides/orchestration.md +16 -10
  326. package/docs/guides/resume-on-any-machine.md +54 -49
  327. package/docs/guides/subagents.md +22 -14
  328. package/docs/guides/team-setup.md +37 -26
  329. package/docs/guides.md +22 -21
  330. package/docs/herdr.md +21 -16
  331. package/docs/index.md +16 -17
  332. package/docs/intercom/operations.md +68 -66
  333. package/docs/intercom/reference.md +196 -191
  334. package/docs/intercom.md +103 -92
  335. package/docs/json.md +71 -71
  336. package/docs/keybindings.md +63 -50
  337. package/docs/libraries/agent-core.md +49 -8
  338. package/docs/libraries/ai.md +21 -12
  339. package/docs/libraries/codemode.md +28 -6
  340. package/docs/libraries/schema.md +7 -7
  341. package/docs/libraries/telemetry.md +7 -7
  342. package/docs/libraries/tui.md +74 -94
  343. package/docs/libraries.md +5 -5
  344. package/docs/llama-cpp.md +38 -33
  345. package/docs/mcp-servers.md +96 -90
  346. package/docs/models/reference.md +46 -33
  347. package/docs/models-configuration.md +12 -6
  348. package/docs/models.md +93 -88
  349. package/docs/orchestration/migrating-workflows.md +21 -19
  350. package/docs/orchestration/patterns.md +35 -20
  351. package/docs/orchestration.md +22 -21
  352. package/docs/packages/authoring.md +28 -19
  353. package/docs/packages/reference.md +75 -16
  354. package/docs/packages.md +31 -33
  355. package/docs/programmatic.md +22 -21
  356. package/docs/prompt-templates.md +63 -41
  357. package/docs/providers/reference.md +35 -19
  358. package/docs/providers.md +61 -71
  359. package/docs/quickstart.md +32 -46
  360. package/docs/reference/cli.md +249 -252
  361. package/docs/reference.md +23 -20
  362. package/docs/rpc/examples.md +74 -17
  363. package/docs/rpc/extension-ui.md +79 -62
  364. package/docs/rpc/protocol.md +816 -358
  365. package/docs/rpc.md +75 -151
  366. package/docs/sdk/reference.md +175 -45
  367. package/docs/sdk/structured-decisions.md +92 -62
  368. package/docs/sdk/web-server.md +79 -46
  369. package/docs/sdk.md +237 -195
  370. package/docs/security.md +106 -43
  371. package/docs/session-format.md +96 -59
  372. package/docs/sessions.md +149 -113
  373. package/docs/settings.md +289 -204
  374. package/docs/shell-aliases.md +15 -6
  375. package/docs/skills/authoring.md +17 -9
  376. package/docs/skills/reference.md +23 -21
  377. package/docs/skills.md +104 -97
  378. package/docs/storage.md +140 -242
  379. package/docs/subagents/authoring.md +147 -16
  380. package/docs/subagents/reference.md +100 -30
  381. package/docs/subagents.md +220 -252
  382. package/docs/terminal-setup.md +97 -69
  383. package/docs/termux.md +51 -85
  384. package/docs/themes/reference.md +51 -37
  385. package/docs/themes.md +49 -54
  386. package/docs/tmux.md +38 -21
  387. package/docs/tools.md +198 -147
  388. package/docs/tui/reference.md +64 -32
  389. package/docs/tui.md +38 -66
  390. package/docs/usage.md +76 -78
  391. package/docs/verification.md +25 -25
  392. package/docs/web-access.md +72 -55
  393. package/docs/windows.md +53 -58
  394. package/docs/worktree-snapshots.md +62 -65
  395. package/package.json +8 -8
  396. package/schemas/models.schema.json +51 -0
  397. package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
  398. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
  399. package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
  400. package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
  401. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
@@ -1,19 +1,18 @@
1
1
  ---
2
- title: "Computer use"
3
- description: "Use desktop apps, browsers, and terminals with Atomic on macOS, Linux, and Windows."
2
+ title: "Automate browsers, desktops, and terminals"
3
+ sidebarTitle: "Computer use"
4
+ description: "Automate desktop apps, web browsers, interactive terminals, and creative files with Atomic on macOS, Linux, and Windows."
4
5
  ---
5
6
 
6
- # Computer use
7
-
8
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.
9
8
 
10
- This guide covers tool selection, setup, platform requirements, and safe operation. For choosing checks, reproducing user interactions, and attaching pull-request evidence, see [Verification and evidence](/verification).
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).
11
10
 
12
- Jump to [application scripting](#application-scripting-and-apis), [desktop automation](#desktop-automation-with-agent-desktop), [browser automation](#browser-automation-with-agent-browser), [terminal automation](#terminal-automation-with-herdr), or [creative workflows](#creative-work-and-computer-use-workflows). Platform notes: [macOS](#macos), [Linux](#linux), and [Windows](#windows).
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).
13
12
 
14
13
  ## Choose the right tool
15
14
 
16
- 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 simpler 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.
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.
17
16
 
18
17
  | Task | Preferred tool | When to switch |
19
18
  | --- | --- | --- |
@@ -24,9 +23,9 @@ Start with the output you need instead of the app you would click through manual
24
23
 
25
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.
26
25
 
27
- Atomic's bundled skills (`agent-desktop`, `herdr`, `agent-browser`, and `tmux`) supply operating instructions, not installed binaries or OS permissions. Check the installed command's `--help` before relying on version-specific flags.
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.
28
27
 
29
- Herdr requires an explicit user 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.
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.
30
29
 
31
30
  ## Prepare the session
32
31
 
@@ -42,138 +41,54 @@ Before running graphical automation:
42
41
 
43
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.
44
43
 
45
- ## Application scripting and APIs
46
-
47
- 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.
48
-
49
- | Mechanism | Good uses | Limits to check first |
50
- | --- | --- | --- |
51
- | `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. |
52
- | Media CLIs (such as FFmpeg) | Batch-convert, trim, or combine audio and video. | Exports are not editable timeline projects; check codec, audio, and timing. |
53
- | AppleScript or JXA (`osascript`) | Automate scriptable macOS apps and document objects directly. | macOS only; scripting dictionary coverage varies by app. |
54
- | Office Scripts | Repeatable Excel edits from the Automate tab and supported Power Automate flows. | Excel only; depends on account, app version, and organization policy. |
55
- | 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. |
56
- | 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. |
57
-
58
- 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.
59
-
60
- ### Example recipes
61
-
62
- **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:
63
-
64
- ```sh
65
- 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"
66
- ```
67
-
68
- 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) for dictionary details.
69
-
70
- **Presentations (`python-pptx` with `uv`):** Save this script as `create_deck.py` in a scratch directory:
71
-
72
- ```python
73
- from pathlib import Path
74
-
75
- from pptx import Presentation
76
-
77
- deck = Presentation()
78
- title_slide = deck.slides.add_slide(deck.slide_layouts[0])
79
- title_slide.shapes.title.text = "Quarterly review"
80
- title_slide.placeholders[1].text = "Draft for discussion"
81
-
82
- summary = deck.slides.add_slide(deck.slide_layouts[1])
83
- summary.shapes.title.text = "Next steps"
84
- body = summary.placeholders[1].text_frame
85
- body.text = "Review the results"
86
- body.add_paragraph().text = "Agree on next quarter's priorities"
87
-
88
- output = Path("quarterly-review-draft.pptx")
89
- with output.open("xb") as stream:
90
- deck.save(stream)
91
- print(f"Created {output.resolve()}")
92
- ```
93
-
94
- Run it from that directory with [uv](https://docs.astral.sh/uv/) using `--no-project` so you do not modify an unrelated project environment:
95
-
96
- ```sh
97
- uv run --no-project --with python-pptx python create_deck.py
98
- ```
99
-
100
- Opening the output with exclusive creation (`open("xb")`) prevents overwriting an existing file. Inspect custom template placeholder indices before editing, and review the rendered slides in PowerPoint or LibreOffice Impress. 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/).
101
-
102
- **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. For example, to format `A1:D20` on a `Summary` worksheet:
103
-
104
- ```vb
105
- Option Explicit
106
-
107
- Sub FormatSummary()
108
- Dim report As Worksheet
109
- Set report = ThisWorkbook.Worksheets("Summary")
110
-
111
- report.Range("A1:D1").Font.Bold = True
112
- report.Range("B2:D20").NumberFormat = "#,##0.00"
113
- report.Range("A1:D20").Columns.AutoFit
114
- End Sub
115
- ```
116
-
117
- 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).
118
-
119
- **Blender batch scripting:** Load the `.blend` file before the script and pass `--python-exit-code 1` so Python errors return a nonzero exit status:
120
-
121
- ```sh
122
- blender --background input.blend --python-exit-code 1 --python scene-script.py
123
- ```
124
-
125
- 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).
126
-
127
44
  ## Desktop automation with agent-desktop
128
45
 
129
- [agent-desktop](https://agent-browser.dev/desktop) reads a desktop app's accessibility tree as JSON and assigns each actionable control a ref. You observe the UI, act on a ref, wait for the expected state, and read it back. It is an Apache-2.0 CLI tool (not an agent) for macOS, Windows, and Linux that prints one JSON envelope per command.
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.
130
47
 
131
- Atomic bundles the `agent-desktop` skill with the core loop, while detailed version-matched guides live inside the CLI itself:
48
+ Atomic bundles the `agent-desktop` skill with the core workflow, while detailed version-matched guides live inside the CLI itself:
132
49
 
133
- ```sh
50
+ ```bash
134
51
  agent-desktop status # platform, permissions, supported surfaces
135
52
  agent-desktop skills get desktop # the loop, refs, verification, and retry rules
136
53
  agent-desktop skills get platform # what differs on this OS
137
54
  ```
138
55
 
139
- Read extra topic guides as needed (such as `agent-desktop skills get desktop workflows` or `agent-desktop skills get linux troubleshooting`). Each command returns Markdown in `data.content`.
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`.
140
57
 
141
- Choose between the skill and direct script calls based on who picks the next action:
58
+ Choose between interactive turns and a dedicated script depending on how repeatable the flow is:
142
59
 
143
60
  | Situation | How | Why |
144
61
  | --- | --- | --- |
145
- | An interactive session or subagent chooses each step | The bundled `agent-desktop` skill and one-shot `agent-desktop` commands | The model decides turn by turn and keeps the JSON results, screenshots, and traces as evidence. |
146
- | A script owns the fixed sequence and checks | The `agent-desktop` CLI called from the script | The script checks each JSON response, stops on failure, and inspects live state before retrying. |
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. |
147
64
 
148
- **When a model chooses the next action, use the skill and one-shot commands. When a script owns the sequence, call the CLI from the script.** agent-desktop has no TypeScript SDK; its JSON CLI envelope is the interface.
149
-
150
- Atomic bundles the skill. You do not need `npx skills add` for it, and an extra installed copy can drift behind CLI upgrades. Avoid copying or symlinking another copy into `~/.agents/skills` or other user skill directories, and leave any existing user-level skill alone.
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).
151
66
 
152
67
  ### Install if missing
153
68
 
154
69
  Check `agent-desktop version`. If missing, install it globally on Node 18 or newer:
155
70
 
156
- ```sh
71
+ ```bash
157
72
  npm install -g agent-desktop
158
73
  agent-desktop version
159
74
  ```
160
75
 
161
- 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` (use `npx agent-desktop`). The package includes platform helpers automatically (`agent-desktop-macos-helper` on macOS and `agent-desktop-linux-clipboard-owner` on Linux; Windows needs none).
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).
162
77
 
163
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:
164
79
 
165
- ```sh
80
+ ```bash
166
81
  npm install-scripts approve agent-desktop # npm 12
167
82
  npm install -g agent-desktop --allow-scripts=agent-desktop # npm 11
168
83
  ```
169
84
 
170
- 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. If installation fails or is blocked, note the error and command instead of looping or silently changing tools.
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.
171
86
 
172
87
  ### Check readiness
173
88
 
174
89
  Checking `agent-desktop version` confirms only the binary. Run `agent-desktop status` before any UI action:
175
90
 
176
- ```sh
91
+ ```bash
177
92
  agent-desktop status
178
93
  ```
179
94
 
@@ -181,13 +96,13 @@ agent-desktop status
181
96
  - `data.supported_surfaces` lists the readable overlay types on this OS (`window`, `sheet`, `alert`, `menu`, and platform shell elements).
182
97
  - `data.state_root` shows where sessions and traces live (`~/.agent-desktop`, overridden by an absolute path in `AGENT_DESKTOP_HOME`).
183
98
 
184
- Then read OS-specific rules with `agent-desktop skills get platform` and the platform sections below ([macOS](#macos), [Linux](#linux), [Windows](#windows)). Stop and report a missing macOS permission, an absent Linux accessibility bus, or a missing install, then rerun `agent-desktop status` after fixing the prerequisite. Let the human user confirm OS consent dialogs directly.
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.
185
100
 
186
101
  ### Drive an app from the shell
187
102
 
188
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:
189
104
 
190
- ```sh
105
+ ```bash
191
106
  agent-desktop snapshot --app "Notes" --skeleton -i --compact
192
107
  agent-desktop snapshot --root @s8f3k2p9:e3 -i --compact
193
108
  agent-desktop click @s8f3k2p9:e12
@@ -195,33 +110,53 @@ agent-desktop wait --element @s8f3k2p9:e5 --predicate value --value "Done" --tim
195
110
  agent-desktop get @s8f3k2p9:e5 --property value
196
111
  ```
197
112
 
198
- Use refs discovered from your own run. When you already know the role and name, `find --app "Notes" --role button --name "Save" --exact` is cheaper than a full snapshot.
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.
199
114
 
200
- - **Verify with reads.** Use `wait` instead of fixed sleeps. Retry an action only when `data.disposition.retry` is `safe`; otherwise read the live UI first so you do not submit or click twice.
201
- - **Stale and ambiguous refs.** On `STALE_REF`, take a fresh snapshot. On `AMBIGUOUS_TARGET`, narrow with `find --role --name --exact` or `--root`.
202
- - **Overlays.** When an action opens a menu, sheet, or alert listed in `data.surfaces`, snapshot that overlay rather than the window behind it.
203
- - **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 permitted, never as a fallback for headless failures. Destructive shortcuts such as quit and lock require `--force`.
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`.
204
120
  - **PowerShell quoting.** Quote every ref (`'@s8f3k2p9:e12'`) because unquoted `@` triggers splatting in PowerShell.
205
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.
206
- - **Evidence.** Keep the JSON outputs and save screenshots with `agent-desktop screenshot --app "Notes" after.png` (or export an HTML trace with `agent-desktop trace export`). When the work ends in a pull request, attach the before and after PNGs to the PR body (`gh pr create --body-file body.md --attach 'before.png#Before' --attach 'after.png#After'`) next to the scenario they prove and cite the JSON files. Review captures for private data before uploading.
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.
125
+
126
+ ### macOS VM sandboxes
207
127
 
208
- To inspect web content inside a Chromium or Electron app that you launch 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`). Closing an already-running app loses unsaved state, so confirm first. Keep native menus, dialogs, and window controls in `agent-desktop`, and run `close-app` when done because any local process under your user can access an open CDP port.
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).
129
+
130
+ ```bash
131
+ agent-desktop sandbox install # check provider state
132
+ 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)
135
+ agent-desktop sandbox status demo # wait until state is "running"
136
+ agent-desktop sandbox exec demo -- status # run a command inside the guest
137
+ agent-desktop sandbox stop demo
138
+ agent-desktop sandbox rm demo
139
+ ```
140
+
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.
209
144
 
210
145
  ### Run a scenario from a script
211
146
 
212
147
  Store repeatable desktop checks in a [skill's `scripts/` directory](/skills/authoring) and call them through a permitted shell or codemode step:
213
148
 
214
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.
215
- - **Structured calls.** Spawn one `agent-desktop` process per command, parse its JSON envelope, and branch on `ok`, `error.code`, and `disposition` instead of message text. Give every subprocess a timeout and forward cancellation.
216
- - **Loop and result.** Run `snapshot` (verifying `data.complete`), narrow to one control with `find`, act on the ref, `wait` for the postcondition, and read it back. Emit `verified`, `refuted`, `blocked`, or `unknown`, mapping anything other than `verified` to a nonzero exit code. Treat timed-out or uncertain deliveries as `unknown` and inspect state instead of replaying mutations.
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.
217
152
 
218
153
  ### Coverage and limits
219
154
 
220
- agent-desktop relies on operating-system accessibility APIs. Report these limits directly when they apply:
155
+ `agent-desktop` relies on operating-system accessibility APIs:
221
156
 
222
- - **No pixel matching.** Controls without an accessibility tree (custom canvases, games, or some remote-desktop windows) cannot be targeted by ref. With user permission, you can capture a `screenshot` for visual inspection and send coordinate clicks (`--headed mouse-click --xy X,Y`), noting what stayed unverified.
223
- - **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).
224
- - **Non-Chromium browsers.** Desktop Safari and Firefox expose varying accessibility trees; inspect a snapshot first and prefer agent-browser for supported pages.
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.
225
160
  - **Reserved input.** `key-down`, `key-up`, `mouse-down`, and `mouse-up` never send input on any OS; use `press`, `mouse-click`, or `drag`.
226
161
  - **Platform specifics.** Check `agent-desktop skills get platform` for OS-specific `--headed` requirements and unsupported actions.
227
162
 
@@ -231,7 +166,7 @@ Keep one controller per desktop, work in a dedicated session or account when pra
231
166
 
232
167
  ## Browser automation with agent-browser
233
168
 
234
- 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.
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.
235
170
 
236
171
  ### What agent-browser covers
237
172
 
@@ -248,13 +183,13 @@ Use [agent-browser](https://agent-browser.dev/) whenever the target is web conte
248
183
 
249
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.
250
185
 
251
- 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.
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.
252
187
 
253
188
  ### Setup and first session
254
189
 
255
190
  Install `agent-browser` globally if missing (use `agent-browser install --with-deps` on Linux to pull required system libraries):
256
191
 
257
- ```sh
192
+ ```bash
258
193
  npm i -g agent-browser
259
194
  agent-browser install
260
195
  agent-browser --help
@@ -262,7 +197,7 @@ agent-browser --help
262
197
 
263
198
  Open a uniquely named session, inspect its snapshot, act on live refs, capture evidence, and close only your own session:
264
199
 
265
- ```sh
200
+ ```bash
266
201
  agent-browser --session desktop-demo open https://example.com --headed
267
202
  agent-browser --session desktop-demo snapshot
268
203
  agent-browser --session desktop-demo screenshot browser-before.png
@@ -286,23 +221,39 @@ Use Herdr for interactive terminal or TUI automation on macOS, Linux, and Window
286
221
 
287
222
  ### Setup and a dedicated pane
288
223
 
289
- 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. For Atomic's status indicators in Herdr, see [Herdr integration](/herdr).
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.
225
+
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.
290
227
 
291
228
  Create a dedicated sibling pane without stealing focus:
292
229
 
293
- ```sh
230
+ ```bash
294
231
  herdr pane split --current --direction right --cwd "$PWD" --no-focus
295
232
  ```
296
233
 
297
234
  Use the returned `<pane-id>` to run commands, wait for output, and capture the screen:
298
235
 
299
- ```text
236
+ ```bash
300
237
  herdr pane run <pane-id> "<command>"
301
- herdr pane wait-output <pane-id> --match "<expected output>" --timeout 10000
238
+ herdr pane wait-output <pane-id> --match "<expected text>" --timeout 10000
239
+ herdr pane wait-output <pane-id> --regex "<rust-regex>" --timeout 10000
302
240
  herdr pane read <pane-id> --source visible
303
241
  ```
304
242
 
305
- `pane run` submits with Enter, while `pane send-text` does not. Because `wait-output` can match earlier text, use a fresh pane or unique marker and verify the final exit status or state. Use `--source recent-unwrapped --lines 120` for logs and `--source visible` for layout, capturing alternate-screen views before leaving them.
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:
248
+
249
+ ```bash
250
+ herdr agent start reviewer --kind codex --pane <pane-id>
251
+ herdr agent prompt reviewer "Review the diff and report actionable findings." --wait --timeout 120000
252
+ herdr agent wait reviewer --until blocked --timeout 120000
253
+ herdr agent read reviewer --source recent-unwrapped --lines 120
254
+ ```
255
+
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`.
306
257
 
307
258
  ### tmux and psmux fallbacks
308
259
 
@@ -310,14 +261,14 @@ When Herdr is unavailable or ineligible, use tmux on macOS and Linux, or [psmux]
310
261
 
311
262
  In tmux, start a uniquely named session and read its actual pane ID instead of assuming `%0`:
312
263
 
313
- ```sh
264
+ ```bash
314
265
  tmux new-session -d -s atomic-demo
315
266
  tmux list-panes -t atomic-demo -F '#{pane_id}'
316
267
  ```
317
268
 
318
269
  Send literal text separately from Enter, then capture the pane:
319
270
 
320
- ```text
271
+ ```bash
321
272
  tmux send-keys -t <pane-id> -l -- "<command>"
322
273
  tmux send-keys -t <pane-id> Enter
323
274
  tmux capture-pane -p -t <pane-id>
@@ -325,12 +276,93 @@ tmux capture-pane -p -t <pane-id>
325
276
 
326
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).
327
278
 
279
+ ## Application scripting and APIs
280
+
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.
282
+
283
+ | Mechanism | Good uses | Limits to check first |
284
+ | --- | --- | --- |
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:
336
+
337
+ ```vb
338
+ Option Explicit
339
+
340
+ Sub FormatSummary()
341
+ Dim report As Worksheet
342
+ Set report = ThisWorkbook.Worksheets("Summary")
343
+
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
+
328
360
  ## macOS
329
361
 
330
362
  ### macOS permissions and native tools
331
363
 
332
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/).
333
- - 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 (named Device Control and Data Access on macOS 27+) so the user can approve with Touch ID or a 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`.
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`.
334
366
  - AppleScript may prompt for Automation permission (`agent-desktop permissions` shows `unknown` until macOS prompts).
335
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.
336
368
 
@@ -342,9 +374,9 @@ Default `agent-browser` runs Chromium, not Safari. Use `agent-browser -p ios` wi
342
374
 
343
375
  ### Linux accessibility bus and display
344
376
 
345
- - 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 fix 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.
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.
346
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).
347
- - Observation and semantic ref actions work on both X11 and Wayland without helper tools. Pointer gestures (`double-click`, `hover`, `drag`) and wheel scrolling require X11 with `--headed` and return `ACTION_NOT_SUPPORTED` on Wayland.
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.
348
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.
349
381
 
350
382
  ### Linux browsers and terminals
@@ -357,9 +389,9 @@ Run `agent-browser install --with-deps` on minimal Linux hosts to install system
357
389
 
358
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/).
359
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`).
360
- - Windows blocks input from a non-elevated terminal into an elevated app (UIPI). Pause for the user or pick a non-elevated path instead of escalating privileges just to force input through.
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.
361
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.
362
- - 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.
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.
363
395
 
364
396
  ### Windows browsers and terminals
365
397
 
@@ -371,22 +403,22 @@ Choose the deliverable first and add UI interaction only where scripting cannot
371
403
 
372
404
  | Task | Practical approach | Useful deliverables |
373
405
  | --- | --- | --- |
374
- | 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. |
375
- | 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. |
376
- | 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. |
377
- | Cross-app work | Combine native scripting for file ops with agent-desktop addressing each window by app name and window ID. | Saved documents and a short record of completed steps. |
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. |
378
410
 
379
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.
380
412
 
381
413
  Typical desktop sequence:
382
414
 
383
- 1. Prepare assets and confirm target app, output format, and permissions.
415
+ 1. Prepare assets and confirm the target app, output format, and permissions.
384
416
  2. Open the dedicated desktop session and inspect its starting state.
385
- 3. Combine app APIs with agent-desktop steps, saving checkpoints along the way.
417
+ 3. Combine app APIs with `agent-desktop` steps, saving checkpoints along the way.
386
418
  4. Reopen and verify deliverables, making bounded fixes as needed.
387
419
  5. Hand off local files and publish only to authorized destinations.
388
420
 
389
- When delegating computer use to subagents, pass scripts, project files, and artifact paths instead of long click logs, give one agent exclusive desktop ownership, and keep user approvals in the parent chat.
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.
390
422
 
391
423
  ## Troubleshooting
392
424
 
@@ -397,8 +429,9 @@ When delegating computer use to subagents, pass scripts, project files, and arti
397
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. |
398
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. |
399
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`. |
400
- | `STALE_REF`, `AMBIGUOUS_TARGET`, or `SNAPSHOT_NOT_FOUND` | Snapshot again, narrow with `find --role --name --exact` or `--root`, and act on the fresh ref. |
401
- | Action succeeded but UI looks unchanged | Use `wait` or read the state back. Retry only when `disposition.retry` is `safe`. |
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"`. |
402
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). |
403
436
  | Black screenshot or missing desktop | Check screen permissions, display ownership, X11 versus Wayland, and remote-session lock state. |
404
437
  | Input lands in the wrong app | Stop and confirm focus, window identity, scaling, and exclusive desktop ownership. |