@bastani/atomic 0.10.14 → 0.10.15-alpha.2
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 +31 -0
- package/README.md +1 -1
- 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 +11 -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 +80 -67
- 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 +117 -90
- 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 +16 -17
- 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 -19
- 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 +51 -39
- 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/termux.md +0 -118
package/docs/verification.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Verify changes with evidence"
|
|
3
|
-
sidebarTitle: "
|
|
3
|
+
sidebarTitle: "Verify changes"
|
|
4
4
|
description: "Choose real checks for code, terminal, browser, and desktop changes, capture reproducible evidence, and attach it to pull requests."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Good verification
|
|
7
|
+
Good verification exercises the exact behavior that changed. A unit test and its output may be enough for a library fix; when a change affects what a user sees or does, test that interaction directly. A screen recording helps when motion or timing matters, though it does not replace required automated tests.
|
|
8
8
|
|
|
9
9
|
## Choose checks that answer the question
|
|
10
10
|
|
|
@@ -12,95 +12,106 @@ Start with the project's required tests, build, typecheck, and lint. Then ask wh
|
|
|
12
12
|
|
|
13
13
|
| Change | Useful check | Evidence to keep |
|
|
14
14
|
| --- | --- | --- |
|
|
15
|
-
| API, CLI, or library | Run the affected entry point with a representative input
|
|
16
|
-
| Terminal interface | Send
|
|
17
|
-
| Browser or desktop UI | Exercise the visible action and
|
|
18
|
-
| Documentation | Follow the
|
|
15
|
+
| API, CLI, or library | Run the affected entry point with a representative input plus a failing or boundary case. | Exact command, exit status, expected output, and actual output. |
|
|
16
|
+
| Terminal interface | Send real keystrokes in a real terminal at the affected dimensions. | Before and after pane contents, focus or cursor state if relevant, and exit status. |
|
|
17
|
+
| Browser or desktop UI | Exercise the visible action and verify the resulting state—ideally after reopening or reloading. | Accessibility snapshot, screenshot, and the checked postcondition. |
|
|
18
|
+
| Documentation | Follow the instructions from the stated starting point, run examples, and check links and anchors. | Which example ran, the outcome, and any prerequisites. |
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
<Tip>
|
|
21
|
+
Past sessions, commits, and pull requests can suggest useful checks, but they never prove the current revision works. Always re-verify against your current candidate. For tool setup, OS permissions, and coverage limits, see [Automate apps, browsers, and terminals](/computer-use).
|
|
22
|
+
</Tip>
|
|
23
23
|
|
|
24
24
|
## Define a reproducible scenario
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
<Steps>
|
|
27
|
+
<Step title="Record the revision and environment">
|
|
28
|
+
Note the tested commit or artifact (including local changes), OS, app version, terminal size or browser, and starting fixture. Use non-production data and a dedicated session.
|
|
29
|
+
</Step>
|
|
30
|
+
<Step title="State the action and postcondition upfront">
|
|
31
|
+
Write down what proves success before acting—for example, "With notifications off, enable them, click Save, reopen Settings, and confirm the toggle stays on." A successful click alone does not prove persistence.
|
|
32
|
+
</Step>
|
|
33
|
+
<Step title="Wait for observable state and preserve failures">
|
|
34
|
+
Wait for an observable condition with a deadline rather than using a fixed sleep, and save failing output before cleaning up.
|
|
35
|
+
</Step>
|
|
36
|
+
<Step title="Rerun and label before/after evidence">
|
|
37
|
+
After a fix, rerun the affected checks against the updated revision and label before and after files clearly so reviewers know which revision produced each capture.
|
|
38
|
+
</Step>
|
|
39
|
+
</Steps>
|
|
31
40
|
|
|
32
41
|
## Capture evidence appropriate to the change
|
|
33
42
|
|
|
34
43
|
### Terminal changes
|
|
35
44
|
|
|
36
|
-
Use Herdr when requested
|
|
45
|
+
Use Herdr when explicitly requested inside a Herdr-managed pane; otherwise use a dedicated `tmux` session (macOS/Linux) or native `psmux` (Windows). See [Terminal automation with Herdr](/computer-use#terminal-automation-with-herdr) for setup and commands.
|
|
37
46
|
|
|
38
|
-
Set the relevant terminal
|
|
47
|
+
Set the relevant terminal dimensions, send real keystrokes, wait for a fresh result, and capture the pane before leaving the alternate screen. For a shortcut change, capture selection before and after pressing it and confirm which item opened. An idle indicator or successful `send-keys` call is not proof. A browser rendering terminal text is not TUI evidence, and WSL is not native Windows terminal coverage.
|
|
39
48
|
|
|
40
49
|
### Browser changes
|
|
41
50
|
|
|
42
|
-
Use [agent-browser](/computer-use#browser-automation-with-agent-browser) for supported browsers, Electron apps, and other
|
|
51
|
+
Use [`agent-browser`](/computer-use#browser-automation-with-agent-browser) for supported browsers, Electron apps, and other Chrome DevTools Protocol targets. Inspect a fresh snapshot, perform the action, and verify the resulting DOM or saved state.
|
|
43
52
|
|
|
44
|
-
Keep a screenshot for layout checks or a short recording for multi-step motion
|
|
53
|
+
Keep a screenshot for layout checks or a short recording for multi-step motion:
|
|
45
54
|
|
|
46
55
|
```bash
|
|
47
56
|
agent-browser --session pr-check snapshot > after.yaml
|
|
48
57
|
agent-browser --session pr-check screenshot after.png
|
|
49
58
|
```
|
|
50
59
|
|
|
51
|
-
For motion, run `agent-browser --session pr-check record start flow.webm` before the steps and `agent-browser --session pr-check record stop` afterward, then open the
|
|
60
|
+
For motion, run `agent-browser --session pr-check record start flow.webm` before the steps and `agent-browser --session pr-check record stop` afterward, then open the recording to confirm the final state is visible.
|
|
52
61
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
For Mobile Safari, run `agent-browser -p ios` against a real iOS Simulator (`set device` in Chromium changes the viewport, not the WebKit engine), and record with `xcrun simctl`. For a native mobile app, use device or emulator tooling such as XCUITest or UI Automator instead of browser captures.
|
|
62
|
+
**Mobile Safari and native mobile apps.** Run `agent-browser -p ios` against a real iOS Simulator for Mobile Safari (`set device` in Chromium changes viewport size, not the WebKit engine), and record video with `xcrun simctl`. For native mobile apps, use device or emulator tooling such as XCUITest or UI Automator instead of browser captures.
|
|
56
63
|
|
|
57
64
|
### Native desktop changes
|
|
58
65
|
|
|
59
|
-
Use [agent-desktop](/computer-use#desktop-automation-with-agent-desktop) in a dedicated graphical session after
|
|
66
|
+
Use [`agent-desktop`](/computer-use#desktop-automation-with-agent-desktop) in a dedicated graphical session after confirming readiness with `agent-desktop status`. Observe the app, act on a ref from that snapshot, wait for the postcondition with a timeout, and read it back.
|
|
60
67
|
|
|
61
|
-
Keep the snapshot, action, and wait
|
|
68
|
+
Keep the snapshot, action, and wait outputs alongside before and after screenshots. If a desktop snapshot is incomplete, capture a fresh snapshot before acting. After a timeout on a click or save, inspect the app and saved files before retrying because the action may already have landed. Approve OS consent dialogs yourself; Atomic pauses rather than clicking through system permission prompts.
|
|
62
69
|
|
|
63
|
-
##
|
|
70
|
+
## Run static analysis and linting with `qlty`
|
|
64
71
|
|
|
65
|
-
|
|
72
|
+
[`qlty`](https://qlty.sh) coordinates repository linters, formatters, and built-in static analysis (Atomic ships a bundled `qlty` skill; see [Skills](/skills)). Project scripts and CI checks remain authoritative—use `qlty` alongside them rather than replacing repository tooling.
|
|
66
73
|
|
|
67
|
-
|
|
74
|
+
- **Install.** On macOS and Linux, review the installer and run `curl https://qlty.sh | sh` (installs to `~/.qlty/bin`; override with `QLTY_NO_MODIFY_PATH=1` or `QLTY_INSTALL_BIN_PATH`). If you verify release attestations before installing, use `gh` 2.67.0 or newer so missing attestations are rejected.
|
|
75
|
+
- **Run scoped checks.** `qlty check` and `qlty fmt` inspect changed files by default. Pass `--all` for the whole repo, `--upstream origin/main` to compare against a branch, or `--filter` / `--skip` with plugin names (or `plugin:rule` on `check`) to narrow scope. Built-in `qlty metrics` and `qlty smells` run offline once installed:
|
|
68
76
|
|
|
69
|
-
|
|
77
|
+
```bash
|
|
78
|
+
qlty check
|
|
79
|
+
qlty check --upstream origin/main
|
|
80
|
+
qlty metrics --functions path/to/file.ts
|
|
81
|
+
qlty smells path/to/file.ts
|
|
82
|
+
```
|
|
70
83
|
|
|
71
|
-
|
|
84
|
+
- **Config and offline use.** Keep an existing `.qlty/qlty.toml` intact rather than re-initializing over it or adding competing formatters during a read-only review. If config changes are in scope and no `.qlty/qlty.toml` exists, run `qlty init --no` and review the generated file. Cached plugins and built-in metrics work offline, while uncached plugins require network downloads. Valid TOML does not prove a linter ran—record which checks executed and flag any required check that stayed blocked.
|
|
72
85
|
|
|
73
|
-
##
|
|
86
|
+
## Verify delegated work
|
|
74
87
|
|
|
75
|
-
|
|
88
|
+
When delegating verification to [subagents](/subagents), give them the same scenario and acceptance criteria you want checked directly. Require the tested revision, exact commands, observed results, and saved artifact paths.
|
|
76
89
|
|
|
77
|
-
|
|
90
|
+
After a subagent finishes, inspect its evidence or rerun key checks directly through [codemode](/codemode). A task confirmation, filename, or agreement between reviewers never replaces an actual check result. Fix real failures and rerun against the updated revision before accepting the change. Approving a change stays separate from permission to publish it, which Atomic confirms explicitly (for example via [`ask_user_question`](/tools#ask_user_question)).
|
|
78
91
|
|
|
79
|
-
|
|
92
|
+
If you switch from delegated verification to direct execution in your main session, finish or stop running subagents and inspect modified files and background tasks before repeating commands.
|
|
80
93
|
|
|
81
|
-
|
|
94
|
+
## When a tool or environment is unavailable
|
|
82
95
|
|
|
83
|
-
|
|
84
|
-
- **Run scoped checks.** `qlty check` and `qlty fmt` inspect changed files by default. Pass `--all` to cover the whole repository, `--upstream origin/main` to compare against a branch, or `--filter` and `--skip` with plugin names (or `plugin:rule` entries on `check`) to narrow scope. Built-in `qlty metrics` and `qlty smells` run offline once `qlty` is installed:
|
|
96
|
+
Check installed tools and cached runtimes first, and install missing dependencies only when permitted. When setup is blocked, report:
|
|
85
97
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
qlty metrics --functions path/to/file.ts
|
|
90
|
-
qlty smells path/to/file.ts
|
|
91
|
-
```
|
|
98
|
+
- the missing prerequisite and exact error or restriction;
|
|
99
|
+
- the narrower checks that did run and passed;
|
|
100
|
+
- what still requires the target environment.
|
|
92
101
|
|
|
93
|
-
|
|
102
|
+
For example, a passing headless-browser test does not verify a native file dialog. Report skipped or simulated scenarios clearly instead of counting them as full-platform passes.
|
|
94
103
|
|
|
95
|
-
## Include evidence in a
|
|
104
|
+
## Include evidence in a pull request
|
|
96
105
|
|
|
97
|
-
State the tested revision and environment, actions taken, expected and actual outcomes, checks run, and coverage limits. Place each
|
|
106
|
+
State the tested revision and environment, actions taken, expected and actual outcomes, checks run, and coverage limits. Place each screenshot or clip next to the scenario it proves, with reproduction steps alongside it. Label local-only artifacts clearly because reviewers cannot open paths on your machine.
|
|
98
107
|
|
|
99
|
-
|
|
108
|
+
<Warning>
|
|
109
|
+
**Review captures before uploading.** Local capture does not authorize publication. Upload evidence only to an authorized repository after checking and redacting personal data, credentials, private source, and unrelated windows.
|
|
110
|
+
</Warning>
|
|
100
111
|
|
|
101
|
-
|
|
112
|
+
### Attach media with GitHub CLI
|
|
102
113
|
|
|
103
|
-
On a supported GitHub host,
|
|
114
|
+
On a supported GitHub host, verify `gh --version` (`gh` 2.99.0 or newer) and `gh pr create --help` for [GitHub CLI attachment support](https://docs.github.com/en/github-cli/github-cli/attaching-files-with-github-cli):
|
|
104
115
|
|
|
105
116
|
```bash
|
|
106
117
|
gh pr create --title "Fix settings save" --body-file body.md \
|
|
@@ -109,6 +120,23 @@ gh pr create --title "Fix settings save" --body-file body.md \
|
|
|
109
120
|
--attach flow.webm
|
|
110
121
|
```
|
|
111
122
|
|
|
112
|
-
Use a single line or PowerShell continuation syntax on Windows. To add evidence to an existing pull request, use `gh pr edit` or an authorized `gh pr comment` with `--body-file` and `--attach`. The `#text` suffix sets image alt text
|
|
113
|
-
|
|
114
|
-
Read back the pull request or comment to confirm the hosted links render before reporting an upload. If the CLI, host, permissions, or file size prevent attachment, keep the artifacts local, explain the limitation, and use the manual upload path instead of uploading to an unrelated service.
|
|
123
|
+
Use a single line or PowerShell line-continuation syntax on Windows. To add evidence to an existing pull request, use `gh pr edit` or an authorized `gh pr comment` with `--body-file` and `--attach`. The `#text` suffix sets image alt text (omit it for video).
|
|
124
|
+
|
|
125
|
+
Read back the pull request or comment to confirm the hosted links render before reporting an upload. If the CLI, host, permissions, or file size prevent attachment, keep the artifacts local, explain the limitation, and use the manual GitHub upload path instead of uploading to an unrelated service.
|
|
126
|
+
|
|
127
|
+
## Related docs
|
|
128
|
+
|
|
129
|
+
<Columns cols={2}>
|
|
130
|
+
<Card title="Automate apps and browsers" href="/computer-use">
|
|
131
|
+
Set up and safely operate `agent-desktop`, `agent-browser`, Herdr, and `tmux`.
|
|
132
|
+
</Card>
|
|
133
|
+
<Card title="Subagents" href="/subagents">
|
|
134
|
+
Delegate bounded implementation and verification tasks to isolated contexts.
|
|
135
|
+
</Card>
|
|
136
|
+
<Card title="Codemode" href="/codemode">
|
|
137
|
+
Run quick JavaScript verification scripts directly from your main session.
|
|
138
|
+
</Card>
|
|
139
|
+
<Card title="Skills" href="/skills">
|
|
140
|
+
Use bundled skills such as `qlty`, `tmux`, and `herdr` or author reusable check scripts.
|
|
141
|
+
</Card>
|
|
142
|
+
</Columns>
|
package/docs/web-access.md
CHANGED
|
@@ -4,29 +4,38 @@ sidebarTitle: "Web access"
|
|
|
4
4
|
description: "Search the web, fetch webpages, PDFs, GitHub repos, and videos, query public repos with DeepWiki, and configure ~/.atomic/web-search.json."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Atomic bundles four web-access tools
|
|
7
|
+
Atomic bundles four web-access tools—`web_search`, `fetch_content`, `get_search_content`, and `code_search`—enabled by default. Both `web_search` and `code_search` work out of the box with no API key setup.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
| Tool | What it does | Auth required |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| [`web_search`](#search-the-web) | Search the web with Exa, Perplexity, Gemini API, or Gemini Web. | None by default (uses keyless Exa); optional API keys or browser cookies. |
|
|
12
|
+
| [`fetch_content`](#fetch-pages-and-media) | Read webpages as Markdown, PDFs, GitHub repos, YouTube videos, and local videos. | None for webpages/PDFs; optional `gh` for private/large repos; Gemini/Perplexity for video analysis. |
|
|
13
|
+
| [`get_search_content`](#retrieve-stored-results) | Retrieve full stored content from a prior `fetch_content` or `web_search` call. | None. |
|
|
14
|
+
| [`code_search`](#code_search) | Query code and architecture of public GitHub repositories via DeepWiki. | None. |
|
|
15
|
+
|
|
16
|
+
Interactive commands: run `/websearch <query>` to search in your browser curator directly, `/curator on` to review search results before the agent sees them, or `/search` to inspect stored session results.
|
|
17
|
+
|
|
18
|
+
## Search the web (`web_search`) {#search-the-web}
|
|
10
19
|
|
|
11
|
-
|
|
12
|
-
- **Optional API keys.** Set `EXA_API_KEY`, `PERPLEXITY_API_KEY`, or `GEMINI_API_KEY`, or store camelCase keys in `~/.atomic/web-search.json` to raise limits or pick a specific provider.
|
|
13
|
-
- **Interactive commands.** Run `/websearch <query>` to search directly, `/curator on` to review results in your browser before the agent sees them, or `/search` to inspect stored session results.
|
|
20
|
+
Pass `query` for a single search, or `queries` (an array of 2 to 4 varied angles) for broader research. If both are supplied, `queries` wins and `query` is ignored. Multiple queries run sequentially.
|
|
14
21
|
|
|
15
|
-
|
|
22
|
+
Optional parameters: `numResults` (default `5`), `includeContent` (boolean; fetches full page text), `recencyFilter` (`"day"`, `"week"`, `"month"`, or `"year"`), `domainFilter` (array of domains; prefix with `-` to exclude), and `provider` (`"auto"`, `"exa"`, `"perplexity"`, or `"gemini"`).
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
### Provider order and parameter support
|
|
18
25
|
|
|
19
|
-
|
|
26
|
+
With `provider: "auto"` (the default), Atomic tries providers in order: **Exa → Perplexity → Gemini API → Gemini Web**. Parameter support and limits differ by provider:
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
| Provider | Per-query timeout | `numResults` | `recencyFilter` / `domainFilter` | `includeContent: true` | Notes |
|
|
29
|
+
| --- | --- | --- | --- | --- | --- |
|
|
30
|
+
| **Exa (API key)** | 60s | Passed through (not clamped to 20) | Supported | Returns full page text inline synchronously | Local counter in `~/.atomic/exa-usage.json` warns at 800 and stops at 1,000 requests/month. Explicit `provider: "exa"` fails directly on error. |
|
|
31
|
+
| **Exa (keyless MCP)** | 60s | Passed through (not clamped to 20) | Supported | Returns full page text inline synchronously | Uses `mcp.exa.ai` with no local monthly cap. Falls back to Perplexity or Gemini on failure. |
|
|
32
|
+
| **Perplexity** | None | Clamped to `20` | Supported (invalid domains ignored) | Fetches full pages in the background | Client-side rate limit of 10 requests per 60 seconds. |
|
|
33
|
+
| **Gemini API** | 60s | Ignored | Ignored | Fetches full pages in the background | Uses `searchModel` (default `"gemini-3-flash-preview"`). |
|
|
34
|
+
| **Gemini Web** | 60s | Ignored | Added to search prompt | Fetches full pages in the background | Always uses `"gemini-3-flash-preview"` (ignores `searchModel`). Disabled by default; macOS/Linux only. |
|
|
22
35
|
|
|
23
|
-
|
|
24
|
-
2. **Perplexity.** Used when a key is set. Client-side rate limiting caps requests at 10 per 60 seconds.
|
|
25
|
-
3. **Gemini API.** Used when a key is set (`GEMINI_API_KEY` or `geminiApiKey` in `web-search.json`).
|
|
26
|
-
4. **Gemini Web.** Reads cookies from a signed-in browser. Disabled by default; enable it with `"allowBrowserCookies": true` in `~/.atomic/web-search.json` or `ATOMIC_ALLOW_BROWSER_COOKIES=1` (the environment variable must be the exact string `1`; `true` does not enable it).
|
|
27
|
-
- **Supported platforms and browsers:** On **macOS**, Atomic checks Helium, Chrome, and Arc (in that order). On **Linux**, Atomic checks Chromium and Chrome (in that order). **Windows is not supported.** Edge, Brave, Vivaldi, and Opera are not checked on any OS. The default profile directory is `"Default"` (override with `chromeProfile`).
|
|
36
|
+
**Gemini Web browser cookies.** Disabled by default. Enable with `"allowBrowserCookies": true` in `~/.atomic/web-search.json` or `ATOMIC_ALLOW_BROWSER_COOKIES=1` (exact string `1`; `true` does not enable it). On **macOS**, Atomic checks Helium, Chrome, and Arc in order; on **Linux**, Chromium and Chrome. **Windows is not supported**, and Edge, Brave, Vivaldi, and Opera are not checked. Override the `"Default"` profile directory with `chromeProfile`.
|
|
28
37
|
|
|
29
|
-
Environment variables override fields in `~/.atomic/web-search.json`.
|
|
38
|
+
Environment variables override fields in `~/.atomic/web-search.json`. JSON keys use camelCase (`geminiApiKey`, not `GEMINI_API_KEY`):
|
|
30
39
|
|
|
31
40
|
| Provider | Environment variable | `web-search.json` field |
|
|
32
41
|
| --- | --- | --- |
|
|
@@ -42,87 +51,94 @@ Environment variables override fields in `~/.atomic/web-search.json`. Note that
|
|
|
42
51
|
}
|
|
43
52
|
```
|
|
44
53
|
|
|
45
|
-
When no provider can be reached, the error
|
|
54
|
+
When no provider can be reached, the error lists the relevant environment variables, JSON config fields, and cookie opt-in setting.
|
|
46
55
|
|
|
47
56
|
### The search curator
|
|
48
57
|
|
|
49
|
-
By default, `web_search` returns raw results. Run `/curator on` or `/curator summary-review` (or set `"workflow": "summary-review"` in `~/.atomic/web-search.json`) to open an interactive browser window where you filter results and approve a summary draft before the agent sees them. Run `/curator off` or `/curator none` to return to raw results, or
|
|
58
|
+
By default (`workflow: "none"`), `web_search` returns raw results. Run `/curator on` or `/curator summary-review` (or set `"workflow": "summary-review"` in `~/.atomic/web-search.json`) to open an interactive browser window where you filter results and approve a summary draft before the agent sees them. Run `/curator off` or `/curator none` to return to raw results, or `/curator` alone to toggle. Switching providers inside the curator saves `provider` and updates active search settings immediately.
|
|
50
59
|
|
|
51
|
-
|
|
60
|
+
On macOS, if optional `glimpseui` is installed locally or globally, the curator opens in a native Glimpse window instead of the default browser. The curator's query-rewrite button uses the first available of `anthropic/claude-haiku-4-5`, `google/gemini-2.5-flash`, or `openai/gpt-4.1-mini`.
|
|
52
61
|
|
|
53
|
-
|
|
62
|
+
The curator requires an interactive session with a browser. Subagents and non-interactive runs skip it and return raw results; on headless machines where a browser cannot open, `web_search` falls back to raw results with a note pointing to `/curator off`.
|
|
54
63
|
|
|
55
|
-
|
|
64
|
+
## Fetch pages and media (`fetch_content`) {#fetch-pages-and-media}
|
|
56
65
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Always pass the lowercase `urls` field as a nonempty array of strings, even for one URL (do not pass a singular `url` field, which belongs to `get_search_content`):
|
|
66
|
+
`fetch_content` reads webpages as Markdown, PDFs, GitHub repositories, YouTube videos, and local video files. Always pass lowercase `urls` as a non-empty array of strings, even for one URL (singular `url` belongs to `get_search_content`):
|
|
60
67
|
|
|
61
68
|
```json
|
|
62
69
|
{"urls": ["https://example.com/article"]}
|
|
63
70
|
```
|
|
64
71
|
|
|
65
|
-
For multiple pages (fetched up to 3 at a time):
|
|
66
|
-
|
|
67
72
|
```json
|
|
68
73
|
{"urls": ["https://example.com/one", "https://example.com/two"]}
|
|
69
74
|
```
|
|
70
75
|
|
|
71
|
-
For video analysis, include your question in `prompt`:
|
|
72
|
-
|
|
73
76
|
```json
|
|
74
77
|
{"urls": ["/path/to/recording.mp4"], "prompt": "What error appears on screen?"}
|
|
75
78
|
```
|
|
76
79
|
|
|
77
|
-
|
|
78
|
-
- **YouTube videos.** Tries Gemini Web first, then Gemini API, then Perplexity. `/playlist` URLs are not treated as videos. Setting `"youtube": { "enabled": false }` in `~/.atomic/web-search.json` disables both YouTube analysis and YouTube frame extraction.
|
|
79
|
-
- **`prompt` and `model`.** Apply only to YouTube and local video analysis, not webpage extraction.
|
|
80
|
-
- **Frame extraction (`frames` and `timestamp`).** Extract images from YouTube or local videos only (ignored for webpages and other inputs, including in mixed batches). Omit both for text or transcripts. `frames` accepts `1` to `12`; `timestamp` accepts bare seconds (`"85"`), `MM:SS` (`"1:25"`), `H:MM:SS`, or a `start-end` range (`"1:25-2:00"`):
|
|
81
|
-
- `frames` alone samples evenly across the whole video (requires `ffprobe` for local videos).
|
|
82
|
-
- Single `timestamp` alone extracts 1 frame at that time.
|
|
83
|
-
- Single `timestamp` plus `frames` extracts `N` frames at 5-second intervals starting at `timestamp`.
|
|
84
|
-
- Range `timestamp` alone extracts 6 frames across the range.
|
|
85
|
-
- Range `timestamp` plus `frames` extracts up to `N` frames with a 5-second minimum spacing (short ranges may return fewer frames).
|
|
86
|
-
- Requires `ffmpeg` (and `ffprobe` for whole-video sampling of local files), plus `yt-dlp` for YouTube.
|
|
80
|
+
### Webpages, PDFs, and fallbacks
|
|
87
81
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
- **Inline output vs. batches.** Single-URL fetches return up to **30,000 characters** inline and store full text for `get_search_content`. Multi-URL batches (fetched up to 3 concurrently) return titles and character counts inline only—read full text per URL with `get_search_content`.
|
|
83
|
+
- **HTTP limits.** Direct fetches use a 30-second timeout, up to 20 redirects, a **5 MiB** limit for HTML and text, and a **20 MiB** limit for PDFs. Binary MIME types (`application/octet-stream`, `image/*`, `audio/*`, `video/*`, `application/zip`) are rejected. Non-HTML text responses return verbatim without a minimum character threshold.
|
|
84
|
+
- **Public webpage fallbacks.** On HTML pages where Readability fails, `fetch_content` tries Next.js RSC extraction first. When a direct fetch of a public URL fails or extracts fewer than 500 characters, `fetch_content` falls back to **Jina Reader (`https://r.jina.ai/`)**, then **Gemini URL Context API**, then **Gemini Web**. `Unsupported content type` and `Response too large` errors never trigger fallbacks.
|
|
85
|
+
- **Local and private URLs.** Unlike [`read`](/tools#documents-and-urls) (which blocks localhost and private IPs by default), `fetch_content` allows direct HTTP fetches of localhost and private-network URLs, but skips third-party Jina Reader and Gemini fallbacks whenever the URL or any redirect hop is private, single-label, `.localhost`/`.local`/`.internal`/`.lan`/`.home.arpa`, or carries embedded credentials.
|
|
86
|
+
|
|
87
|
+
<Note>
|
|
88
|
+
**PDF side effect.** Fetching a PDF URL downloads up to 20 MiB, extracts up to 100 pages, **writes the extracted Markdown into `~/Downloads`** (never overwriting existing files—collisions append `-2.md`, `-3.md`, etc.), and returns the saved file path, page count, and character count.
|
|
89
|
+
</Note>
|
|
90
|
+
|
|
91
|
+
### GitHub repositories
|
|
91
92
|
|
|
92
|
-
- **GitHub
|
|
93
|
+
- **Cloning vs. GitHub API.** Code repository URLs are shallow-cloned unless the repository exceeds `githubClone.maxRepoSizeMB` (default `350` MB) or targets a full 40-hex commit SHA URL:
|
|
94
|
+
- **Oversized repos:** Uses the GitHub API by default; pass `forceClone: true` to force a shallow clone anyway.
|
|
95
|
+
- **Full 40-hex commit SHA URLs:** **Always** use the GitHub API and never clone, even when `forceClone: true` is passed.
|
|
96
|
+
- **Private repos and `gh` CLI:** When an authenticated `gh` CLI is available, cloning and GitHub API access work on **private repositories** as well as public ones. Without `gh`, Atomic cannot check repo size or call the GitHub API, so `maxRepoSizeMB` enforcement and API fallback do not run.
|
|
97
|
+
- **Non-code GitHub URLs** (`issues`, `pull`, `discussions`, `releases`, `wiki`, `actions`, `commits`, `compare`, and similar) bypass repository cloning and go through standard HTTP extraction.
|
|
98
|
+
- **Limits and cache cleanup.** Skips binary files and dependency/build directories (`node_modules`, `vendor`, `dist`, `build`, etc.), caps inline files at 100,000 characters, and caps directory listings at 200 entries. Atomic clears every Atomic-marked clone directory created during the session on session start, branch switch (`/tree`), and session shutdown—including under a custom `githubClone.clonePath`.
|
|
93
99
|
|
|
94
|
-
###
|
|
100
|
+
### Videos and frame extraction
|
|
95
101
|
|
|
96
|
-
- **
|
|
97
|
-
- **
|
|
98
|
-
- **
|
|
99
|
-
- **
|
|
102
|
+
- **Local videos.** Accepts absolute paths (including Windows drive and UNC paths—escape backslashes in JSON), `./` or `../` relative paths, and `file://` URLs for `.mp4`, `.mov`, `.webm`, `.avi`, `.mpeg`, `.mpg`, `.wmv`, `.flv`, `.3gp`, and `.3gpp`. Analysis tries **Gemini API first, then Gemini Web** (with browser cookies enabled). `video.maxSizeMB` (`50` by default) is measured in binary MiB. Setting `"video": { "enabled": false }` rejects local video paths for both analysis and frame extraction.
|
|
103
|
+
- **YouTube videos.** Analysis tries **Gemini Web first, then Gemini API, then Perplexity**. `/playlist` URLs are not treated as videos. Setting `"youtube": { "enabled": false }` disables both YouTube analysis and frame extraction.
|
|
104
|
+
- **Thumbnails, `prompt`, and `model`.** `prompt` and `model` apply only to video analysis (not webpages). Single-video analysis automatically attaches a thumbnail (`ffmpeg` frame at 1 second for local videos, or YouTube's thumbnail).
|
|
105
|
+
- **Frame extraction (`frames` and `timestamp`).** Extracts images from YouTube or local videos only (omit both for text/transcripts). `frames` accepts `1`–`12`; `timestamp` accepts seconds (`"85"`), `MM:SS` (`"1:25"`), `H:MM:SS`, or a `start-end` range (`"1:25-2:00"`):
|
|
106
|
+
- `frames` alone samples evenly across the whole video (requires `ffprobe` for local files).
|
|
107
|
+
- Single `timestamp` alone extracts 1 frame; single `timestamp` + `frames` extracts `N` frames at 5-second intervals.
|
|
108
|
+
- Range `timestamp` alone extracts 6 frames; range `timestamp` + `frames` extracts up to `N` frames with at least 5-second spacing.
|
|
109
|
+
- Requires `ffmpeg` (and `ffprobe` for whole-video local sampling), plus `yt-dlp` for YouTube.
|
|
100
110
|
|
|
101
|
-
|
|
111
|
+
```json
|
|
112
|
+
{"urls": ["/path/to/recording.mp4"], "timestamp": "1:25-2:00", "frames": 3}
|
|
113
|
+
```
|
|
102
114
|
|
|
103
|
-
|
|
115
|
+
<Warning>
|
|
116
|
+
**Fetch videos one URL at a time for frames.** Extracted frames and thumbnails are attached only when `urls` contains a **single** entry. In a multi-URL batch (`urls` with 2 or more entries), extracted frames and thumbnails are stripped and cannot be recovered with `get_search_content`.
|
|
117
|
+
</Warning>
|
|
104
118
|
|
|
105
|
-
|
|
106
|
-
- Its value is a nonempty array of strings.
|
|
107
|
-
- No unrecognized fields are present.
|
|
119
|
+
### Fetch troubleshooting
|
|
108
120
|
|
|
109
|
-
If every URL in a batch fails, the error lists each URL and
|
|
121
|
+
If argument validation fails, confirm the field is lowercase `urls`, its value is a non-empty string array, and no unknown fields are present. If every URL in a batch fails, the error lists each URL and cause; retry transient failures individually with `fetch_content({ urls: ["<failed URL>"] })`, or try an alternate URL or `web_search`. `get_search_content` cannot recover failed fetches.
|
|
110
122
|
|
|
111
|
-
##
|
|
123
|
+
## Retrieve stored results (`get_search_content`) {#retrieve-stored-results}
|
|
112
124
|
|
|
113
|
-
|
|
125
|
+
`fetch_content` prints a `responseId` whenever single-URL output exceeds 30,000 characters or when fetching multiple URLs. `web_search` prints full summaries inline without truncating and prints a `[fetchId]` when `includeContent: true` stores page content (retrieve those pages with `url` or `urlIndex`). Stored `web_search` summaries are browsable in `/search` and accessible programmatically via `query` or `queryIndex`.
|
|
114
126
|
|
|
115
|
-
`
|
|
127
|
+
Pass `responseId` plus **at least one selector** (`url` / `urlIndex` for fetched pages; `query` / `queryIndex` for search results). Omitting selectors returns an error listing available queries or URLs. `query` and `url` take precedence over indices and match exact, case-sensitive strings.
|
|
116
128
|
|
|
117
129
|
| Parameter | Type | Required | Description |
|
|
118
130
|
| --- | --- | --- | --- |
|
|
119
|
-
| `responseId` | string | Yes | ID returned by
|
|
120
|
-
| `query` | string | One of `query` / `queryIndex` (
|
|
121
|
-
| `queryIndex` | number | One of `query` / `queryIndex` (
|
|
122
|
-
| `url` | string | One of `url` / `urlIndex` (
|
|
123
|
-
| `urlIndex` | number | One of `url` / `urlIndex` (
|
|
131
|
+
| `responseId` | string | Yes | ID returned by `fetch_content` or `web_search`. |
|
|
132
|
+
| `query` | string | One of `query` / `queryIndex` (search) | Exact case-sensitive search query from a stored `web_search` entry. |
|
|
133
|
+
| `queryIndex` | number | One of `query` / `queryIndex` (search) | Zero-based query index in a stored `web_search` entry. |
|
|
134
|
+
| `url` | string | One of `url` / `urlIndex` (fetch) | Exact case-sensitive URL from a stored fetch entry. |
|
|
135
|
+
| `urlIndex` | number | One of `url` / `urlIndex` (fetch) | Zero-based URL index in a stored fetch entry. |
|
|
124
136
|
|
|
125
|
-
|
|
137
|
+
<Note>
|
|
138
|
+
**1-hour retention on session resume.** When resuming a session or switching branches, `get_search_content` and `/search` restore only entries newer than **1 hour**. Older `responseId` values return `No stored results`.
|
|
139
|
+
</Note>
|
|
140
|
+
|
|
141
|
+
## Query GitHub repositories (`code_search`) {#code_search}
|
|
126
142
|
|
|
127
143
|
`code_search` asks DeepWiki (`https://mcp.deepwiki.com/mcp`) about code, architecture, and APIs in a public GitHub repository. It requires no API key or MCP setup and does not fall back to web search.
|
|
128
144
|
|
|
@@ -130,50 +146,46 @@ When `web_search` or `fetch_content` truncates output or stores background fetch
|
|
|
130
146
|
| --- | --- | --- | --- |
|
|
131
147
|
| `repoName` | string | Yes | Public GitHub repository in `owner/repo` format (not a URL). |
|
|
132
148
|
| `query` | string | Yes | Question sent verbatim to DeepWiki. |
|
|
133
|
-
| `maxTokens` | integer | No | Best-effort output limit (`1000
|
|
149
|
+
| `maxTokens` | integer | No | Best-effort output limit (`1000`–`50000`, default `5000`, ~4 chars/token). |
|
|
134
150
|
|
|
135
|
-
Requests have a 60-second deadline. See [`code_search` in Built-in tools](/tools#code_search) for
|
|
151
|
+
Requests have a 60-second deadline. See [`code_search` in Built-in tools](/tools#code_search) for an example.
|
|
136
152
|
|
|
137
|
-
## Slash commands and shortcuts
|
|
153
|
+
## Slash commands and shortcuts {#slash-commands-and-shortcuts}
|
|
138
154
|
|
|
139
155
|
| Command | Action |
|
|
140
156
|
| --- | --- |
|
|
141
157
|
| `/curator [on\|off\|none\|summary-review]` | Set the search curator workflow and save it to `~/.atomic/web-search.json`. Omitting the argument toggles between `none` and `summary-review`. |
|
|
142
|
-
| `/websearch [query1, query2, ...]` | Open the interactive search curator directly without an agent round-trip.
|
|
158
|
+
| `/websearch [query1, query2, ...]` | Open the interactive search curator directly without an agent round-trip. Splits arguments on commas into separate queries. Closing/cancelling sends nothing; timing out submits collected results as a summary-review follow-up. |
|
|
143
159
|
| `/search` | Browse, inspect, or delete stored `web_search` and `fetch_content` results from the current session. |
|
|
144
160
|
| `/google-account` | Print the active Google account used for Gemini Web when browser cookie access is enabled, without starting a model turn. |
|
|
145
161
|
|
|
146
162
|
| Shortcut | Config key | Action |
|
|
147
163
|
| --- | --- | --- |
|
|
148
|
-
| `Ctrl+Shift+S` | `shortcuts.curate` | Open the
|
|
164
|
+
| `Ctrl+Shift+S` | `shortcuts.curate` | Open the curator while a `workflow: "summary-review"` search is running (where the curator already opens automatically on start). Has no effect under the default `workflow: "none"`; use `/curator on` or `/websearch` instead. |
|
|
149
165
|
| `Ctrl+Shift+W` | `shortcuts.activity` | Toggle the web search activity widget. |
|
|
150
166
|
|
|
151
167
|
Customize shortcuts in `~/.atomic/web-search.json` under `"shortcuts"`. Shortcut changes take effect after restarting Atomic.
|
|
152
168
|
|
|
153
169
|
## Configure `web-search.json`
|
|
154
170
|
|
|
155
|
-
All fields in `~/.atomic/web-search.json` are optional. If `~/.atomic/web-search.json` does not exist, Atomic falls back to `~/.pi/web-search.json`
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
163
|
-
| `
|
|
164
|
-
| `
|
|
165
|
-
| `
|
|
166
|
-
| `
|
|
167
|
-
| `
|
|
168
|
-
| `
|
|
169
|
-
| `
|
|
170
|
-
| `
|
|
171
|
-
| `
|
|
172
|
-
| `
|
|
173
|
-
| `youtube` | object | see below | YouTube settings: `enabled` (`true`; setting `false` disables both analysis and frame extraction) and `preferredModel` (`"gemini-3-flash-preview"`). |
|
|
174
|
-
| `video` | object | see below | Local video settings: `enabled` (`true`), `preferredModel` (`"gemini-3-flash-preview"`), and `maxSizeMB` (`50`, measured in binary MiB). |
|
|
175
|
-
|
|
176
|
-
Example configuration:
|
|
171
|
+
All fields in `~/.atomic/web-search.json` are optional. If `~/.atomic/web-search.json` does not exist, Atomic falls back to `~/.pi/web-search.json` without merging the two files; interactive saves always write `~/.atomic/web-search.json`. (Legacy `searchProvider` is still accepted as a fallback for `provider`.)
|
|
172
|
+
|
|
173
|
+
| Field | Type | Default | Applies | Description |
|
|
174
|
+
| --- | --- | --- | --- | --- |
|
|
175
|
+
| `provider` | `"auto" \| "exa" \| "perplexity" \| "gemini"` | `"auto"` | `/reload` (curator switch is immediate) | Default `web_search` provider. |
|
|
176
|
+
| `workflow` | `"none" \| "summary-review"` | `"none"` | Immediate | `"none"` returns raw results; `"summary-review"` opens the browser curator. |
|
|
177
|
+
| `curatorTimeoutSeconds` | number (`1`–`600`) | `20` | Immediate | Curator wait timeout in seconds (floored; `< 1` falls back to `20`; `> 600` clamps to `600`). |
|
|
178
|
+
| `summaryModel` | string | auto | Immediate | `"provider/model"` for curator summary drafts (prefers `anthropic/claude-haiku-4-5` or `openai-codex/gpt-6.1-sol`). |
|
|
179
|
+
| `searchModel` | string | `"gemini-3-flash-preview"` | `/reload` | Gemini API model used for Gemini search queries (ignored by Gemini Web). |
|
|
180
|
+
| `shortcuts` | `{ curate?, activity? }` | `ctrl+shift+s` / `ctrl+shift+w` | Restart | Keyboard shortcuts for the curator and activity widget. |
|
|
181
|
+
| `exaApiKey` | string | unset | `/reload` | Exa API key (overridden by `EXA_API_KEY`). |
|
|
182
|
+
| `perplexityApiKey` | string | unset | `/reload` | Perplexity API key (overridden by `PERPLEXITY_API_KEY`). |
|
|
183
|
+
| `geminiApiKey` | string | unset | `/reload` | Gemini API key (overridden by `GEMINI_API_KEY`). |
|
|
184
|
+
| `allowBrowserCookies` | boolean | `false` | `/reload` | Allow Gemini Web cookie reading on macOS and Linux (overridden by `ATOMIC_ALLOW_BROWSER_COOKIES=1`). |
|
|
185
|
+
| `chromeProfile` | string | `"Default"` | `/reload` | Browser profile directory name for Gemini Web cookies. |
|
|
186
|
+
| `githubClone` | object | `enabled: true`, `maxRepoSizeMB: 350`, `cloneTimeoutSeconds: 30` | `/reload` | GitHub clone settings and optional `clonePath` (account-private temp folder by default; Atomic-marked clones under any `clonePath` clear on session switch/shutdown). |
|
|
187
|
+
| `youtube` | object | `enabled: true`, `preferredModel: "gemini-3-flash-preview"` | `/reload` | YouTube analysis and frame extraction settings (`enabled: false` disables both). |
|
|
188
|
+
| `video` | object | `enabled: true`, `preferredModel: "gemini-3-flash-preview"`, `maxSizeMB: 50` | `/reload` | Local video settings (`enabled: false` disables both analysis and frame extraction; `maxSizeMB` is binary MiB). |
|
|
177
189
|
|
|
178
190
|
```json
|
|
179
191
|
{
|
|
@@ -204,17 +216,21 @@ Example configuration:
|
|
|
204
216
|
}
|
|
205
217
|
```
|
|
206
218
|
|
|
207
|
-
|
|
219
|
+
<Note>
|
|
220
|
+
**Helper binary lookup.** Helper binaries (`gh`, `git`, `ffmpeg`, `ffprobe`, `yt-dlp`, `npm`, browser openers, and OS keychain helpers) resolve only from absolute directories in `PATH`. The current project directory is searched only when `PATH` explicitly lists it.
|
|
221
|
+
</Note>
|
|
222
|
+
|
|
223
|
+
## Enable and disable web access
|
|
208
224
|
|
|
209
225
|
Web access is enabled by default in both the CLI and the SDK.
|
|
210
226
|
|
|
211
|
-
- **CLI
|
|
227
|
+
- **CLI:** Disable web-access tools for one run with `--exclude-tools`:
|
|
212
228
|
|
|
213
229
|
```bash
|
|
214
230
|
atomic --exclude-tools web_search,fetch_content,get_search_content,code_search
|
|
215
231
|
```
|
|
216
232
|
|
|
217
|
-
- **SDK
|
|
233
|
+
- **SDK:** Disable the bundled `web-access` integration completely in `createAgentSession()`:
|
|
218
234
|
|
|
219
235
|
```typescript
|
|
220
236
|
import { createAgentSession } from "@bastani/atomic";
|
|
@@ -224,15 +240,19 @@ const { session } = await createAgentSession({
|
|
|
224
240
|
});
|
|
225
241
|
```
|
|
226
242
|
|
|
227
|
-
See [CLI tool options](/reference/cli#tool-options) and [SDK tools](/sdk/reference#tools).
|
|
228
|
-
|
|
229
|
-
## Helper binary lookup
|
|
230
|
-
|
|
231
|
-
Helper binaries (`gh`, `git`, `ffmpeg`, `ffprobe`, `yt-dlp`, `npm`, browser openers, and OS keychain helpers) are resolved only from absolute directories in `PATH`. The current project directory is searched only when `PATH` explicitly lists it.
|
|
232
|
-
|
|
233
243
|
## Related docs
|
|
234
244
|
|
|
235
|
-
|
|
236
|
-
-
|
|
237
|
-
|
|
238
|
-
|
|
245
|
+
<Columns cols={2}>
|
|
246
|
+
<Card title="Built-in tools" href="/tools">
|
|
247
|
+
Compare `read` URL fetching and `code_search`, and configure default tools.
|
|
248
|
+
</Card>
|
|
249
|
+
<Card title="Environment variables" href="/environment-variables">
|
|
250
|
+
Atomic environment variables, browser cookie opt-in, and provider credentials.
|
|
251
|
+
</Card>
|
|
252
|
+
<Card title="CLI reference" href="/reference/cli#tool-options">
|
|
253
|
+
Filter tools with `--tools`, `--exclude-tools`, and `--no-tools`.
|
|
254
|
+
</Card>
|
|
255
|
+
<Card title="SDK tools" href="/sdk/reference#tools">
|
|
256
|
+
Configure `builtins`, `tools`, and `excludedTools` programmatically.
|
|
257
|
+
</Card>
|
|
258
|
+
</Columns>
|