@bastani/atomic 0.10.14 → 0.10.15-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +3 -3
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
- package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/{sdk-B5LEWGGI.js → sdk-OHKMDJ74.js} +27 -5
- package/dist/_shared/{sdk-B5LEWGGI.js.map → sdk-OHKMDJ74.js.map} +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-Q3MWKUK4.js +2 -2
- package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
- package/dist/_shared/{startup-0-2-5QHPCEON.js → startup-0-2-2HUMCPKX.js} +14 -16
- package/dist/_shared/startup-0-2-2HUMCPKX.js.map +1 -0
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
- package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
- package/dist/_shared/startup-0-5-YDW47QX6.js +3 -3
- package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +6 -30
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +3 -3
- package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/auth-cli.code.js +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +1 -1
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/compaction/compactor.d.ts +0 -8
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +2 -2
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +3 -3
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +2 -2
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +2 -2
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +1 -1
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +2 -2
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +2 -2
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +2 -2
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +1 -1
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +1 -1
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +21 -1
- package/dist/index.js +2 -2
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/print-mode.js +1 -1
- package/dist/package-manager-cli.code.js +2 -2
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/utils/startup-database-spare.code.js +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks/reference.md +182 -0
- package/docs/background-tasks.md +98 -405
- package/docs/build.md +67 -27
- package/docs/changelog.mdx +1 -1
- package/docs/codemode.md +108 -39
- package/docs/compaction/branch-summaries.md +54 -0
- package/docs/compaction/custom-compactors.md +161 -0
- package/docs/compaction/memory-compaction.md +77 -0
- package/docs/compaction/reference.md +86 -38
- package/docs/compaction.md +51 -252
- package/docs/computer-use.md +169 -321
- package/docs/containerization.md +71 -57
- package/docs/custom-provider/api-reference.md +119 -25
- package/docs/custom-provider/oauth.md +114 -132
- package/docs/custom-provider/override.md +37 -27
- package/docs/custom-provider/registration.md +107 -83
- package/docs/custom-provider/streaming.md +85 -71
- package/docs/custom-provider.md +85 -52
- package/docs/development.md +39 -29
- package/docs/docs.json +76 -63
- package/docs/environment-variables.md +94 -44
- package/docs/extensions/api-reference.md +86 -43
- package/docs/extensions/authoring.md +162 -154
- package/docs/extensions/events.md +80 -25
- package/docs/extensions/examples.md +90 -85
- package/docs/extensions/ui.md +206 -82
- package/docs/extensions.md +79 -108
- package/docs/getting-started/authentication.md +67 -36
- package/docs/getting-started/first-session.md +53 -43
- package/docs/getting-started/installation.md +116 -89
- package/docs/getting-started/project-instructions.md +48 -34
- package/docs/guides/configuration.md +82 -20
- package/docs/guides/non-interactive.md +66 -24
- package/docs/guides/resume-on-any-machine.md +135 -82
- package/docs/guides/team-setup.md +114 -105
- package/docs/guides.md +76 -32
- package/docs/herdr.md +15 -16
- package/docs/how-atomic-works.md +140 -0
- package/docs/index.md +58 -44
- package/docs/intercom/operations.md +141 -151
- package/docs/intercom/reference.md +85 -108
- package/docs/intercom.md +84 -145
- package/docs/json.md +120 -67
- package/docs/keybindings.md +85 -49
- package/docs/libraries/agent-core.md +137 -275
- package/docs/libraries/ai.md +100 -84
- package/docs/libraries/codemode.md +210 -300
- package/docs/libraries/schema.md +59 -53
- package/docs/libraries/storage-postgres.md +49 -35
- package/docs/libraries/telemetry.md +153 -354
- package/docs/libraries/tui.md +265 -393
- package/docs/libraries.md +42 -26
- package/docs/llama-cpp.md +171 -161
- package/docs/mcp-servers.md +90 -51
- package/docs/models/choose-a-model.md +188 -0
- package/docs/models/reference.md +74 -30
- package/docs/models.md +153 -88
- package/docs/orchestration/migrating-workflows.md +23 -16
- package/docs/orchestration/patterns.md +39 -44
- package/docs/orchestration.md +65 -26
- package/docs/packages/authoring.md +51 -29
- package/docs/packages/reference.md +42 -21
- package/docs/packages.md +69 -58
- package/docs/programmatic.md +118 -24
- package/docs/prompt-templates.md +84 -83
- package/docs/providers/reference.md +43 -48
- package/docs/providers.md +219 -451
- package/docs/quickstart.md +140 -120
- package/docs/reference/cli.md +135 -97
- package/docs/reference.md +20 -18
- package/docs/rpc/examples.md +76 -20
- package/docs/rpc/extension-ui.md +64 -38
- package/docs/rpc/protocol.md +361 -110
- package/docs/rpc.md +57 -17
- package/docs/sdk/reference.md +409 -534
- package/docs/sdk/storage.md +53 -13
- package/docs/sdk/structured-decisions.md +82 -56
- package/docs/sdk/web-server.md +57 -43
- package/docs/sdk.md +106 -84
- package/docs/security.md +42 -64
- package/docs/session-format.md +62 -38
- package/docs/sessions.md +99 -214
- package/docs/settings.md +165 -195
- package/docs/shell-aliases.md +9 -6
- package/docs/skills/authoring.md +69 -48
- package/docs/skills/reference.md +51 -20
- package/docs/skills.md +99 -148
- package/docs/slash-commands.md +129 -0
- package/docs/storage/custom-adapters.md +160 -85
- package/docs/storage/jsonl.md +81 -66
- package/docs/storage/postgres/pgbouncer.md +120 -126
- package/docs/storage/postgres/tuning.md +120 -143
- package/docs/storage/postgres.md +314 -330
- package/docs/storage/sqlite.md +71 -42
- package/docs/storage.md +298 -302
- package/docs/subagents/authoring.md +55 -38
- package/docs/subagents/reference.md +73 -33
- package/docs/subagents.md +119 -187
- package/docs/terminal-setup.md +50 -38
- package/docs/termux.md +67 -41
- package/docs/themes/reference.md +23 -19
- package/docs/themes.md +142 -127
- package/docs/tmux.md +47 -55
- package/docs/tools.md +147 -109
- package/docs/tui/reference.md +166 -214
- package/docs/tui.md +196 -341
- package/docs/usage.md +118 -138
- package/docs/verification.md +79 -51
- package/docs/web-access.md +121 -101
- package/docs/windows.md +26 -27
- package/docs/worktree-snapshots/reference.md +245 -0
- package/docs/worktree-snapshots.md +71 -259
- package/package.json +8 -8
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +0 -1
- package/docs/guides/intercom.md +0 -32
- package/docs/guides/orchestration.md +0 -28
- package/docs/guides/subagents.md +0 -37
package/docs/usage.md
CHANGED
|
@@ -1,217 +1,197 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
sidebarTitle: "
|
|
4
|
-
description: "Use Atomic's terminal editor, slash commands,
|
|
2
|
+
title: "Use Atomic in the terminal"
|
|
3
|
+
sidebarTitle: "Use interactive mode"
|
|
4
|
+
description: "Use Atomic's fullscreen terminal interface, editor shortcuts, slash commands, message queue, and session tools."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Interactive mode runs Atomic in a fullscreen terminal interface for day-to-day coding, slash commands, message queueing, and session navigation.
|
|
7
|
+
Interactive mode runs Atomic in a fullscreen terminal interface for day-to-day coding, slash commands, message queueing, and session navigation. Atomic runs the agent session in a separate background process from the terminal UI so typing, queueing, and interrupts stay responsive while tools run. See [How Atomic works](/how-atomic-works) for the architecture, or [CLI reference](/reference/cli) for every command and flag.
|
|
8
|
+
|
|
9
|
+
## First-time setup
|
|
10
|
+
|
|
11
|
+
On a brand-new installation (when `ATOMIC_CODING_AGENT_DIR` is unset and `~/.atomic/agent/settings.json` does not exist yet), interactive mode opens a quick two-step setup prompt before the editor:
|
|
12
|
+
|
|
13
|
+
1. **Choose a theme:** Pick `Dark`, `Light`, or `System` (defaulting to your terminal's detected appearance, with live preview as you move through options).
|
|
14
|
+
2. **Choose analytics preference:** Opt in or out of anonymous usage analytics. Your choice and a random local tracking ID are stored in `settings.json`; Atomic does not transmit analytics data in this release.
|
|
15
|
+
|
|
16
|
+
Navigate with `↑`/`↓` or `j`/`k`, confirm with `Enter`, or press `Esc`/`Ctrl+C` to skip setup without writing `settings.json`.
|
|
8
17
|
|
|
9
18
|
## Terminal interface
|
|
10
19
|
|
|
11
|
-
|
|
20
|
+
The screen has four main areas:
|
|
12
21
|
|
|
13
|
-
|
|
22
|
+
- **Startup header.** Shortcuts plus named lists of loaded context files, prompt templates, skills, and extensions. Press `Ctrl+O` to expand source paths. Custom themes are not listed here; pick them in `/settings`.
|
|
23
|
+
- **Transcript.** User messages, assistant responses, tool calls, tool results, notifications, errors, and extension UI.
|
|
24
|
+
- **Editor.** The prompt box where you type. Its border color reflects the active thinking level.
|
|
25
|
+
- **Footer.** Token usage, cache usage, cost, and context usage sit above the editor. Below it, Atomic shows the active model, reasoning level, working directory, Git branch, and session name while idle, or the interrupt key while working (`esc to interrupt` on `main`, `esc to pause` while viewing a subagent).
|
|
14
26
|
|
|
15
|
-
|
|
16
|
-
- **Messages.** User messages, assistant responses, tool calls, tool results, notifications, errors, and extension UI.
|
|
17
|
-
- **Editor.** The prompt box where you type. Its border color shows the current thinking level.
|
|
18
|
-
- **Footer.** Token usage, cache usage, cost, and context usage sit above the editor. Below it, Atomic shows the current model, reasoning level, working directory, Git branch, and session name while idle, or the bound interrupt key while working (`esc to interrupt` on `main`, `esc to pause` while viewing a subagent). When background subagents run, the [agent panel](/background-tasks#the-agent-panel) appears below the footer; selecting a subagent swaps the transcript and points the prompt at it. Press `↓` on an empty prompt to focus the agent panel, `←` on an empty prompt while viewing a subagent to return to `main`, `Ctrl+X Ctrl+K` (twice within 3 seconds) to stop all background work, and `?` on an empty prompt for the key overview.
|
|
27
|
+
When background subagents run, the [agent panel](/background-tasks#the-agent-panel) appears below the footer. Selecting a subagent swaps the transcript and routes your prompt to it. Press `↓` on an empty prompt to focus the agent panel, `←` on an empty prompt while viewing a subagent to return to `main`, `Ctrl+X Ctrl+K` (twice within 3 seconds) to stop all background work, and `?` on an empty prompt for active shortcuts.
|
|
19
28
|
|
|
20
|
-
Built-in views such as `/settings
|
|
29
|
+
Built-in views such as `/settings`, `/model`, or custom extension UI temporarily replace the editor while open.
|
|
21
30
|
|
|
22
31
|
### Startup animation and working indicator
|
|
23
32
|
|
|
24
|
-
The startup animation introduces Atomic on launch
|
|
33
|
+
The startup animation introduces Atomic on launch; press any key (including `Ctrl+C`) to finish it immediately. Set `quietStartup` to `true` to hide it, or `"header"` to keep it. Non-TTY runs, Apple `Terminal.app`, and `ATOMIC_REDUCED_MOTION=1` skip the animation and show the static mark.
|
|
25
34
|
|
|
26
|
-
|
|
35
|
+
To disable terminal colors and text styles (bold, italic, dim, underline, inverse, strikethrough), set `NO_COLOR` (to any value, including an empty string) or `FORCE_COLOR=0` / `FORCE_COLOR=false`. Setting `FORCE_COLOR` to `1`, `2`, `3`, `true`, or `""` forces color output.
|
|
27
36
|
|
|
28
|
-
While the agent works, `∀` pulses beside a status
|
|
37
|
+
While the agent works, `∀` pulses beside a status line with elapsed time and output tokens. A new run resets the meter; steering keeps the current meter. Retry, fallback, compaction, cancellation, and error notices take precedence, and approval prompts hide ordinary activity. Extensions can [customize the working indicator](/tui#pattern-4b-working-indicator-customization).
|
|
29
38
|
|
|
30
|
-
|
|
39
|
+
During compaction, `∀` stays still with elapsed time and the cancel key. Afterwards, a single boundary line appears—`⚛ Context cleared · 182.0k tokens`, or `⚛ Context compacted · morph/morph-compactor · 182.0k → 21.4k tokens` when a compactor model ran. Press `Ctrl+O` to inspect what was compacted and where the earlier conversation lives in session history.
|
|
31
40
|
|
|
32
41
|
### Transcript interaction
|
|
33
42
|
|
|
34
|
-
- **Clickable blocks.** Single-click any expandable block (tool calls, grouped summaries, `!` shell blocks, finished-agent cards, compaction boundaries) to open or fold that block without affecting others. `Ctrl+O`
|
|
35
|
-
- **Clickable key hints.** Click key hints
|
|
36
|
-
- **Scrolling and jump to bottom.** Scroll
|
|
43
|
+
- **Clickable blocks.** Single-click any expandable block (tool calls, grouped summaries, `!` shell blocks, finished-agent cards, compaction boundaries) to open or fold that block without affecting others. `Ctrl+O` toggles all blocks together.
|
|
44
|
+
- **Clickable key hints.** Click key hints below the prompt, in dialogs, or in `/tasks` to trigger that key or command without losing your prompt draft.
|
|
45
|
+
- **Scrolling and jump to bottom.** Scroll with the mouse wheel, or hold `Alt+wheel` to scroll five times as far when your terminal forwards Alt with wheel events. While scrolled up, the current turn's opening prompt stays pinned at the top and a `↓ jump to bottom · ctrl+end` pill appears above the editor.
|
|
37
46
|
|
|
38
|
-
See [Transcript scrolling and mouse](/keybindings#
|
|
47
|
+
See [Transcript scrolling and mouse](/keybindings#transcript-scrolling-and-mouse) for mouse selection, auto-copy, right-click paste, and paging shortcuts.
|
|
39
48
|
|
|
40
49
|
### Editor features
|
|
41
50
|
|
|
42
51
|
| Feature | How |
|
|
43
52
|
| --- | --- |
|
|
44
53
|
| File reference | Type `@` to fuzzy-search project files |
|
|
45
|
-
| Path completion | Press `Tab` to complete paths |
|
|
46
|
-
| Prompt history | `↑`
|
|
54
|
+
| Path completion | Press `Tab` to complete file paths |
|
|
55
|
+
| Prompt history | `↑` / `↓` step through recent prompts; `Ctrl+R` searches past prompts and inserts your pick without sending |
|
|
47
56
|
| Multi-line input | `Shift+Enter` or `Ctrl+J` |
|
|
48
57
|
| Images | Paste with `Ctrl+V` (`Alt+V` or `Ctrl+V` on Windows and WSL), or drag into the terminal ([Terminal setup](/terminal-setup)) |
|
|
49
|
-
| Shell command | `!command` runs a command and includes output in model context |
|
|
50
|
-
| Hidden shell command | `!!command` runs a command without
|
|
58
|
+
| Shell command | `!command` runs a shell command and includes its output in model context |
|
|
59
|
+
| Hidden shell command | `!!command` runs a shell command without adding its output to model context |
|
|
51
60
|
| External editor | `Ctrl+G` opens `externalEditor`, `$VISUAL`, or `$EDITOR` (falling back to `notepad` on Windows or `nano` on macOS and Linux) |
|
|
52
61
|
|
|
53
|
-
**`@` file picker and completion menus:** The `@` picker searches
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
**Suspend and subshell:** On
|
|
62
|
+
- **`@` file picker and completion menus:** The `@` picker fuzzy-searches project files while respecting `.gitignore` and skipping `.git/`, supports quoted paths with spaces (`@"path with spaces"`), and wraps paths containing spaces automatically (falling back to single-directory listing if `fd` is unavailable). In `@` and `/` menus, `Tab` completes without sending, and `Enter` inserts an `@` path or submits a `/` command.
|
|
63
|
+
- **Prompt history (`↑`/`↓` and `Ctrl+R`):** `↑` and `↓` walk up to 100 recent prompts typed during the current run (collapsing consecutive identical prompts) for whichever agent you are viewing. `Ctrl+R` searches recorded prompts newest first and deduplicates identical prompts across the session:
|
|
64
|
+
- For prompt templates and skills (such as `/skill:tdd edge cases`), `Ctrl+R` saves and searches the **unexpanded command you typed** rather than the expanded body (only older entries without raw text fall back to expanded text).
|
|
65
|
+
- If an extension transforms a prompt through the [`input` event](/extensions/events#input), `Ctrl+R` searches the transformed text while `↑`/`↓` walk the raw text you typed.
|
|
66
|
+
- While viewing a subagent, `Ctrl+R` searches that subagent's 100-entry editor history (without timestamps) rather than the full session store.
|
|
67
|
+
- Press `Esc` to clear the search query first, then close search without losing your draft or interrupting the agent. Avoid typing secrets directly into prompts.
|
|
68
|
+
- **Interactive shell commands (`!` and `!!`):** Only one interactive `!` or `!!` command can run at a time; submitting another warns and restores your draft. On native Windows, `!` and `!!` run PowerShell (preferring PowerShell 7 `pwsh.exe`, then Windows PowerShell `powershell.exe`; see [Windows](/windows)), while Linux, macOS, and WSL use Bash. [`shellCommandPrefix`](/shell-aliases) is prepended to each command, so match the active shell's syntax. Press `Esc` or `Ctrl+C` to cancel a running command. `!` and `!!` are disabled while viewing a subagent; switch to `main` to run them.
|
|
69
|
+
- **Double-Escape (`doubleEscapeAction`):** Pressing `Escape` twice within 500 ms on an empty, idle editor opens `/tree` by default. Change it to `"tree"`, `"fork"`, or `"none"` in [Settings](/settings#interface-and-display).
|
|
70
|
+
- **Suspend and subshell:** On POSIX systems and WSL, `Ctrl+Z` suspends Atomic and `fg` resumes it. On native Windows, `Alt+Z` opens an interactive PowerShell subshell while background tasks keep running (type `exit` to return), leaving `Ctrl+Z` for editor undo.
|
|
62
71
|
|
|
63
72
|
See [Keybindings](/keybindings) for all shortcuts and customization.
|
|
64
73
|
|
|
65
74
|
## Startup typing
|
|
66
75
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Immediate startup typing activates in a fullscreen terminal when all of these hold:
|
|
70
|
-
|
|
71
|
-
- Standard input and output are a TTY, `CI` is unset, and `TERM` is not `dumb`.
|
|
72
|
-
- No startup dialog (such as first-run setup or a project trust prompt) is shown.
|
|
73
|
-
- No CLI flags are passed outside `--offline`, `--no-mcp`, `--verbose`, `--approve`/`-a`, and `--no-approve`/`-na`.
|
|
74
|
-
- None of these editor display settings are set in global, legacy, or project settings: `editorPaddingX`, `autocompleteMaxVisible`, `showHardwareCursor`, `terminal`, `fullscreenScrollbar`, `fullscreenCopyOnSelect`, or `fullscreenWheelScrollLines`.
|
|
75
|
-
- No project or legacy `theme` override is set, and the global `theme` is unset or one of the six static built-in themes (`dark`, `light`, `catppuccin-frappe`, `catppuccin-latte`, `catppuccin-macchiato`, `catppuccin-mocha`). `system` and `light/dark` pairs use standard startup.
|
|
76
|
-
|
|
77
|
-
While the session is still loading:
|
|
78
|
-
|
|
79
|
-
- Typing and prompt-editing keys (cursor and word movement, deletions, kill ring, undo, and newlines) act immediately and echo live.
|
|
80
|
-
- `Ctrl+C` clears prompt text, or exits on a second press within 0.8 seconds on an empty prompt. `Ctrl+D` exits on an empty prompt.
|
|
81
|
-
- Non-editing keys (`Enter`, command shortcuts, `Esc`, view-switching keys, and mouse events) wait in order until the session takes over on the same screen.
|
|
82
|
-
- Any direct stdout or stderr output written during startup stays visible instead of being overwritten by the prompt.
|
|
83
|
-
- Clicking in the prompt before completions finish loading cancels any pending `/` or `@` completion lookup.
|
|
84
|
-
|
|
85
|
-
When a startup dialog, an ineligible flag (such as `--resume`, `--continue`, or `--name`), or a custom editor display setting applies, Atomic falls back to buffered startup typing before the UI paints:
|
|
86
|
-
|
|
87
|
-
- `Enter`-submitted ordinary prompts wait until the session is ready.
|
|
88
|
-
- Command submissions such as `/settings` or `!pwd` run as separate submissions through normal command routing in input order.
|
|
89
|
-
- Unsubmitted text waits in the editor. If it ends with a `/` command or `@` file and no earlier command ran, its completion menu opens once completions are ready unless you click elsewhere first.
|
|
76
|
+
You can start typing immediately while Atomic finishes loading. In interactive mode, typing and editing keys act live while `Enter`, command shortcuts, and mouse events wait until the session is ready.
|
|
90
77
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
78
|
+
<Tip>
|
|
79
|
+
If a startup dialog appears (such as first-time setup, a project trust prompt, `--resume`, or a cross-project fork confirmation), anything you already typed waits in your prompt as a draft and never auto-submits or answers the dialog for you. Review the draft and press `Enter` after startup finishes.
|
|
80
|
+
</Tip>
|
|
94
81
|
|
|
95
82
|
## Slash commands
|
|
96
83
|
|
|
97
|
-
Type `/` in the editor to open command completion. [Extensions](/extensions) can register custom commands, [skills](/skills) run as `/skill:name`, and [prompt templates](/prompt-templates) expand via `/templatename`.
|
|
84
|
+
Type `/` in the editor to open command completion. [Extensions](/extensions) can register custom commands, [skills](/skills) run as `/skill:name`, and [prompt templates](/prompt-templates) expand via `/templatename`.
|
|
98
85
|
|
|
99
|
-
Commands that take no arguments
|
|
86
|
+
Commands that take no arguments match only when entered by themselves; adding extra text sends the line to the model as a regular prompt. While viewing a subagent, built-in commands target `main` (confirming destructive changes, refusing `/model` and `/thinking`, and using `/copy` for the viewed subagent's last message), while skills, templates, and user or project extension commands target the viewed subagent.
|
|
100
87
|
|
|
101
|
-
|
|
88
|
+
Here are the everyday commands you will use most often:
|
|
102
89
|
|
|
103
90
|
| Command | Description |
|
|
104
91
|
| --- | --- |
|
|
105
|
-
| `/login [provider]` | Sign in with an OAuth subscription or save an API key
|
|
106
|
-
| `/logout [provider]` | Remove stored credentials from `~/.atomic/agent/auth.json` (leaves
|
|
107
|
-
| `/model [provider/model]` | Switch models and save the startup default ([
|
|
108
|
-
| `/thinking [level]` | Set the thinking level
|
|
92
|
+
| `/login [provider]` | Sign in with an OAuth account/subscription or save an API key ([Authentication](/getting-started/authentication)) |
|
|
93
|
+
| `/logout [provider]` | Remove stored credentials from `~/.atomic/agent/auth.json` (leaves env vars and `models.json` untouched) |
|
|
94
|
+
| `/model [provider/model]` | Switch models and save the startup default ([Choose a model](/models/choose-a-model)). Exact matches switch immediately; other text pre-filters the picker. Inside the picker, press `←`/`→` to adjust effort level and `Tab` to toggle scoped vs. all models |
|
|
95
|
+
| `/thinking [level]` | Set the thinking level and save the startup default (rejects levels unsupported by the current model) |
|
|
109
96
|
| `/scoped-models` | Enable, disable, and reorder models for `Ctrl+P` cycling ([`enabledModels`](/settings#enabledmodels)) |
|
|
110
|
-
| `/settings` | Change [theme](/themes)
|
|
111
|
-
| `/resume [id\|prefix]` | Open a session
|
|
97
|
+
| `/settings` | Change [theme](/themes), delivery mode, transport, and other [settings](/settings). Type to search, press `Enter`/`Space` to toggle or open pickers (`Right` never edits a setting), and `Esc` clears search before closing |
|
|
98
|
+
| `/resume [id\|prefix]` | Open a session by exact ID or unique 8-hex prefix, or browse sessions with no argument |
|
|
112
99
|
| `/new` | Start a new session |
|
|
113
|
-
| `/name [name]` | Set the session display name, or print the current name
|
|
114
|
-
| `/session [snapshot]` | Show session
|
|
115
|
-
| `/tools` | Show active [tools](/tools)
|
|
116
|
-
| `/tasks [taskId]` | Inspect [background tasks](/background-tasks) (subagents and shells), or open a specific task
|
|
117
|
-
| `/tree` |
|
|
118
|
-
| `/fork` | Create a new session from an earlier user message |
|
|
119
|
-
| `/clone` | Duplicate the
|
|
120
|
-
| `/compact [instructions]` | Clear or compact the context window
|
|
121
|
-
| `/copy` | Copy the last assistant message to the clipboard |
|
|
122
|
-
| `/export [file]` | Export
|
|
123
|
-
| `/import <file>` | Import an exported `.jsonl` session (
|
|
124
|
-
| `/share` |
|
|
125
|
-
| `/trust` | Save a [project trust](/security) decision for
|
|
126
|
-
| `/reload` | Reload keybindings, extensions, skills, prompts, themes, context files,
|
|
127
|
-
| `/hotkeys` | Show
|
|
128
|
-
| `/changelog` | Display the full version history |
|
|
129
|
-
| `/debug` | Unlisted diagnostic command that appends a UI and message snapshot to `~/.atomic/agent/atomic-debug.log` and prints the file path (see [Debugging](/development#debugging)) |
|
|
100
|
+
| `/name [name]` | Set the session display name, or print the current name (warns `Usage: /name <name>` if unnamed) |
|
|
101
|
+
| `/session [snapshot]` | Show session ID, name, token/cache usage, and per-model cost; `snapshot` shows [worktree snapshots](/worktree-snapshots) and diffs |
|
|
102
|
+
| `/tools` | Show active [tools](/tools) and why other tools are disabled |
|
|
103
|
+
| `/tasks [taskId]` | Inspect [background tasks](/background-tasks) (subagents and shells), or open a specific task by ID |
|
|
104
|
+
| `/tree` | Navigate the session tree and continue from any point |
|
|
105
|
+
| `/fork` | Create a new session branching from an earlier user message |
|
|
106
|
+
| `/clone` | Duplicate the active branch into a new session |
|
|
107
|
+
| `/compact [instructions]` | Clear or compact the context window (requires at least two messages; manual `/compact` can take over an active auto-compaction) |
|
|
108
|
+
| `/copy` | Copy the viewed agent's last assistant message to the clipboard |
|
|
109
|
+
| `/export [file]` | Export to HTML (`atomic-session-<session>.html` in the current directory by default) or JSONL when `file` ends in `.jsonl` |
|
|
110
|
+
| `/import <file>` | Import an exported `.jsonl` session (confirms before replacing the current session) |
|
|
111
|
+
| `/share` | Export `session.jsonl` to a secret GitHub gist via `gh` and print both viewer and gist URLs |
|
|
112
|
+
| `/trust` | Save a [project trust](/security) decision (restart Atomic for a changed decision to apply to the current session) |
|
|
113
|
+
| `/reload` | Reload keybindings, extensions, skills, prompts, themes, context files, `settings.json`, and `models.json` (refused while streaming or compacting) |
|
|
114
|
+
| `/hotkeys` | Show a quick summary of common editor, app, and extension shortcuts (press `?` on an empty prompt or picker for contextual keys) |
|
|
130
115
|
| `/exit`, `/quit` | Exit Atomic |
|
|
131
116
|
|
|
132
|
-
|
|
117
|
+
Atomic's bundled extensions also register `/agents` ([Subagents](/subagents)), `/mcp` ([MCP servers](/mcp-servers)), `/intercom` ([Intercom](/intercom)), `/llama` ([Local models](/llama-cpp)), and `/curator`, `/websearch`, `/search`, `/google-account` ([Web access](/web-access)).
|
|
118
|
+
|
|
119
|
+
For the complete command catalog, exact argument parsing rules, and subagent-view routing, see the [Slash commands reference](/slash-commands).
|
|
133
120
|
|
|
134
121
|
## Message queue
|
|
135
122
|
|
|
136
|
-
|
|
123
|
+
Because Atomic runs the session in a separate background process from the terminal UI ([How Atomic works](/how-atomic-works)), you can keep typing, queue follow-ups, or interrupt work while the agent streams or runs tools.
|
|
137
124
|
|
|
138
125
|
### Queueing and interrupting
|
|
139
126
|
|
|
140
|
-
The same
|
|
141
|
-
|
|
142
|
-
- **`Enter`** queues a steering message, delivered after the current assistant turn finishes its tool calls.
|
|
143
|
-
- **`Alt+Enter`** (**`Ctrl+Q`** on Windows and WSL) queues a follow-up message, delivered after the agent finishes all work.
|
|
144
|
-
- **`Escape`** aborts active or queued work and restores still-queued steering and follow-up messages to the editor. The session stays paused until you submit the next ordinary chat message, which releases any held queue before starting the turn. Another `Escape` while paused restores newly queued text without releasing the pause.
|
|
145
|
-
- **`Ctrl+C`** clears editor text first. On an empty editor, it aborts active or queued work and pauses queued messages in place in their original order until your next ordinary submission. After the abort settles, `Ctrl+C` on an empty editor displays `Press Ctrl+C again to exit` without releasing the hold, and a second press within 0.8 seconds exits.
|
|
146
|
-
- **`Alt+Up`** (**`Alt+Q`** on Windows and WSL) retrieves queued messages back to the editor without aborting active work or resuming a paused session. It restores only messages the agent has not already taken into its turn, and reports an error without dropping messages if the background session process is unreachable.
|
|
147
|
-
|
|
148
|
-
Each queue keeps submission order, and steering messages run ahead of follow-ups. Messages submitted during compaction, prompt templates, skills, and messages sent by slash commands wait in queue order until compaction ends or is cancelled. Non-prompt slash commands such as `/settings`, `/tasks`, and `/model` run immediately during compaction.
|
|
127
|
+
The same keys apply on `main` and while viewing a subagent, except `Esc` pauses a viewed subagent instead of interrupting `main`:
|
|
149
128
|
|
|
150
|
-
|
|
129
|
+
| Action | macOS / Linux | Windows / WSL | Effect |
|
|
130
|
+
| --- | --- | --- | --- |
|
|
131
|
+
| Queue steering message | `Enter` | `Enter` | Runs after the current turn finishes its tool calls |
|
|
132
|
+
| Queue follow-up message | `Alt+Enter` | `Ctrl+Q` | Runs after the agent finishes all current work |
|
|
133
|
+
| Abort and restore queue | `Esc` | `Esc` | Aborts active or queued work, restores queued messages to the editor, and pauses until your next ordinary message |
|
|
134
|
+
| Clear, interrupt, or exit | `Ctrl+C` | `Ctrl+C` | Clears editor text first; on an empty editor aborts work and holds queued messages in order; pressing twice within 0.8 s while idle exits |
|
|
135
|
+
| Retrieve queued messages | `Alt+Up` | `Alt+Q` | Pulls still-queued messages back into the editor without aborting active work or unpausing |
|
|
151
136
|
|
|
152
|
-
|
|
137
|
+
Steering messages always run ahead of follow-ups in submission order. Messages, templates, and skills submitted during compaction or retry waits queue in order until compaction completes or is cancelled, while non-prompt slash commands such as `/settings`, `/tasks`, and `/model` run immediately.
|
|
153
138
|
|
|
154
|
-
|
|
139
|
+
Interrupts hold only messages still waiting in the queue. A message the agent already started stays in the transcript; if an interrupt cancels its reply before any output appears, Atomic answers it rather than stranding it.
|
|
155
140
|
|
|
156
|
-
Configure delivery
|
|
141
|
+
On Windows and WSL, follow-up queueing uses `Ctrl+Q` and dequeue uses `Alt+Q` to avoid Windows Terminal's `Alt+Enter` fullscreen toggle. Configure delivery rules with `steeringMode` and `followUpMode` in [Settings](/settings#message-delivery).
|
|
157
142
|
|
|
158
143
|
### Interrupt grace period and recovery
|
|
159
144
|
|
|
160
|
-
|
|
145
|
+
Normal interrupts request cooperative cancellation while keeping the background session process running. Pending tool calls abort immediately. If an active tool call does not stop within **10 seconds** (configurable via [`ATOMIC_TOOL_ABORT_GRACE_MS`](/environment-variables#diagnostics-and-performance)), the turn moves on with an abort notice and discards late output from that call.
|
|
161
146
|
|
|
162
|
-
|
|
147
|
+
<Note>
|
|
148
|
+
**Manual recovery with `Ctrl+C`:** If a custom extension dialog stops responding to input, `Ctrl+C` closes it. If the background session process stops answering—or a cancel or queue-clear request stalls for over one second—`Ctrl+C` terminates and restarts the session process. Recovery never triggers automatically. Check `/tasks` and the transcript before repeating interrupted actions.
|
|
149
|
+
</Note>
|
|
163
150
|
|
|
164
|
-
If sending fails, Atomic restores your unsent text (including pasted content) to the editor above
|
|
151
|
+
If sending fails, Atomic restores your unsent text (including pasted content) to the editor above anything typed while the send was pending, keeping later queued messages in order. See [Application keybindings](/keybindings#application).
|
|
165
152
|
|
|
166
153
|
## Sessions
|
|
167
154
|
|
|
168
|
-
Sessions auto-save to
|
|
169
|
-
|
|
170
|
-
Common session flags include `atomic -c` (continue latest in this directory), `atomic -r` (browse sessions), `atomic --session <id|prefix>`, `atomic --fork <id|prefix>`, `atomic --name "Refactor"`, `atomic --import <file>`, and `atomic --no-session`. See [CLI session options](/reference/cli#session-options) for the full list.
|
|
171
|
-
|
|
172
|
-
Useful interactive session commands:
|
|
173
|
-
|
|
174
|
-
- `/session` shows the current session location, ID, and usage stats (`/session snapshot` shows worktree snapshots).
|
|
175
|
-
- `/tree` navigates the session tree and can summarize abandoned branches.
|
|
176
|
-
- `/fork` creates a new session from an earlier user message.
|
|
177
|
-
- `/clone` duplicates the current active branch into a new session.
|
|
178
|
-
- `/compact [instructions]` clears the context window so the agent recovers needed context from session history (or compacts through a configured `compactionModel`).
|
|
155
|
+
Sessions auto-save to `~/.atomic/workflows/journal.sqlite` by default; JSONL session directories (`~/.atomic/agent/sessions/`) and shared PostgreSQL databases are opt-in.
|
|
179
156
|
|
|
180
|
-
See [
|
|
157
|
+
Common startup flags include `atomic -c` (continue latest in this directory), `atomic -r` (browse sessions), `atomic --session <id|prefix>`, `atomic --fork <id|prefix>`, `atomic --name "Refactor"`, `atomic --import <file>`, and `atomic --no-session`. See [Manage sessions](/sessions), [Context and compaction](/compaction), and [CLI session options](/reference/cli#session-options).
|
|
181
158
|
|
|
182
159
|
## Context and system prompt files
|
|
183
160
|
|
|
184
|
-
Atomic loads `AGENTS.override.md`, `AGENTS.md`,
|
|
161
|
+
Atomic automatically loads project instructions (`AGENTS.override.md`, `AGENTS.md`, or `CLAUDE.md`) from global config, ancestor directories, and the current trusted project, plus optional `SYSTEM.md` (replace the default system prompt) and `APPEND_SYSTEM.md` (append standing instructions). See [Add project instructions](/getting-started/project-instructions) for exact precedence, worktree deduplication, and trust rules. Disable context files for one run with `--no-context-files` (`-nc`).
|
|
185
162
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
Replace the default system prompt with `SYSTEM.md` or append standing instructions with `APPEND_SYSTEM.md`. Atomic loads only the **first existing file** in this order:
|
|
189
|
-
|
|
190
|
-
1. `.atomic/SYSTEM.md` (trusted projects only)
|
|
191
|
-
2. `.pi/SYSTEM.md` (trusted projects only)
|
|
192
|
-
3. `~/.atomic/agent/SYSTEM.md`
|
|
193
|
-
4. `~/.pi/agent/SYSTEM.md`
|
|
194
|
-
|
|
195
|
-
`APPEND_SYSTEM.md` uses the exact same four-path order, so a project `APPEND_SYSTEM.md` **replaces** (does not concatenate with) a global `APPEND_SYSTEM.md`. Passing `--system-prompt` overrides `SYSTEM.md`, and passing `--append-system-prompt` replaces any discovered `APPEND_SYSTEM.md`. Context files and skills still append even when `SYSTEM.md` or `--system-prompt` replaces the default prompt.
|
|
196
|
-
|
|
197
|
-
The default prompt instructs the agent to write self-describing code without unnecessary comments unless requested. Ask for comments directly in your prompt or add a standing rule in a context file or `APPEND_SYSTEM.md`.
|
|
198
|
-
|
|
199
|
-
The agent recalls earlier sessions in this project through `history://` when you reference past work, tackle a similar task, or plan verification. Subagents can recall session history too, and with a shell tool the agent also searches commits, issues, and pull requests. See [Recalling earlier work](/sessions#recalling-earlier-work).
|
|
163
|
+
The agent can also recall earlier sessions in the same project through `history://` when you reference past work or comparable tasks. See [Recalling earlier work](/sessions#recalling-earlier-work).
|
|
200
164
|
|
|
201
165
|
## Exporting and sharing sessions
|
|
202
166
|
|
|
203
|
-
Use `/export [file]` to
|
|
167
|
+
Use `/export [file]` to export the current session to HTML (defaulting to `atomic-session-<session>.html` in the current working directory) or to JSONL when `file` ends in `.jsonl` (case-insensitive). Paths containing spaces can be quoted; unclosed quotes return an error. In exported HTML, press `T` to toggle thinking blocks, `O` to toggle tool output, and `H` to show hidden custom messages.
|
|
168
|
+
|
|
169
|
+
Use `/import <file>` to load an exported `.jsonl` session; Atomic asks for confirmation before replacing the current session.
|
|
204
170
|
|
|
205
|
-
`
|
|
171
|
+
Use `/share` to export a copy of the session as `session.jsonl` (stripping worktree snapshot contents and large tool-output blobs), upload it as a secret GitHub gist with `gh`, and print both:
|
|
206
172
|
|
|
207
|
-
|
|
173
|
+
- **`Share URL`:** Opens the gist in `https://bastani.ai/session/` (override with [`ATOMIC_SHARE_VIEWER_URL`](/environment-variables)).
|
|
174
|
+
- **`Gist`:** The raw GitHub gist URL.
|
|
208
175
|
|
|
209
|
-
|
|
176
|
+
`/share` requires the GitHub CLI (`gh`) installed and authenticated (`gh auth login`). Press `Esc` or `Ctrl+C` while uploading to cancel.
|
|
210
177
|
|
|
211
|
-
|
|
178
|
+
<Warning>
|
|
179
|
+
Treat exported and shared sessions as sensitive. Transcripts can contain source code, file paths, and credentials—review a session before sharing it with anyone who has the link.
|
|
180
|
+
</Warning>
|
|
212
181
|
|
|
213
|
-
|
|
182
|
+
## Next steps
|
|
214
183
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
184
|
+
<Columns cols={2}>
|
|
185
|
+
<Card title="CLI reference" href="/reference/cli">
|
|
186
|
+
Every flag, subcommand, model-matching rule, and exit code.
|
|
187
|
+
</Card>
|
|
188
|
+
<Card title="Slash commands" href="/slash-commands">
|
|
189
|
+
Complete list of built-in and bundled extension slash commands.
|
|
190
|
+
</Card>
|
|
191
|
+
<Card title="Keybindings" href="/keybindings">
|
|
192
|
+
All keyboard shortcuts, picker controls, and custom keybindings.
|
|
193
|
+
</Card>
|
|
194
|
+
<Card title="How Atomic works" href="/how-atomic-works">
|
|
195
|
+
Mental model of the agent loop, two-process runtime, and context assembly.
|
|
196
|
+
</Card>
|
|
197
|
+
</Columns>
|