@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.
- package/CHANGELOG.md +17 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +3 -3
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
- package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/{sdk-B5LEWGGI.js → sdk-OHKMDJ74.js} +27 -5
- package/dist/_shared/{sdk-B5LEWGGI.js.map → sdk-OHKMDJ74.js.map} +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-Q3MWKUK4.js +2 -2
- package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
- package/dist/_shared/{startup-0-2-5QHPCEON.js → startup-0-2-2HUMCPKX.js} +14 -16
- package/dist/_shared/startup-0-2-2HUMCPKX.js.map +1 -0
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
- package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
- package/dist/_shared/startup-0-5-YDW47QX6.js +3 -3
- package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +6 -30
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +3 -3
- package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/auth-cli.code.js +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +1 -1
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/compaction/compactor.d.ts +0 -8
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +2 -2
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +3 -3
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +2 -2
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +2 -2
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +1 -1
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +2 -2
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +2 -2
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +2 -2
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +1 -1
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +1 -1
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +21 -1
- package/dist/index.js +2 -2
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/print-mode.js +1 -1
- package/dist/package-manager-cli.code.js +2 -2
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/utils/startup-database-spare.code.js +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks/reference.md +182 -0
- package/docs/background-tasks.md +98 -405
- package/docs/build.md +67 -27
- package/docs/changelog.mdx +1 -1
- package/docs/codemode.md +108 -39
- package/docs/compaction/branch-summaries.md +54 -0
- package/docs/compaction/custom-compactors.md +161 -0
- package/docs/compaction/memory-compaction.md +77 -0
- package/docs/compaction/reference.md +86 -38
- package/docs/compaction.md +51 -252
- package/docs/computer-use.md +169 -321
- package/docs/containerization.md +71 -57
- package/docs/custom-provider/api-reference.md +119 -25
- package/docs/custom-provider/oauth.md +114 -132
- package/docs/custom-provider/override.md +37 -27
- package/docs/custom-provider/registration.md +107 -83
- package/docs/custom-provider/streaming.md +85 -71
- package/docs/custom-provider.md +85 -52
- package/docs/development.md +39 -29
- package/docs/docs.json +76 -63
- package/docs/environment-variables.md +94 -44
- package/docs/extensions/api-reference.md +86 -43
- package/docs/extensions/authoring.md +162 -154
- package/docs/extensions/events.md +80 -25
- package/docs/extensions/examples.md +90 -85
- package/docs/extensions/ui.md +206 -82
- package/docs/extensions.md +79 -108
- package/docs/getting-started/authentication.md +67 -36
- package/docs/getting-started/first-session.md +53 -43
- package/docs/getting-started/installation.md +116 -89
- package/docs/getting-started/project-instructions.md +48 -34
- package/docs/guides/configuration.md +82 -20
- package/docs/guides/non-interactive.md +66 -24
- package/docs/guides/resume-on-any-machine.md +135 -82
- package/docs/guides/team-setup.md +114 -105
- package/docs/guides.md +76 -32
- package/docs/herdr.md +15 -16
- package/docs/how-atomic-works.md +140 -0
- package/docs/index.md +58 -44
- package/docs/intercom/operations.md +141 -151
- package/docs/intercom/reference.md +85 -108
- package/docs/intercom.md +84 -145
- package/docs/json.md +120 -67
- package/docs/keybindings.md +85 -49
- package/docs/libraries/agent-core.md +137 -275
- package/docs/libraries/ai.md +100 -84
- package/docs/libraries/codemode.md +210 -300
- package/docs/libraries/schema.md +59 -53
- package/docs/libraries/storage-postgres.md +49 -35
- package/docs/libraries/telemetry.md +153 -354
- package/docs/libraries/tui.md +265 -393
- package/docs/libraries.md +42 -26
- package/docs/llama-cpp.md +171 -161
- package/docs/mcp-servers.md +90 -51
- package/docs/models/choose-a-model.md +188 -0
- package/docs/models/reference.md +74 -30
- package/docs/models.md +153 -88
- package/docs/orchestration/migrating-workflows.md +23 -16
- package/docs/orchestration/patterns.md +39 -44
- package/docs/orchestration.md +65 -26
- package/docs/packages/authoring.md +51 -29
- package/docs/packages/reference.md +42 -21
- package/docs/packages.md +69 -58
- package/docs/programmatic.md +118 -24
- package/docs/prompt-templates.md +84 -83
- package/docs/providers/reference.md +43 -48
- package/docs/providers.md +219 -451
- package/docs/quickstart.md +140 -120
- package/docs/reference/cli.md +135 -97
- package/docs/reference.md +20 -18
- package/docs/rpc/examples.md +76 -20
- package/docs/rpc/extension-ui.md +64 -38
- package/docs/rpc/protocol.md +361 -110
- package/docs/rpc.md +57 -17
- package/docs/sdk/reference.md +409 -534
- package/docs/sdk/storage.md +53 -13
- package/docs/sdk/structured-decisions.md +82 -56
- package/docs/sdk/web-server.md +57 -43
- package/docs/sdk.md +106 -84
- package/docs/security.md +42 -64
- package/docs/session-format.md +62 -38
- package/docs/sessions.md +99 -214
- package/docs/settings.md +165 -195
- package/docs/shell-aliases.md +9 -6
- package/docs/skills/authoring.md +69 -48
- package/docs/skills/reference.md +51 -20
- package/docs/skills.md +99 -148
- package/docs/slash-commands.md +129 -0
- package/docs/storage/custom-adapters.md +160 -85
- package/docs/storage/jsonl.md +81 -66
- package/docs/storage/postgres/pgbouncer.md +120 -126
- package/docs/storage/postgres/tuning.md +120 -143
- package/docs/storage/postgres.md +314 -330
- package/docs/storage/sqlite.md +71 -42
- package/docs/storage.md +298 -302
- package/docs/subagents/authoring.md +55 -38
- package/docs/subagents/reference.md +73 -33
- package/docs/subagents.md +119 -187
- package/docs/terminal-setup.md +50 -38
- package/docs/termux.md +67 -41
- package/docs/themes/reference.md +23 -19
- package/docs/themes.md +142 -127
- package/docs/tmux.md +47 -55
- package/docs/tools.md +147 -109
- package/docs/tui/reference.md +166 -214
- package/docs/tui.md +196 -341
- package/docs/usage.md +118 -138
- package/docs/verification.md +79 -51
- package/docs/web-access.md +121 -101
- package/docs/windows.md +26 -27
- package/docs/worktree-snapshots/reference.md +245 -0
- package/docs/worktree-snapshots.md +71 -259
- package/package.json +8 -8
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +0 -1
- package/docs/guides/intercom.md +0 -32
- package/docs/guides/orchestration.md +0 -28
- package/docs/guides/subagents.md +0 -37
package/docs/computer-use.md
CHANGED
|
@@ -1,106 +1,100 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "Automate
|
|
3
|
-
sidebarTitle: "
|
|
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
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
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 | **
|
|
20
|
-
| Interactive terminal or TUI | **Herdr** | Fall back to tmux
|
|
21
|
-
| Websites
|
|
22
|
-
| Native desktop apps,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
72
|
+
Full version-matched manuals live inside the CLI itself:
|
|
49
73
|
|
|
50
74
|
```bash
|
|
51
|
-
agent-desktop status
|
|
52
|
-
agent-desktop skills get desktop
|
|
53
|
-
agent-desktop skills get platform
|
|
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
|
-
|
|
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`
|
|
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
|
-
-
|
|
96
|
-
- `
|
|
97
|
-
- `
|
|
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
|
-
###
|
|
95
|
+
### Core workflow and key rules
|
|
102
96
|
|
|
103
|
-
Map
|
|
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
|
-
|
|
107
|
+
Keep five operational rules in mind:
|
|
114
108
|
|
|
115
|
-
- **
|
|
116
|
-
- **
|
|
117
|
-
-
|
|
118
|
-
- **
|
|
119
|
-
- **
|
|
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
|
|
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
|
|
134
|
-
agent-desktop sandbox start demo # start headless (add --window
|
|
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
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
145
|
+
## Browser automation with `agent-browser` {#browser-automation-with-agent-browser}
|
|
166
146
|
|
|
167
|
-
|
|
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
|
-
|
|
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
|
|
176
|
-
| Mobile Safari in
|
|
177
|
-
| Mobile viewport emulation in Chrome | `agent-browser set device "iPhone 14"` or `set viewport <w> <h> <scale>` | Emulates viewport
|
|
178
|
-
| Electron
|
|
179
|
-
|
|
|
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
|
-
|
|
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
|
|
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 --
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
186
|
+
### Dedicated pane and commands
|
|
225
187
|
|
|
226
|
-
|
|
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
|
|
244
|
-
- `pane wait-output`
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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 |
|
|
228
|
+
| Mechanism | Best for | Quick start & limits to check |
|
|
284
229
|
| --- | --- | --- |
|
|
285
|
-
| `python-pptx`, `python-docx`, `openpyxl` |
|
|
286
|
-
| Media CLIs (
|
|
287
|
-
| AppleScript
|
|
288
|
-
| Office Scripts |
|
|
289
|
-
|
|
|
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
|
-
|
|
338
|
-
Option Explicit
|
|
236
|
+
## Platform setup
|
|
339
237
|
|
|
340
|
-
|
|
341
|
-
Dim report As Worksheet
|
|
342
|
-
Set report = ThisWorkbook.Worksheets("Summary")
|
|
238
|
+
### macOS {#macos}
|
|
343
239
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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
|
-
|
|
244
|
+
### Linux {#linux}
|
|
372
245
|
|
|
373
|
-
|
|
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
|
-
###
|
|
250
|
+
### Windows {#windows}
|
|
376
251
|
|
|
377
|
-
- Install `agent-desktop` via
|
|
378
|
-
- Run
|
|
379
|
-
-
|
|
380
|
-
-
|
|
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
|
-
|
|
258
|
+
## Creative and cross-app workflows
|
|
412
259
|
|
|
413
|
-
|
|
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
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
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,
|
|
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
|
|
428
|
-
|
|
|
429
|
-
|
|
|
430
|
-
|
|
|
431
|
-
| `
|
|
432
|
-
| `
|
|
433
|
-
|
|
|
434
|
-
|
|
|
435
|
-
|
|
|
436
|
-
|
|
|
437
|
-
|
|
438
|
-
|
|
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.
|