@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.
- package/CHANGELOG.md +57 -0
- package/README.md +211 -155
- 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 +27 -12
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
- package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
- package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
- package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
- package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
- package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
- package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
- package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
- package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
- package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
- package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +6 -0
- package/dist/builtin/intercom/README.md +85 -114
- package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
- package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
- package/dist/builtin/intercom/group.ts +7 -3
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/README.md +37 -27
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +8 -0
- package/dist/builtin/subagents/README.md +71 -138
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
- package/dist/builtin/web-access/CHANGELOG.md +9 -0
- package/dist/builtin/web-access/README.md +60 -87
- package/dist/builtin/web-access/index.bundle.mjs +387 -351
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +2 -2
- 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.code.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 +2 -2
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/agent-session-methods.d.ts +4 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/compaction/compactor.d.ts +20 -14
- package/dist/core/compaction/errors.d.ts +120 -0
- package/dist/core/compaction/index.d.ts +1 -0
- package/dist/core/compaction/model-resolver.d.ts +2 -2
- 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.code.js +1 -1
- 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/api-types.d.ts +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- 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.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/provider-types.d.ts +18 -6
- package/dist/core/extensions/provider-types.js.map +1 -1
- package/dist/core/extensions/runner-context.js +1 -1
- 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 +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/model-config.d.ts +40 -0
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-scope.d.ts +4 -4
- package/dist/core/model-runtime.d.ts +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/provider-composer-internal.d.ts +11 -2
- package/dist/core/sdk.code.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +5 -5
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- 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/settings-manager-basic-accessors.d.ts +6 -2
- 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 +3 -3
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.code.js +1 -1
- 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.code.js +2 -2
- 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 +3 -3
- 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.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +2 -2
- 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-extensions.d.ts +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +7 -7
- package/dist/main-first-time-setup.code.js +2 -2
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- 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/interactive/theme/color-utils.d.ts +5 -5
- package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
- package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
- package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
- package/dist/modes/rpc/rpc-types.d.ts +29 -2
- package/dist/package-manager-cli.code.js +5 -5
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +1 -2
- package/dist/startup-stages/9.js +2 -1
- package/dist/utils/native-module.d.ts +44 -0
- package/dist/utils/startup-database-spare.code.js +3 -3
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks.md +235 -243
- package/docs/build.md +12 -11
- package/docs/codemode.md +60 -51
- package/docs/compaction/reference.md +61 -24
- package/docs/compaction.md +117 -65
- package/docs/computer-use.md +179 -146
- package/docs/containerization.md +79 -33
- package/docs/custom-provider/api-reference.md +148 -11
- package/docs/custom-provider/oauth.md +44 -27
- package/docs/custom-provider/override.md +14 -7
- package/docs/custom-provider/registration.md +75 -65
- package/docs/custom-provider/streaming.md +42 -19
- package/docs/custom-provider.md +25 -61
- package/docs/development.md +47 -43
- package/docs/docs.json +33 -33
- package/docs/environment-variables.md +83 -57
- package/docs/extensions/api-reference.md +323 -734
- package/docs/extensions/authoring.md +186 -269
- package/docs/extensions/events.md +308 -375
- package/docs/extensions/examples.md +122 -74
- package/docs/extensions/ui.md +217 -197
- package/docs/extensions.md +152 -259
- package/docs/getting-started/authentication.md +27 -14
- package/docs/getting-started/first-session.md +25 -26
- package/docs/getting-started/installation.md +62 -84
- package/docs/getting-started/project-instructions.md +39 -14
- package/docs/guides/configuration.md +42 -20
- package/docs/guides/intercom.md +17 -13
- package/docs/guides/non-interactive.md +29 -16
- package/docs/guides/orchestration.md +16 -10
- package/docs/guides/resume-on-any-machine.md +54 -49
- package/docs/guides/subagents.md +22 -14
- package/docs/guides/team-setup.md +37 -26
- package/docs/guides.md +22 -21
- package/docs/herdr.md +21 -16
- package/docs/index.md +16 -17
- package/docs/intercom/operations.md +68 -66
- package/docs/intercom/reference.md +196 -191
- package/docs/intercom.md +103 -92
- package/docs/json.md +71 -71
- package/docs/keybindings.md +63 -50
- package/docs/libraries/agent-core.md +49 -8
- package/docs/libraries/ai.md +21 -12
- package/docs/libraries/codemode.md +28 -6
- package/docs/libraries/schema.md +7 -7
- package/docs/libraries/telemetry.md +7 -7
- package/docs/libraries/tui.md +74 -94
- package/docs/libraries.md +5 -5
- package/docs/llama-cpp.md +38 -33
- package/docs/mcp-servers.md +96 -90
- package/docs/models/reference.md +46 -33
- package/docs/models-configuration.md +12 -6
- package/docs/models.md +93 -88
- package/docs/orchestration/migrating-workflows.md +21 -19
- package/docs/orchestration/patterns.md +35 -20
- package/docs/orchestration.md +22 -21
- package/docs/packages/authoring.md +28 -19
- package/docs/packages/reference.md +75 -16
- package/docs/packages.md +31 -33
- package/docs/programmatic.md +22 -21
- package/docs/prompt-templates.md +63 -41
- package/docs/providers/reference.md +35 -19
- package/docs/providers.md +61 -71
- package/docs/quickstart.md +32 -46
- package/docs/reference/cli.md +249 -252
- package/docs/reference.md +23 -20
- package/docs/rpc/examples.md +74 -17
- package/docs/rpc/extension-ui.md +79 -62
- package/docs/rpc/protocol.md +816 -358
- package/docs/rpc.md +75 -151
- package/docs/sdk/reference.md +175 -45
- package/docs/sdk/structured-decisions.md +92 -62
- package/docs/sdk/web-server.md +79 -46
- package/docs/sdk.md +237 -195
- package/docs/security.md +106 -43
- package/docs/session-format.md +96 -59
- package/docs/sessions.md +149 -113
- package/docs/settings.md +289 -204
- package/docs/shell-aliases.md +15 -6
- package/docs/skills/authoring.md +17 -9
- package/docs/skills/reference.md +23 -21
- package/docs/skills.md +104 -97
- package/docs/storage.md +140 -242
- package/docs/subagents/authoring.md +147 -16
- package/docs/subagents/reference.md +100 -30
- package/docs/subagents.md +220 -252
- package/docs/terminal-setup.md +97 -69
- package/docs/termux.md +51 -85
- package/docs/themes/reference.md +51 -37
- package/docs/themes.md +49 -54
- package/docs/tmux.md +38 -21
- package/docs/tools.md +198 -147
- package/docs/tui/reference.md +64 -32
- package/docs/tui.md +38 -66
- package/docs/usage.md +76 -78
- package/docs/verification.md +25 -25
- package/docs/web-access.md +72 -55
- package/docs/windows.md +53 -58
- package/docs/worktree-snapshots.md +62 -65
- package/package.json +8 -8
- package/schemas/models.schema.json +51 -0
- package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
- package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
- package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
- package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
package/docs/computer-use.md
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
|
|
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 [
|
|
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 [
|
|
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
|
|
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`)
|
|
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
|
|
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.
|
|
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
|
|
48
|
+
Atomic bundles the `agent-desktop` skill with the core workflow, while detailed version-matched guides live inside the CLI itself:
|
|
132
49
|
|
|
133
|
-
```
|
|
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
|
|
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
|
|
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
|
-
|
|
|
146
|
-
|
|
|
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
|
-
|
|
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
|
-
```
|
|
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` (
|
|
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
|
-
```
|
|
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.
|
|
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
|
-
```
|
|
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
|
-
|
|
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
|
-
```
|
|
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
|
|
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
|
|
201
|
-
- **
|
|
202
|
-
-
|
|
203
|
-
- **
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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.
|
|
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
|
-
```
|
|
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
|
-
```
|
|
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.
|
|
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
|
-
```
|
|
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
|
-
```
|
|
236
|
+
```bash
|
|
300
237
|
herdr pane run <pane-id> "<command>"
|
|
301
|
-
herdr pane wait-output <pane-id> --match "<expected
|
|
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.
|
|
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
|
-
```
|
|
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
|
-
```
|
|
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
|
|
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
|
|
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).
|
|
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
|
|
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,
|
|
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
|
|
401
|
-
|
|
|
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. |
|